#flydexo_api
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/1231990365632856145
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
It seems that I can use the meter API https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage.
But can I use those kind of payments with payment links
Hello, thanks for your time
No you would only use the Meter API with a Subscription
Really what you want to do here is set up the PaymentMethod for future use via the initial charge.
Then charge it again at the end of the ride once you know the amount
You do that via the setup_future_usage parameter: https://docs.stripe.com/api/payment_links/payment_links/create#create_payment_link-payment_intent_data-setup_future_usage
If I get it, initial checkout for the unlock fee, and after the ride proceed the payment with the corresponding time using the previous checkout session. Am I right ?
Using the PaymentMethod from the previous Checkout Session, yes.
Ok thanks a lot with the off_session param I guess
You would charge that PaymentMethod using a PaymentIntent like we show here: https://docs.stripe.com/payments/save-during-payment?platform=web#charge-saved-payment-method
Thanks for your help, have a nice day
You too