Skip to content

Commit

Permalink
Seamless update, city fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Heitor Dolinski committed Apr 6, 2022
1 parent 5e8b4d0 commit 3df19dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gateway-payxpert.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function payxpert_payment_script_footer(){
$("#payxpert").remove();
var sNew = document.createElement("script");
sNew.async = true;
sNew.src = "https://connect2.payxpert.com/payment/"+ gettokken +"/connect2pay-seamless-v1.4.0.js";
sNew.src = "https://connect2.payxpert.com/payment/"+ gettokken +"/connect2pay-seamless-v1.4.8.js";
sNew.setAttribute('data-mount-in', "#payment-container");
sNew.setAttribute('id', "payxpert");
sNew.setAttribute('integrity', "sha....");
Expand Down
4 changes: 2 additions & 2 deletions includes/class-wc-payxpert.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ public function payxpert_seamless_checkout_field($order_button_text, $carttotal,
$shopperlastname = $lastname[1] ? urldecode($lastname[1]) : 'Doe';
$shoppercountry = $country[1] ? urldecode($country[1]) : 'US';
$shopperstate = $state[1] ? urldecode($state[1]) : 'NY';
$shoppercity = $city[1] ? $city[1] : 'New York';
$shoppercity = $city[1] ? urldecode($city[1]) : 'New York';
$shopperaddress = $address[1] ? urldecode($address[1]) : 'Debit Street, 45';
$shopperpostcode = $postcode[1] ? urldecode($postcode[1]) : '3456TRG';
$shopperphone = $phone[1] ? urldecode($phone[1]) : '12345678';
$shopperemail = str_replace("%40", "@",$email[1]) ? str_replace("%40", "@",$email[1]) : 'shopper@example.com';
$shopperemail = $email[1] ? urldecode($email[1]) : 'shopper@example.com';
}

$c2pClient = new Connect2PayClient($this->getConnectUrl(), $this->getOriginatorId(), $this->getpassword());
Expand Down

0 comments on commit 3df19dd

Please sign in to comment.