Stripe.captureCharge()

Capture the payment of a previously-created charge.

This is the second half of the two-step payment flow, where first you created a charge with the "capture" option set to false. Uncaptured payments expire exactly seven days after they are created. If they are not captured by that point in time, they will be marked as refunded and will no longer be capturable.

Usage

Hover over inputs/exits for more info.

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


// Capture the payment of a previously-created charge.

Stripe.captureCharge({

charge: 'ch_14ziQH2eZvKYlo2Ci0BoqQvT',

: ,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

charge required

The Stripe ID of an "uncaptured" charge.

'ch_14ziQH2eZvKYlo2Ci0BoqQvT'
undefined

Exits

error

An unexpected error occurred.

success

OK.