#dishant0144_32519

1 messages · Page 1 of 1 (latest)

scenic shaleBOT
jagged tendon
#
tender lava
#

okay
then I can sent this to customer and from there they can pay

#

right?

jagged tendon
#

yes!

tender lava
#

okay

#

and for ex if last 2-3 invoices are not paid so Is there a way I can get the link?

jagged tendon
tender lava
#

can we use retrieve the invoices based on the customer id not by invoice id?

jagged tendon
tender lava
#

okay
and also we can filter invoices with the status
right?

jagged tendon
#

Yes! Both customer and status filters can be set

tender lava
#

one more query
If any subscription's invoice failed due card expired or insufficient balance how many retry stripe will do to recollect payment for that specific invoice?

jagged tendon
tender lava
#

okay
Let's say I set retry after 1 day & 3 day, So if during this time if customer changed the payment method so taht payment method applies from next subscription's invoice OR from this current failed invoice?\

jagged tendon
#

How does the customer change the payment method? If the payment method is changed on the default_payment_method of the subscription, then it'll be applied to the failed invoices as well

tender lava
#

I have one custom UI from where customers can change payment method and cancel the subscription

#

For. ex. one of my customer have subscription occuring at 18th of every month, somehow the in the first attempt payment fails and thru webhook I notified the customer about it and he/she changes the payment method

#

so in the next retry attempt stripe consider new assigned payment method and success the payment or that payment method will be applicable on next month's 18th

#

?

jagged tendon
tender lava
#

Yes
to update subscription's payment method I am using Update Subscription and before that I am attacthing the payment method to the customer

jagged tendon
#

Thanks! Then the payment method will be applied to the existing and future invoices

tender lava
#

okay
So in next retry from stripe it will debit the amount from the new payment method
right?

jagged tendon
#

Yes! I'd recommend giving a try in test mode to ensure that the behaviour aligns with your expectation

tender lava
#

okay
how can I execute this scenario in local can you guide me?

jagged tendon
#

I'd recommend using Test Clock to advance the time: https://stripe.com/docs/billing/testing/test-clocks with the declined test card with Decline after attaching: https://stripe.com/docs/testing#declined-payments

Learn how to move Billing objects through time in test mode.

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

tender lava
#

Okay
I'll try this
Thanks for the information