Code Monkey home page Code Monkey logo

Comments (8)

prakash-gangadharan avatar prakash-gangadharan commented on July 18, 2024

Hi @techtic-harshad , can you give your code snippet and are you trying to integrate with payouts API.
"sending amount to the other paypal account by email", is this your need?

from paypal-node-sdk.

techtic-harshad avatar techtic-harshad commented on July 18, 2024

@prakash-gangadharan

Yes(sending amount to the other paypal account by email), i have tried with below code and it returns AUTHORIZATION_ERROR

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": "About withdraw"
                },
                "items": [
                    {
                        "recipient_type": "EMAIL",
                        "amount": {
                            "value": 0.99,
                            "currency": "USD"
                        },
                        "receiver": ***@test.com,
                        "note": "Thank you."
                        // "sender_item_id": "item_3"
                    }
                ]
            };
        
            // var sync_mode = 'true';
            await this.paypal.payout.create(create_payout_json, function (error, payout) {
                if (error) {
                    console.log(error);
                    throw new ApolloError("something went wrong, please try after some time");
                } else {
                    //need to test with below function because not tested yet
                    return {
                        data : payout,
                        message: "Amount successfully sent to your PAYPAL account."
                    }
                }
            });

from paypal-node-sdk.

prakash-gangadharan avatar prakash-gangadharan commented on July 18, 2024

Prerequisite/basic requirements for a account to do Payouts.

To onboard a merchant to use Payouts, merchant must have

  • PayPal business account
  • Confirmed email address
  • Bank account should be attached to the account (Bank account has to be verified by PayPal)
  • CIP verified (for US account) / KYC verified account
  • Enable Payouts (masspay) for the account

Hi @techtic-harshad, can you validate if the account which you used fulfill the above mentioned basic requirements?

Thanks!
Prakash

from paypal-node-sdk.

techtic-harshad avatar techtic-harshad commented on July 18, 2024

@prakash-gangadharan currently i am using sandbox account so, its needed?

because we don't have actual account to work on.

from paypal-node-sdk.

prakash-gangadharan avatar prakash-gangadharan commented on July 18, 2024

@techtic-harshad yes, you can create create test accounts in sandbox.

from paypal-node-sdk.

techtic-harshad avatar techtic-harshad commented on July 18, 2024

@prakash-gangadharan

I have created APP for clientId and secretKey from sendbox account.

But, when i tried to call paypal.payout.create, it will return an error(mentioned in #437 (comment)).

from paypal-node-sdk.

techtic30naitik avatar techtic30naitik commented on July 18, 2024

How can we add the payout in sandbox paypal account, how we can we fill all the requirements to use payout in sandbox pay pal account.

from paypal-node-sdk.

prakash-gangadharan avatar prakash-gangadharan commented on July 18, 2024

Hi @techtic-harshad and @techtic30naitik ,
https://developer.paypal.com/docs/payouts/integrate/prerequisites/# -> this is the documentation on prerequisites.
https://developer.paypal.com/docs/payouts/# -> this is for payouts.

from paypal-node-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.