Enable Stripe Link

This commit is contained in:
Skylar Ittner 2023-09-02 17:58:03 -06:00
parent 74513014d6
commit 7bde19fc5b
3 changed files with 4 additions and 2 deletions

View File

@ -28,6 +28,7 @@ function getRateAndValidateAddress() {
$("input[name=from_city]").val(resp.fromaddress.city); $("input[name=from_city]").val(resp.fromaddress.city);
$("input[name=from_state]").val(resp.fromaddress.state); $("input[name=from_state]").val(resp.fromaddress.state);
$("input[name=from_zip]").val(resp.fromaddress.zip); $("input[name=from_zip]").val(resp.fromaddress.zip);
$("input[name=from_email]").val(resp.fromaddress.email);
$("#toaddr").html( $("#toaddr").html(
resp.address.name resp.address.name

View File

@ -154,7 +154,8 @@ try {
"street2" => $fromaddress->street2 ?? "", "street2" => $fromaddress->street2 ?? "",
"city" => $fromaddress->city ?? "", "city" => $fromaddress->city ?? "",
"state" => $fromaddress->state ?? "", "state" => $fromaddress->state ?? "",
"zip" => $fromaddress->zip ?? "" "zip" => $fromaddress->zip ?? "",
"email" => $fromaddress->email ?? ""
]] ]]
)); ));
} catch (Exception $ex) { } catch (Exception $ex) {

View File

@ -31,7 +31,7 @@ try {
'payment_method' => $_REQUEST["stripeid"], 'payment_method' => $_REQUEST["stripeid"],
'description' => "CertifiedFromHome.com", 'description' => "CertifiedFromHome.com",
'statement_descriptor' => "CrtfdFrmHome", 'statement_descriptor' => "CrtfdFrmHome",
'payment_method_types' => ['card'], 'payment_method_types' => ['card', 'link'],
'capture_method' => 'manual', 'capture_method' => 'manual',
'confirm' => true 'confirm' => true
]); ]);