Skip to content

Commit

Permalink
Sending blank as default for state
Browse files Browse the repository at this point in the history
  • Loading branch information
Heitor Dolinski committed Apr 6, 2022
1 parent 3df19dd commit 5738402
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions includes/class-wc-payxpert.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,15 +431,15 @@ public function payxpert_seamless_checkout_field($order_button_text, $carttotal,
$phone = explode("=",$postdata[9]);
$email = explode("=",$postdata[10]);

$shopperfirstname = $firstname[1] ? urldecode($firstname[1]) : 'John';
$shopperlastname = $lastname[1] ? urldecode($lastname[1]) : 'Doe';
$shoppercountry = $country[1] ? urldecode($country[1]) : 'US';
$shopperstate = $state[1] ? urldecode($state[1]) : 'NY';
$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 = $email[1] ? urldecode($email[1]) : 'shopper@example.com';
$shopperfirstname = $firstname[1] ? urldecode($firstname[1]) : "";
$shopperlastname = $lastname[1] ? urldecode($lastname[1]) : "";
$shoppercountry = $country[1] ? urldecode($country[1]) : "";
$shopperstate = "";
$shoppercity = $city[1] ? urldecode($city[1]) : "";
$shopperaddress = $address[1] ? urldecode($address[1]) : "";
$shopperpostcode = $postcode[1] ? urldecode($postcode[1]) : "";
$shopperphone = $phone[1] ? urldecode($phone[1]) : "";
$shopperemail = $email[1] ? urldecode($email[1]) : "";
}

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

0 comments on commit 5738402

Please sign in to comment.