From 5738402cc4a7357f719980727dc58f2225ca76e7 Mon Sep 17 00:00:00 2001 From: Heitor Dolinski Date: Wed, 6 Apr 2022 19:27:33 +0200 Subject: [PATCH] Sending blank as default for state --- includes/class-wc-payxpert.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/class-wc-payxpert.php b/includes/class-wc-payxpert.php index f3b1cd9..12f11c4 100755 --- a/includes/class-wc-payxpert.php +++ b/includes/class-wc-payxpert.php @@ -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());