#Benoît
1 messages · Page 1 of 1 (latest)
Hello 👋
Invoices in draft mode won't have any linked PaymentIntents.
You need to finalize the invoice first
Finalized invoices should have a PaymentIntent
Hello @outer oriole 🙂
Thank you for your response. I saw on the docs that finalize an invoice will make an attempt to pay, is that right ? If so, i wouldn't have a payment error webhook fired
Finalizing invoice should move the invoice from draft to open
The payment attempt is made if you've set collection_method to charge_automatically
Ok, but i can't set collection_method to "send_invoice" because i don't want an email to be sent to my user
Is there another way to check a "requires_action" or a "requires_payment_method" status ?
If you've set collection_method to charge_automatically but the customer doesn't have a payment method on file then the payment intent should be in requires_payment_method status
Ah OK ! Great ! I'm going to try this !
If the customer does have a PaymentMethod on file but it requires 3DS then the PaymentIntent should move to requires_action
Excellent !
You can use the test cards here to trigger 3DS scenarios
https://stripe.com/docs/testing#regulatory-cards
👍