#sargis-avetisyan_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/1300797638526111817
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Yup, generic declines like that can happen as that API and way of saving a card with often perform an authorisation
The correct way to save/attach payment methods to a customer is via a Setup Intent: https://docs.stripe.com/payments/save-and-reuse
Yes I have this logic integrated
Specifically, that kind of request can trigger 3DS/authentication flows if the bank request it but the API is not designed to handle them. Setup Intents are
but I am getting this error when trying to attach to customer
Then you shouldn't need to call the attach endpoint
The Setup Intent will handle that on confirmation assuming you passed customer on creation
ok thanks let me check and go back
I don't see any evidence of that. pm_1QFBUrCNeX5rKcbUISc0CyC4 was not created with a Setup Intent
Looks like you're using createPaymentMethod: https://dashboard.stripe.com/logs/req_m8MwEw2FP4a5LH
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.