#aaparth-subscription-failed-payment

1 messages ยท Page 1 of 1 (latest)

wet hatch
#

Hi there ๐Ÿ‘‹

waxen dust
#

Continues on 2nd question

I want to change the card when its expired so customer can add new one

#

hello @wet hatch

wet hatch
#

I'm going to work backwards through your questions if you don't mind

waxen dust
#

yeah please

wet hatch
#

#3: For testing failed payments, the way I do it is by creating a subscription with a trial period using a test card that will fail payment, such as 4000000000000002.

The trial period skips the charge initially since the first invoice is for $0. Then I forcibly end the trial period to trigger the first non-zero-dollar invoice, which should then fail.

waxen dust
#

okay

wet hatch
waxen dust
#

I have applied for Test Clocks but can't use it now, so will you be able to tell me when can I use that ?

wet hatch
#

Sorry, that I don't know, that's a question better suited for our support team.

waxen dust
#

okay

wet hatch
#

#2 If you specified a default_payment_method on the subscription, then you can update that field to change the payment method that the subscription will try to use. If you didn't set it on the subscription, then the payment method is likely being pulled from the customer record and will need to be updated there.
https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method

waxen dust
#

okay

wet hatch
waxen dust
#

I wanted to know how can I make customer pay the pending or overdue invoice

#

can you just point me up in that directions

wet hatch
waxen dust
#

thanks mate

wet hatch
#

Any time!

waxen dust
#

let me try it out and I will reach to you if need any additional help

wet hatch
#

Sounds great, we'll be here.