mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix for Paypal_express: Undefined index: SHIPTOSTATE
This commit is contained in:
parent
960f211873
commit
9ee603f47c
@ -57,7 +57,7 @@ class PayPalExpressPaymentDriver extends BasePaymentDriver
|
||||
$client->shipping_address1 = trim($data['SHIPTOSTREET']);
|
||||
$client->shipping_address2 = '';
|
||||
$client->shipping_city = trim($data['SHIPTOCITY']);
|
||||
$client->shipping_state = trim($data['SHIPTOSTATE']);
|
||||
$client->shipping_state = isset($data['SHIPTOSTATE']) ? trim($data['SHIPTOSTATE']) : '';
|
||||
$client->shipping_postal_code = trim($data['SHIPTOZIP']);
|
||||
|
||||
if ($country = cache('countries')->filter(function ($item) use ($data) {
|
||||
|
Loading…
Reference in New Issue
Block a user