#johanhenriksson

1 messages · Page 1 of 1 (latest)

lusty drumBOT
crimson schooner
#

Hi there

#

Hmm really the best way to do this is using a test clock

#

Is there a reason you don't want to use test clocks here?

silver dagger
#

I would need to manually go into the BE database and connect the test clock customer and test clock subscription. I would like to use a reusable method that I can replicate programmatically.
Is there a test credit credit card number that Stripe accepts that would achieve this? Doesn't seem like "Decline after attaching" card will do this? https://stripe.com/docs/testing#declined-payments

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.

crimson schooner
#

No there is no test card that does this automatically.

#

If you want programmatic testing here we really recommend mocking responses in this case

silver dagger
#

Thanks for the help! Have great rest of the day

crimson schooner
#

Sure thing! And you too