Language

2Checkout Documentation

Pending

You must specify your API username and password when creating your 2checkout-node object (named ‘tco’ in these examples) before calling this method.

Description

Use to retrieve your pending payment information.

Arguments

  • callback - Function to be called on success/error

Returns

  • Payment Object

Example Usage:

tco.payments.pending(function (error, data) {
    if (error) {
        console.log(error);
    } else {
        console.log(data.response_code);
    }
});

Example Response:

{
    "payment": {
        "amount": "999.99",
        "payment_fee": "0.00",
        "payment_id": "2436561667",
        "payment_method": "ach",
        "release_level": "15",
        "reserve_held": "14.19",
        "total_adjustments": "61.07",
        "total_balance_forward": "0.00",
        "total_chargeback_fees": "0.00",
        "total_commissions": "0.21",
        "total_fees": "86.92",
        "total_outgoing_commissions": "4.35",
        "total_refunds": "275.36",
        "total_reserve_released": "0.00",
        "total_sales": "283.86"
    },
    "response_code": "OK",
    "response_message": "payment info retrieved"
}