#shimul_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/1271417695769722934
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
How do I charge the customer for the subsequent payments initiated from my own system for the subscriptions?
That's something you'd need to build yourself, like a queue/job system that interacts with our API to create Payment Intents for the recurring payments
Yes, I am already doing that. When I am trying to create PaymentIntents for the subsequent payments with the same Customer Id and Payment Method Id which I stored in my own system during handling the webhook event for the first time payment, the API is giving me an error "The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first."
Yep that is because the pm_xxx is one-time usage by default. What you'll need to do is 'save' the payment method during the first payment: https://docs.stripe.com/payments/save-during-payment
That will enable you to use it multiple times
I am using the java client library to create a checkout session (Payment mode) before forwarding the customer to Stripe's hosted checkout page to handle the payments. Will I be able to charge the customer and save the payment methods to the customer both at the same time while using the checkout session ?