Saya mencoba mendapatkan riwayat akun saya dengan nodejs dan paypal-rest-sdk tetapi sebagai respons terhadap kode berikut hanyalah objek kosong {"count":0, "httpStatusCode":200}
/* Copyright 2015-2016 PayPal, Inc. */
"use strict";
var paypal = require('paypal-rest-sdk');
paypal.configure({
'mode': 'live', //sandbox or live
'client_id': 'my id',
'client_secret': 'my secret'
});
var listPayment = {
'count': '1',
'start_index': '1'
};
paypal.payment.list(listPayment, function (error, payment) {
if (error) {
throw error;
} else {
console.log("List Payments Response");
console.log(JSON.stringify(payment));
}
});
apakah ini cara yang benar atau apakah saya telah melakukan sesuatu yang salah?