#manic-pixie-dream-bananarchist_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1248426810321141821
đ Have more to share? Add details, code, screenshots, videos, etc. below.
I'm wondering if instead of cancelling the hold payment intent right after creating it, we can keep it open until the trial period ends, and then capture it as part of the first invoice on the subscription. I know I would be able to do something like this if we were controlling the flow of invoice creation, however since the invoice lifecycle is managed by stripe through the subscription, I'm unsure of how I would attach my pre-existing payment intent, as it seems the invoice is created with it's own payment intent
I'm not actually seeing the ability to associate a payment intent with an invoice or vice versa at all, even on creation
Yeah the Invoice will create a PaymentIntent, but you can't link it afterward
How about creating a Setup Intent first to verify the card? Given the purpose is to verify
What is the difference?
Aside from verification of card details, we also want to verify the card has funds available so we have greater confidence we will be able to charge them after the trial period ends. We've seen a lot of issues with people using visa gift cards that only have $5 left on them, or cards that are maxed out to basically game the free trial, so this is a way we're able to filter out some users that have 0 intent to convert
If I can't attach a payment intent to an invoice, it seems like the only other option would be to void the first invoice and instead capture the funds via the payment intent we already created when that first invoice is created. Is there any fallout as far as the subscription is concerned to doing this?
I see you point. Yes SetupIntent could verify the card but can't see the sufficient fund. What you describe does sound possible though. You can mark the Invoice as paid_out_of_band and simply capture the PI. But you can't extend the trial over 7 days then (7 days = maximum holding uncapture PI)
For reporting purpose you may want to "link" the first Invoice with the original PI, via metadata for example
Of course it's not clean as the native PI inside the Invoice
Our trial period is 5 days we're fine in terms of the payment intent window, but noted if we ever increase the trial period
Good suggestion on linking via metadata
Is there any way for us to know via API that the invoice is the first invoice of a subscription (aside from just listing invoices for the subscription and seeing if it's length 1)? I'm planning on managing this in the invoice.created webhook