0
我在NodeJS應用程序中使用PayPal-node-SDK模塊來創建支付。 我的代碼是錯誤:使用PayPal-node-SDK讀取ECONNRESET
var paypal = require('paypal-rest-sdk');
paypalRequest = { sender_batch_id: 'h4mq5b3xr',
email_subject: 'You have a payment' },
items:
[ { recipient_type: 'EMAIL',
amount: { value: 100, currency: 'USD' },
receiver: //sandbox text account,
note: 'Thank you.' } ]
}
return paypal.payout.create(paypalRequest, true, function (paypalErr, paypalResponse) {
console.log('paypalErr',paypalErr);
console.log('paypalResponse',paypalResponse);
}
但是當我調用該函數我正在錯誤
paypalErr { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
paypalResponse undefined
任何人都可以提出什麼錯誤,我怎麼能糾正呢? 請幫忙。