#harinth_api

1 messages ¡ Page 1 of 1 (latest)

cursive daggerBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1299337498144669728

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

vernal obsidian
brazen fiber
#

Means after calling stripe.confirmPayment, we can save that card to the customer?

vernal obsidian
#

Yes, if they check the box

cursive daggerBOT
brazen fiber
#

The error message "This PaymentMethod was previously used without being attached to a Customer or was detached from a Customer, and may not be used again"

Suppose a customer given one payment details in the form and not checked the checkbox. So card is not saved.
Next time, if he submit the same form with the same card details and checked the checkbox.

In this scenario, the first error will come when I try to attach the payment method?

cunning ermine
brazen fiber
#

req_x713ALrf8ClrlT

cunning ermine
#

This PaymentMethod wasn't setup for future usage, that's why you can't attach or reuse it.

brazen fiber
#

The provided setup_future_usage (off_session) does not match the expected setup_future_usage (null). Try confirming with a Payment Intent that is configured to use the same parameters as Stripe Elements.

#

I am getting this message now

#

req_XREKd225OvqGLE

cursive daggerBOT
cunning ermine
#

You need to add this parameter to the Payment Element options too

brazen fiber
#

Caould you please clarify?