Use Stripe Card Element OR Stripe Payment Element ? Explanation

Created on 19 June 2024, 6 months ago

I get several issues if I use Card Element or Payment Element gateway. What should we use to simplify the payment gateway setup?

#1
With both gateways I cannot reuse a card registered on an account because I get the following error: "Invalid parameters were supplied to Stripe's API" / The `payment_method` parameter supplied pm_XXXXXXX belongs to the Customer cus_YYYYYYY. Please include the Customer in the `customer` parameter on the PaymentIntent.....
I see this post : https://www.drupal.org/project/commerce_stripe/issues/3123333 , But with no clear solution given...
My site is in French language. Only FR language is configured no EN language.

#2
If I set a Stripe Element Payment gateway, it is impossible to add manually a payment method to my account. I get an 'access denied' error. The user have an admin role and all the permissions for that.
If I activate a gateway with Stripe Card Element, I can add a new payment method without problems. Is this normal?

Can you clarify the implementation of these Stripe gateways. Should we use one or the other to avoid problems? Do I need to set up specific elements in the online Stripe account?

I may also have incorrectly configured an element in my site...

Thank you for your responses and your help

p.s : my server run on TLS 1.3. And on the first payment (with Card Element or Payment Element) I encounter no problems, and the payment is made without problem.

💬 Support request
Status

Closed: duplicate

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

Production build 0.71.5 2024