Compare commits

...

3 Commits

@ -1,25 +1,7 @@
auxiliary.org-netbeans-modules-css-prep.less_2e_compiler_2e_options=
auxiliary.org-netbeans-modules-css-prep.less_2e_enabled=false
auxiliary.org-netbeans-modules-css-prep.less_2e_mappings=/less:/css
auxiliary.org-netbeans-modules-css-prep.sass_2e_compiler_2e_options=
auxiliary.org-netbeans-modules-css-prep.sass_2e_configured=true
auxiliary.org-netbeans-modules-css-prep.sass_2e_enabled=true
auxiliary.org-netbeans-modules-css-prep.sass_2e_mappings=/source/static/assets/sass:/source/static/assets/css,/assets/sass:/assets/css
auxiliary.org-netbeans-modules-javascript-nodejs.enabled=false
auxiliary.org-netbeans-modules-javascript-nodejs.node_2e_default=true
auxiliary.org-netbeans-modules-javascript-nodejs.run_2e_enabled=false
auxiliary.org-netbeans-modules-javascript-nodejs.sync_2e_enabled=true
browser.run=true
file.reference.helena.express-source=source
file.reference.helena.express-web=web
file.reference.new.ship.netsyms.com-public_html=public_html
file.reference.new.ship.netsyms.com-source=source
file.reference.new.ship.netsyms.com-test=test
file.reference.new.ship.netsyms.com-web=web
file.reference.ship.netsyms.com-source=source
file.reference.ship.netsyms.com-web=web
files.encoding=UTF-8
site.root.folder=${file.reference.helena.express-web}
source.folder=${file.reference.helena.express-source}
start.file=index.html
web.context.root=/
include.path=${php.global.include.path}
php.version=PHP_82
source.encoding=UTF-8
src.dir=.
tags.asp=false
tags.short=false
web.root=.

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.web.clientproject</type>
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/clientside-project/1">
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>certifiedfromhome.com</name>
</data>
</configuration>

@ -2,4 +2,4 @@ sass source/static/assets/sass/main.scss source/static/assets/css/main.css
php bin/compile.php
rsync -rv web 192.168.122.10:/var/www/certifiedfromhome.com/
rsync -rv --exclude=settings.php web webhost.netsyms.net:/var/www/certifiedfromhome.com/

@ -2,7 +2,7 @@
"context": {
"site_title": "Certified from Home",
"site_root": "https://certifiedfromhome.com/",
"stripe_pk": "pk_live_RgpadCo1LIIkfyUsY47VhUq6",
"stripe_pk": "pk_live_51NEHz0LeSU0ahZ9MUVOnCSGAibY3M4UHqdRzdxFLMnlmbnMAVJzDz0psztY9AvwpTjRcpXkJT5ljBaY7z6v0w2TT00dA0Lnx2d",
"navigation": [
{
"title": "Home",

@ -1,8 +1,9 @@
<!-- Footer -->
<footer id="footer">
<div class="copyright">
&copy; 2021 <a href="https://netsyms.com">Netsyms Technologies</a> and <a href="https://helena.express">Helena Express</a>.
&copy; 2021-2023 <a href="https://postalportal.net">PostalPortal LLC</a>.<br>
Developed and hosted by <a href="https://netsyms.com">Netsyms Technologies</a>.
<br />
<a href="https://netsyms.com/#contact">Contact Us</a>
<a href="https://postalportal.net/#contact">Contact Us</a>
</div>
</footer>

@ -111,6 +111,7 @@
{{> statelist}}
</select>
<input type="text" name="from_zip" placeholder="Your ZIP Code" required />
<input type="email" name="from_email" placeholder="Your Email Address" required />
<br />
<h3>Options:</h3>

@ -34,6 +34,7 @@ try {
"city" => $_REQUEST["from_city"],
"state" => $_REQUEST["from_state"],
"zip" => $_REQUEST["from_zip"],
"email" => $_REQUEST["from_email"],
"country" => "US"
]);
@ -54,6 +55,8 @@ try {
"weight" => 3.5
]);
$shipmentinfo["carrier_accounts"] = ["ca_fe31a7e4fcf24438b8cdfb74541c7094"]; // USPS
if ($_REQUEST["postagetype"] == "certified") {
$shipmentinfo["options"]["certified_mail"] = true;
} else if ($_REQUEST["postagetype"] == "certified_receipt") {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 162 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 147 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 107 KiB

@ -45,6 +45,13 @@ try {
$shipment->buy(['rate' => ['id' => $_REQUEST["rateid"]]]);
}
try {
$stripe = new \Stripe\StripeClient($_SETTINGS["stripe_sk"]);
$stripe->paymentIntents->update($intent->id, ["metadata" => ["tracking_number" => "$shipment->tracking_code", "rate" => $price - 1.00]]);
} catch (Exception $exx) {
}
$labelurl = $shipment->postage_label->label_url;
// load postage image
@ -82,6 +89,26 @@ try {
// get paid
$intent->capture();
if (!empty($shipment->from_address->email)) {
try {
$mail = new Email();
$emailsettings = $_SETTINGS["email"];
$mail->setSMTP($emailsettings["server"], $emailsettings["port"], true, $emailsettings["user"], $emailsettings["password"], $emailsettings["security"]);
$mail->setFrom("certifiedfromhome@helena.express", "CertifiedFromHome.com");
$mail->addTo($shipment->from_address->email);
$mail->setSubject("Your CertifiedFromHome Receipt");
$body = "Thanks for using CertifiedFromHome.com!\r\nYour card has been charged a total of $" . number_format($price, 2) . ".\r\n";
if (!empty($shipment->options->certified_mail)) {
$body .= "You can track your letter with this tracking code: " . $shipment->tracking_code . "\r\n";
}
$body .= "If you need any help, just reply to this email. Thanks again!";
$mail->setBody($body);
$mail->send();
} catch (Exception $ex) {
}
}
header("Content-Type: application/json");
exit(json_encode([
"status" => "OK",

@ -4,4 +4,11 @@ $_SETTINGS = [
"debug" => false,
"easypost_key" => "",
"stripe_sk" => "",
"email" => [
"server" => "mail.netsyms.net",
"port" => 587,
"user" => "noreply@netsyms.com",
"password" => "",
"security" => "tls"
],
];

Loading…
Cancel
Save