#celine

1 messages · Page 1 of 1 (latest)

velvet forum
#

hello @jaunty jay, can you share the invoice id? it'd be something like in_123

jaunty jay
#

invoice

#

in_1JhPVHHK9WuDN2ZRGoePp0Vp

#

payment_intent is
pi_3JhQSFHK9WuDN2ZR1Ca3S2BK

#

hello. sorry for the late revert. above are the ids

velvet forum
#

@jaunty jay The customer has not had a invoice_settings.default_payment_method [0] set, nor does it have the default_payment_method set on the subscription. So when Stripe attempts to pay the invoice automatically, it fails because there is no payment method set and hence the attempt on the PaymentIntent was not even made.

Does all of this make sense?

[0] https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
[1] https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method

jaunty jay
#

oh

#

wait

#

there is a payment_intent, its pi_3JhQSFHK9WuDN2ZR1Ca3S2BK

velvet forum
#

Sorry, i should have been clearer - the PaymentIntent is automatically created, but there is no confirmation attempt on the Payment Intent because attempting to pay the invoice failed (due to no payment method)

jaunty jay
#

according to your guide, i should set the subscription payment method on the invoice.payment_successful webhook

#

since that card is meant to fail, it wont be set on the subscription

velvet forum
#

I think you've probably missed out this bit To test the effects of payment failure on an active subscription, attach the 4000 0000 0000 0341 card as the customer’s default payment method

jaunty jay
#

ahhhh

#

i see

#

you are right!

#

thank you!!!!!

velvet forum
#

you're welcome, feel free to reach out again if you have issues!