#harinth_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
- harinth_api, 2 days ago, 10 messages
- harinth_api, 3 days ago, 27 messages
We have native support for that in the Payment Element now: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#save-payment-methods
Means after calling stripe.confirmPayment, we can save that card to the customer?
Yes, if they check the box
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?
Could you please share the Request ID with the error req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_x713ALrf8ClrlT
This PaymentMethod wasn't setup for future usage, that's why you can't attach or reuse it.
You can use this guide to learn how to save PaymentMethods for future usage during payment: https://docs.stripe.com/payments/save-during-payment?platform=web&ui=elements
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
You need to add this parameter to the Payment Element options too
Caould you please clarify?