#rodney_api

1 messages ¡ Page 1 of 1 (latest)

wide lichenBOT
#

👋 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/1385005934576799884

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

barren wharf
#

Are you using Stripe's Subscription to charge their usage on regular basis? Or are you saving customer's payment method and charge to it when needed?

edgy kite
#

The latter. Ideally the flow would be a checkout session which creates both a payment intent and setup intent so we can immediately process the payment for the selected amount, and later charge the payment method for refills while the user is off session

barren wharf
#

Thanks for sharing! I'd recommend using Checkout Session with payment mode and "payment_intent_data[setup_future_usage]"=off_session. This will allow the payment method to be saved while charging to the customer. More details can be found here: https://docs.stripe.com/payments/checkout/save-during-payment?payment-ui=stripe-hosted#save-payment-methods-to-charge-them-off-session

Learn how to accept a payment and save your customer's payment details for future purchases.

edgy kite
#

oh wow great, that looks like exactly what I was looking for!

#

Thanks so much, missed the field on the api ref but I see it now