#Perry
1 messages ยท Page 1 of 1 (latest)
Hello
What do you mean by how the payment_method was created? like how many ways are there? and which way of creating payment method will suffice my scenario?
What's your scenario exactly? Do you want to collect payment details without charging, and then use it multiple times in the future?
yes that is right, my scenario is, i would like to charge customer after their subscription is completed(monthly subscription is handled by Gocardless), so once this subscription ends i will like to charge the customer their initial payment via payment_method_ID
first time i am using PM_ID for joining fee (for subscription) and then after a year once subscription ends would like to charge them via PM_ID (credit card or apple pay, whatever customer choose in first place)
You can follow this guide: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=checkout
It will let you collect a Payment Method and ensure it can be used for future payments.
You can choose between Stripe Elements or a hosted Stripe Checkout.
Yes i am following this document, so PM_ID which is result of setupIntent will then be used in far future as well right? for eg: hotel booking after 2 years maybe, something like that
Yes, it should work, as long as the card doesn't expire by then or fails for some other reason.
Yes that makes sense, for if card is expired, for sure we will not be able to charge the customer anyway, but this is card fault scenario so should be fine ๐
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!