diff --git a/app/Ninja/PaymentDrivers/PayPalExpressPaymentDriver.php b/app/Ninja/PaymentDrivers/PayPalExpressPaymentDriver.php index 1c0d304b26..fa128d993f 100644 --- a/app/Ninja/PaymentDrivers/PayPalExpressPaymentDriver.php +++ b/app/Ninja/PaymentDrivers/PayPalExpressPaymentDriver.php @@ -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) {