lundi 30 septembre 2019

Programatically Testing a Stripe SetupIntent

We're creating some automated testing for SetupIntent API in stripe and would like to set up a progamatic test for it. But I'm stuck at the

handleCardSetup step on the client which associates a payment method with the SetupIntent.

I'd like to be able to associate one of the test payment methods with it, but not sure how that could be done without launching the web client and typing in a test code.

How does one use the test payment methods (eg pm_visa_debit_transferFail) with such a flow?

Aucun commentaire:

Enregistrer un commentaire