Payout Nodejs REST SDK Authorization issues.

developer_bw
New Community Member

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.

Login to Me Too
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.