jeudi 30 août 2018

Testing - set declined card to a customer

I want to update a customer with a declined card for testing purposes.

But if I do:

Stripe.customers.update(stripeCustomer.id, {
    source: 'tok_chargeDeclined', // Token provided by stripe of a declined card
});

Exception while invoking method 'stripe.test' { Error: Your card was declined.

What I am missing?

Aucun commentaire:

Enregistrer un commentaire