Check if address field is not null

Created on 2 November 2023, 8 months ago
Updated 16 November 2023, 7 months 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 emircanerkul Turkey

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

Comments & Activities

Production build 0.69.0 2024