#Benoît

1 messages · Page 1 of 1 (latest)

stiff graniteBOT
outer oriole
#

Hello 👋
Invoices in draft mode won't have any linked PaymentIntents.
You need to finalize the invoice first

#

Finalized invoices should have a PaymentIntent

weary valve
#

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

outer oriole
#

Finalizing invoice should move the invoice from draft to open
The payment attempt is made if you've set collection_method to charge_automatically

weary valve
#

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 ?

outer oriole
#

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

weary valve
#

Ah OK ! Great ! I'm going to try this !

outer oriole
#

If the customer does have a PaymentMethod on file but it requires 3DS then the PaymentIntent should move to requires_action

weary valve
#

Excellent !

outer oriole
weary valve
#

Yep that's i already do 👍

#

Thanks, i will try to finalize the invoice

outer oriole
#

👍