Nodejs Paypal รับประวัติบัญชี

ฉันกำลังพยายามรับประวัติบัญชีของบัญชีของฉันด้วย nodejs และ paypal-rest-sdk แต่เนื่องจากการตอบสนองต่อโค้ดต่อไปนี้เป็นเพียงวัตถุว่าง {"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));
    }
});

นี่เป็นวิธีที่ถูกต้องหรือฉันทำอะไรผิดไป?


person TheCranberry2011    schedule 03.08.2016    source แหล่งที่มา
comment
อาจซ้ำกันของ Paypal: ประวัติการทำธุรกรรมด้วย REST API / Nodejs SDK   -  person ACEG    schedule 03.08.2016
comment
เห็นได้ชัดว่าคุณสามารถค้นหาการชำระเงินที่ดำเนินการหรือสร้างขึ้นด้วย Rest API เท่านั้น แต่ไม่สามารถค้นหาการชำระเงินที่สร้างด้วย Classic API ได้ ดูสิ่งนี้: stackoverflow.com/questions/18138224/   -  person ACEG    schedule 03.08.2016
comment
ยังไม่มีวิธีอื่นเหมือนกับการแฮ็ก Ruby หรือไม่ นั่นไม่สามารถทำได้ด้วยโหนด js เหรอ?   -  person TheCranberry2011    schedule 03.08.2016
comment
ขออภัย ไม่รู้ -- ฉันไม่ได้ทำงานด้านนี้ด้วยตัวเอง   -  person ACEG    schedule 03.08.2016