#jamie_97274

1 messages · Page 1 of 1 (latest)

balmy narwhalBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

mint turtle
#

hi there!

#

not really. are you trying to test a failed recurring payment?

inner sequoia
#

yep exactly

#

Before I tried to test this by deleting the cc payment method from the user - which will then fail the payment. But this does not call a payment_intent.failed_payment only a invoice.failed_payment because I suspect there is nothing to take payment from

#

Any advice @mint turtle ?

mint turtle
#

so you have two options to test this:

  1. create a Subscription with a valid test card, like 4242. then change the card of the customer to the one below that will be declined, and wait for the next payment to fail. note that you can use Test Clock to mode time forward so you don't have to wait. (https://stripe.com/docs/billing/testing/test-clocks)
#
  1. or simpler: create a subscription with the card I mentioned above, and set a free trial to a few seconds. as soon as the free trial ends, Stripe will try to charge the card, which will fail
inner sequoia
#

Regarding option 1

#

I can't edit the card details on a payment method, so I need to remove it, add a new one, and change the payment method on the subscription

mint turtle
#

correct

inner sequoia
#

and I can't add a test declined card

mint turtle
#

no, you need to add the card I shared above

inner sequoia
#

ah got it

#

Perfect this works thank you

#

you can close this ticket