#ferret13_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/1306503848558465024
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Do you mean that you will create your own invoice (instead of using Stripe) after collecting the payment?
Today we create our own invoice and when client is ready to pay they login to our portal then via "Stripe checkout" the pay now.
Now we wish to process our ow invoice and if client has Stripe CustomerId we will process payment internally without the client login into our portal.
Hope the above makes sense?
Am I right you would like to do following?
- Save the payment method details such as card when making the payment in the Checkout Session
- For the future payments on the same customer, you will charge the payment offline internally / directly without using Checkout Session
Yes, 100% correct.
Thanks for confirming! In this case, I'd recommend following this guide: https://docs.stripe.com/payments/save-during-payment?platform=web&ui=stripe-hosted#save-payment-method
You will add the following to save the payment method.
.setPaymentIntentData(
SessionCreateParams.PaymentIntentData.builder()
.setSetupFutureUsage(
SessionCreateParams.PaymentIntentData.SetupFutureUsage.OFF_SESSION
)
The payment method will be saved automatically to the customer after the payment is successful.
You will then use Payment Intent directly for future offline payments: https://docs.stripe.com/payments/save-during-payment?platform=web&ui=elements#charge-saved-payment-method
Many thanks for joining the dots for me
Cheers