Check if address field is not null

Created on 2 November 2023, about 1 year ago
Updated 16 November 2023, about 1 year ago

If there is no address in billing_profile, it crashes.

Error: Call to a member function toArray() on null in Drupal\commerce_stripe\Plugin\Commerce\PaymentGateway\Stripe->doCreatePaymentMethod() (line 644 of /app/docroot/modules/contrib/commerce_stripe/src/Plugin/Commerce/PaymentGateway/Stripe.php)

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ΉπŸ‡·Turkey emircan erkul Turkey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024