dimanche 8 novembre 2015

Generating token in Stripe on server Side

I want to create some tests to check my subscription failed processus.

At first I use a good working card (42...) and subscribe then I want to update the card of the Stripe Customer with the bad working card (40...4) to check the code of my webhook in case of failed subscription.

The problem I encounter, is to update a customer card, I should have a token, but my tests are written only server side (no javascript).

Is there any way to generate a token from server-side with Stripe?

Thanks in advance

Aucun commentaire:

Enregistrer un commentaire