#Matt.b-reusing-payment-methods
1 messages ยท Page 1 of 1 (latest)
I am using payment method to charge for the accounts once per month
My platform is based on ruby on rails and using the stripe gem to charge using payment intent
As per the error, they need to be attached to a Customer object to be reusable (otherwise they are single use). How are you creating the PM objects?
I created a setup intent with customer and use confirmCardSetup api to connect the card to the setup intent
Can you share the ID of the Payment Method please?
- I created a setup intent with customer on the back-end and passed setup intent id to front-end
- On front-end, specifically in javascript, I used confirmCardSetup api with setup intent id and the card details
- On front-end, it returned payment method id by the previous api called above and I saved it in the database
here you go
pm_1KED6VJhPDfCDTf4Y0OqpCgW
@wooden creek FYI, i sent you the payment method id above
Thanks very much. ๐
Everything looks good there! Can you share the ID of the request that returned the original error you shared?
Also, what do you mean by:
following error when using the setup intent
By following error when using the setup intent, I meant that this error happens with the payment method set up with setup intent
sorry if I described this wrong way but this happens with payment intent api actually
Can you share a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center 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.
Thanks I will find out the api id now
Thanks!
Ok, so seems like the Payment Method was detached: https://dashboard.stripe.com/logs/req_AABVmGGDwb9lhp
Thanks for finding this out for me. Do you happen to know how this api is called by chargebee?
I have no idea! You'd need to speak to them
My guess is something in their UI triggered that detachment, and as such the PM can't be reused now
Sure, np