1
0
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:
Hillel Coren 2017-12-14 16:24:17 +02:00
parent 960f211873
commit 9ee603f47c

View File

@ -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) {