#alecpope

1 messages · Page 1 of 1 (latest)

sharp lanceBOT
sturdy arch
unborn narwhal
#

You mean, I fetch the subscription and look on the status (if it is active e.g.)?

sturdy arch
#

Yes

unborn narwhal
#

Okay thanks, I will test out. Give me a moment

unborn narwhal
#

Thanks!
I tested it and it works. Now I wanted to test if it still works, when the invoice is not instantly paid. Is there a way to test this? My customer has a default payment method of the 4242... card

sturdy arch
#

https://stripe.com/docs/testing#declined-payments you can use one of the declined cards

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.

unborn narwhal
#

Hmm, can I add them as a default payment method? I can't with 4000000000009995 for example

sharp lanceBOT
unborn narwhal
#

Ah it works with 4000000000000341. Sorry

#

One problem: I added the payment method as default:
But when retreiving the user, there is no default payment method:

#

Customer is: cus_ORoCtoV2g5K953

unborn narwhal
#

Adding the payment method via dashboard and retrieving it currently with Stripe CLI

vital pewter
#

Yeah that won't set it as the default PM automatically AFAIK

unborn narwhal
#

Oh what? I will try with SetupIntent, one moment

vital pewter
#

That won't either, you need to update the Customer object after the fact and set the field