Stripe.deleteSource()

Delete a customer's default payment source.

Usage

Hover over inputs/exits for more info.

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


// Delete a customer's default payment source.

Stripe.deleteSource({

customer: 'cus_4kmLwU2PvQBeqq',

source: 'card_14t5VD2eZvKYlo2CbhcljD3Y',

: ,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

customer required

The ID of an existing customer whose card is being deleted.

'cus_4kmLwU2PvQBeqq'
source required

The Stripe ID of the source to delete.

'card_14t5VD2eZvKYlo2CbhcljD3Y'
undefined

Exits

error

An unexpected error occurred.

success

OK.