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
- Pay by card WooCommerce Paypal Payments : loading issues, failed orders in PayPal Payments Standard
- Paypal Checkout Popup Abort Link always fails (iOS) in Sandbox Environment
- Issue `ZERO_OUTSTANDING_BALANCE` when Capturing authorized payment. in REST APIs
- Are sandbox api payments currently down? in Sandbox Environment
- "PAYEE_NOT_CONSENTED" Only for REST API ? in REST APIs