#skyhawk_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/1293659057051271230
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Have you collected a PaymentMethod already here?
This is my code, I am getting stuck on Step 5 to Pay the Invoice after calling finalizeInvoice and Get
Yeah, using Stripe Test Mode and using a stripe customer with a payment set
Okay if you already collected a PaymentMethod and it is attached to the Customer then you don't need to call finalize / retrieve the PaymentIntent. You just use the Invoice Pay endpoint and pass in the PaymentMethod ID to the payment_method parameter: https://docs.stripe.com/api/invoices/pay#pay_invoice-payment_method
This will both finalize the Invoice and charge that PaymentMethod
Pay( Invoiceid ) basically?
Yep pretty much, and pass the payment_method parameter like I said above