Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox Credit card payment is not processing #20

Open
Ilankumaran-developer opened this issue Apr 11, 2018 · 0 comments
Open

Sandbox Credit card payment is not processing #20

Ilankumaran-developer opened this issue Apr 11, 2018 · 0 comments

Comments

@Ilankumaran-developer
Copy link

Hi,

I have been working hard for two days to process credit card using paypal-adaptive and consistently it is failing to work..It is good to see that it redirects user from my website to the sandbox paypal for authorization., After entering card details., It keeps loading.....

var Paypal = require('paypal-adaptive');

    var paypalSdk = new Paypal({
        userId: 'XXXXXXXXXXXXXX_api1.gmail.com',
        password: 'XXXXXXXXXXXXXXXXXXXX',
        signature: 'XXXXXXXXXXXX',
        sandbox: true 
    });
    var payload = {
requestEnvelope: {
    errorLanguage:  'en_US'
},
actionType:     'PAY',
currencyCode:   'USD',
feesPayer:      'EACHRECEIVER',
memo:           'Chained payment example',
cancelUrl:      'http://localhost:3003/paymentcancel',
returnUrl:      'http://localhost:3003/paymentsuccess',
receiverList: {
    receiver: [
        {
            email:  'XXXXXXXXXXXXXXXXXXXXXXXX',
            amount: '100.00',
            primary:'true'
        }
    ]
}

};

Any help would be appreciated ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant