#eugechielli_pay-invoice-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/1486760137178878192
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
To manually trigger another attempt to collect funds for an Invoice, you can use the Pay API. If you call this API endpoint with just the Invoice ID, it will attempt to use the saved default payment method for the customer. If your customers have saved a new Payment Method with your account (e.g. they save a new card) they wish to use, you can provide the Payment Method ID in the payment_method parameter to make the charge attempt with that payment method.
Thanks for the help, really appreciate it! Iโll try this approach and see how it works in our flow. ๐
Sure thing! Happy to shed what ๐ก I can ๐
I 100% recommend coding a simulation for this. I would write a script that creates the Customer with a valid Test payment method and Subscription. Make the first successful payment and then update the Customer to use our "Decline after attaching" card at the bottom of this table. You can use Test Clocks to advance the simulated time and make sure the next Invoice uses all automated retries before you attempt to use the Pay API.