Stripe.deleteCard()

Delete a card in Stripe for a customer

Usage

Hover over inputs/exits for more info.

var Stripe = require('machinepack-stripe-subscriptions');


// Delete a card in Stripe for a customer

Stripe.deleteCard({

apiKey: 'somestring837483749blah',

card: 'card_14t5VD2eZvKYlo2CbhcljD3Y',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

apiKey required

Your Stripe API key

'somestring837483749blah'
card required

The Stripe id of the card to delete

'card_14t5VD2eZvKYlo2CbhcljD3Y'

Exits

error

An unexpected error occurred.

success

OK.

N/A