White page when I use a saved Card

Created on 17 June 2024, 10 days ago
Updated 19 June 2024, 9 days ago

I use a Stripe payment method on my checkout as payment gateway.

On the first payment of a customer, only the Stripe Card Payment is displayed. The customer use this unique option on his first order/checkout.

If this customer make a new order, he see on the checkout in payment pane the Card Payment method and the previous used card.

If he choose the saved card and validate the payment method, he get a white page on the next step.

In the Drupal logs i don't see any errors. In the server logs I get this error :
"Uncaught PHP Exception TypeError: "Drupal\commerce_order\Entity\Order::setBillingProfile(): Argument #1 ($profile) must be of type Drupal\profile\Entity\ProfileInterface, null given,..."

On the settings on this payment gateway, I have disable to collect billing details. Is this the problem?

How can I use a saved card without problem?

Thanks for your help.

πŸ’¬ Support request
Status

Closed: outdated

Version

1.1

Component

Stripe Checkout

Created by

πŸ‡«πŸ‡·France kumkum29

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

Comments & Activities

  • Issue created by @kumkum29
  • πŸ‡«πŸ‡·France kumkum29

    Hello,

    After several tests, I re-enabled billing data option on the Stripe test payment gateway. After that, and checking the card registered on the account, I see that an ID is registered on the billing_profile value.

    The error is gone...

    So, it is necessary to collect biling data to use the cards registered on the account / Or automatically create this data on the order. (hook_order_presave ??)

    But, now, If I re-use a registered card on my account I get another error : "Invalid parameters were supplied to Stripe's API."

    I see this post on the same problem : https://www.drupal.org/project/commerce_stripe/issues/3428637 πŸ› Invalid parameters were supplied to Stripe's API when using stored information Active

    What should I change in the settings to avoid this error?

    Thanks.

  • Status changed to Closed: outdated 9 days ago
Production build 0.69.0 2024