#celine
1 messages · Page 1 of 1 (latest)
invoice
in_1JhPVHHK9WuDN2ZRGoePp0Vp
payment_intent is
pi_3JhQSFHK9WuDN2ZR1Ca3S2BK
hello. sorry for the late revert. above are the ids
@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
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)
im following this guide: https://stripe.com/docs/billing/testing
I would like to test failed subscription payment. i postpone payment of a subscription using a trial period and attach the card 4000 0000 0000 0341 to the customer
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
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
you're welcome, feel free to reach out again if you have issues!