Skip to content

Commit

Permalink
20200811 deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
securesubmit-buildmaster authored Aug 11, 2020
1 parent 94bfa57 commit 3687c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gateways/PayPlanConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3687c3c

Please sign in to comment.