From 3687c3c564570c5f9c854b3805dafeaf79f64eb7 Mon Sep 17 00:00:00 2001 From: securesubmit-buildmaster Date: Tue, 11 Aug 2020 08:35:48 -0400 Subject: [PATCH] 20200811 deployment --- src/Gateways/PayPlanConnector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gateways/PayPlanConnector.php b/src/Gateways/PayPlanConnector.php index f4fcf71f..f29e5dfb 100644 --- a/src/Gateways/PayPlanConnector.php +++ b/src/Gateways/PayPlanConnector.php @@ -525,7 +525,7 @@ protected function buildAddress($request, Address $address) $request['addressLine2'] = $address->streetAddress2; $request['city'] = $address->city; $request['country'] = $address->country; - $request['stateProvince'] = $address->province; + $request['stateProvince'] = !empty($address->state) ? $address->state : $address->province; $request['zipPostalCode'] = $address->postalCode; } return $request; @@ -553,7 +553,7 @@ protected function hydrateCustomer($response) $customer->address->streetAddress1 = isset($response->addressLine1) ? $response->addressLine1 : null; $customer->address->streetAddress2 = isset($response->addressLine2) ? $response->addressLine2 : null; $customer->address->city = isset($response->city) ? $response->city : null; - $customer->address->province = isset($response->stateProvince) ? $response->stateProvince : null; + $customer->address->state = isset($response->stateProvince) ? $response->stateProvince : null; $customer->address->postalCode = isset($response->zipPostalCode) ? $response->zipPostalCode : null; $customer->address->country = isset($response->country) ? $response->country : null; return $customer;