#arisawa_best-practices
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/1224670891452141579
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
Thanks!
I'm not sure I understand your question. what exactly are you trying to do and what is the issue?
For example, if an user bills $5 at the end of this month and $10 at the end of next month, can we use the user's credit card to automatically settle the bill?
sure. first you save the customer's payment method with Stripe, then you charge the payment method by how much you need.
Can it be completed server-side only?
yes. however the payment can always fail, for example because 3DS is requested. in this case you'll need to ask the user to come online to complete the 3DS flow.
I see!
In server-side, what do I use API? PaymentIntent?
assuming you arelady have a saved payment method, then yes. this is covered here: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
Thanks. I'm reading
I was looking at the steps in the document and felt that it could not be billed outside of the customer's operation.
It's the setting of the off_session value here.
https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-off_session
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes you can charge customers off_session.