Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal integration with Braintree

I am trying to integrate braintree for payments in Nodejs and Javascript.

I have created an account on https://sandbox.braintreegateway.com and now I am trying to integrate my braintree payment with my website using "drop in" integration, I followed all the steps given on site, with which I get a paypal button, which on click opens up a paypal pop up window in which I enter my account details, After which it asks to agree on various terms. After clicking Agree it says :

"Sorry we cannot connect to PayPal. Please try again in a few minutes. Try Again" I am not sure why I am getting this.

Looks like a problem of setting up my profile of Paypal with Braintree (though in sandbox it doesn't really matters). I tried to follow set up of paypal with braintree as instructed on braintree portal, but with no success I am still at the same Error Message.

Code used is from following Braintree documentation:

https://developers.braintreepayments.com/javascript+node/guides/drop-in#paypal

Please help me out with this.

like image 321
Prashant Avatar asked Jul 18 '15 19:07

Prashant


People also ask

How does Braintree integrate with PayPal?

Enter your PayPal credentials in the Braintree Control PanelYou must enter your PayPal Business Account credentials in the Braintree Control Panel to enable this payment method in production. You can only link one PayPal account to your Braintree gateway. To complete your PayPal setup: Log into the Control Panel.

Is Braintree part of PayPal?

Braintree was acquired by PayPal in 2013, and it's hands-down the more tech-forward PSP among the two. With its suite of developer tools, you or your engineers can customize your shopping cart and integrate it with your existing platform.

What is the difference between Braintree and PayPal?

Braintree is aimed at higher-volume eCommerce businesses that need a lot of custom control over their payment processes. In contrast, PayPal is designed to be simple and easy to use for merchants with modest eCommerce needs.

Is Braintree PayPal free?

Braintree is a payment processor that allows online businesses to accept payments via app or website. It also provides merchant accounts and payment gateways. PayPal owns Braintree, and a PayPal Business account is required. Fees are 2.59% plus 49 cents per transaction for credit, debit and digital wallets.


2 Answers

I was able to contact braintrees support and they configured my sandbox account.

This is what they said:

Hey Johhan,

Thanks for reaching out to Braintree support. I’d be happy to help.

I took a look at your Sandbox account and it looks like you weren’t set up with a processor connection to test out PayPal. This can happen sometimes when Sandbox accounts are created outside of the United States.

We have corrected this setting and your Sandbox is now set up to process PayPal. You can verify that PayPal is a valid payment method in your Sandbox by logging into your Sandbox Control Panel and clicking on Settings > Processing. You’ll see a list of accepted payment methods next to your Merchant Account.

Hope that helps! Let us know if there’s anything else we can do for you.

Best,

Basically, you have to verify that PayPal is a valid payment method in your sandbox account.

like image 60
Johhan Santana Avatar answered Oct 15 '22 02:10

Johhan Santana


I contact their support team. this was their response

"I believe you’re running into this issue because your sandbox was created in Pakistan, which is not a supported country with PayPal. If you are a developer working for a US based merchant on an integration, you will need to signup for a US sandbox account. You can do this on our website by selecting United States as your country using the drop down menu on the bottom left of the page"

Remember: bottom left of signup page >> Select Country as US

i signed up for another sandbox account on Braintree using US as my country and it worked perfectly.

like image 45
Lal Avatar answered Oct 15 '22 02:10

Lal