#cooper_payment-autoreload
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/1285292521043263489
๐ 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.
- cooper_capital-support, 4 days ago, 4 messages
- cooper4952_api, 5 days ago, 15 messages
- cooper4952_docs, 6 days ago, 18 messages
cooper_payment-autoreload
In first purchase, we used checkout session. but when user's credit run out, we'd like to recharge same service.
@worn ermine Checkout is our product to accept a payment on our hosted UI when they pay the first time. It's definitely not what you want (or need) for the "auto-recharge)
What you want instead is save the Customer's card details so that you can charge that card again in the future. This is covered in details in https://docs.stripe.com/payments/save-and-reuse
yes, I know already. but which should I use payment api? I am confused it because Stripe has several solutions
All good, I'm just trying to show you how to do this. The doc I linked you to has the exact answer right here: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=stripe-hosted#use-payment-method
So what part is confusing?
ok. thank you
May I use saved payment methods on checkout session? Even though I use exist customer, checkout session load new payment method setup
Is this another question? Or the same question? I ask because you don't need Checkout for those next payments
This is another question
gotcha, just making sure!
So it is possible to show one card but it's really complex because of various rules and regulations around showing previously saved cards. My advice here is to not bother trying, it's too hard and brittle. Instead just let the customers use Link which is our wallet payment methods and it will automatically prefill in that case. See https://stripe.com/payments/link
awesome. thanks
sure thing!
Hi, Sorry. However, It is difficult to finish charge as manual using paymentIntent create api.
you forgot to confirm.
See https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method which has real code examples
May I this on backend? This means that it is attempting direct payment without user activities. auto recharge using default payment method
yes that's exactly what this is for
It works! thank you ๐