#antonio-giano_code
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/1225834679295283303
๐ 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.
- antonio-giano_unexpected, 17 hours ago, 19 messages
- antonio-giano_best-practices, 21 hours ago, 17 messages
- antonio-giano_best-practices, 22 hours ago, 9 messages
How exactly are you storing the payment method?
You can't set the payment method as default on the customer if it isn't attached to them first
The payment method is automatically attaching by subscription. I am following the follows guide: https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements#complete-payment
By going directly to the dashboard, the credit card is displayed for the associated customer
So, i pressupon the process goes well
Ah ok ok! Hmm, thinking..
To give you more context, the logical operation I am implementing is performed when i am redirected to the page present in the return_url field.
Can you share a request ID where you're seeing this error?
[17:34:55.808] ERROR (72915): The customer does not have a payment method with the ID pm_1P2En2F07S1euBUTPUxnj3ZV. The payment method must be attached to the customer.
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Looking at the customer/subscription that was associated with pm_1P2En2F07S1euBUTPUxnj3ZV, they seem to have been deleted
cus_Pryk28n3TGZjNW
Are you trying to attach the payment method to a different customer?
You are right. It semms that i am trying to attach the paymentMethod to a different customer.
Gotcha. I don't think you can re-attach the same payment method to a different customer. You'll have to re-collect it
sorry for the trivial problem ๐ฅฒ
NP! ๐ Happy to help
Sure. It's a problem with the code I developed. I haven't taken a thorough look at