-
Notifications
You must be signed in to change notification settings - Fork 8
Payments_Pending
Jacob McConnell edited this page Jun 11, 2014
·
1 revision
You must specify your API username and password when creating your 2checkout-node object (named ‘tco’ in these examples) before calling this method.
##Methods
##pending
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"
}Please feel free to contact 2Checkout directly for assistance with your integration.