Payout Nodejs REST SDK Authorization issues.
developer_bw
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jun-02-2019
10:14 AM
I am trying to implement Payout feature in My app.
I am constantly getting 403 error. There are no description or solution available.
var sender_batch_id = Math.random().toString(36).substring(9);
var create_payout_json = {
"sender_batch_header": {
"sender_batch_id": sender_batch_id,
"email_subject": "You have a payment"
},
"items": [
{
"recipient_type": "EMAIL",
"amount": {
"value": 20,
"currency": "USD"
},
"receiver": "sanbooxemail",
"note": "Thank you.",
"sender_item_id": "item_3"
}
]
};
paypal.payout.create(create_payout_json, function (error, payout) {
if (error) {
console.log(error.response);
} else {
console.log("Create Single Payout Response");
console.log(payout);
}
});
I tried above code.
Paypal Debug ids : e99cb298477f0, e8a7a7b174393, ad06c9ab77270.
Nodejs : 10.15.3
paypal-rest-sdk: 1.8.1
Paypal docs really needs to be improved.
0 REPLIES 0

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Subscription Status Immediately Updates to New Plan Despite Payment Scheduled for Next Billing Cycle in NVP/SOAP APIs
- Checkout Issues with external platform when using PayPal with NVP/SOAP API setup as payment gateway in NVP/SOAP APIs
- Error creating an order for cupture - Issues with Authorization header in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- Issues constructing authorization endpoint for PayPal login button in SDKs
- multiparty vendor in REST APIs