简体   繁体   English

Paypal与Braintree集成

[英]Paypal integration with Braintree

I am trying to integrate braintree for payments in Nodejs and Javascript. 我正在尝试将braintree集成到Nodejs和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. 我在https://sandbox.braintreegateway.com上创建了一个帐户,现在我正在尝试使用“drop in”集成将我的braintree支付与我的网站集成,我按照网站上给出的所有步骤,我得到了paypal按钮,点击打开一个paypal弹出窗口,我在其中输入我的帐户详细信息,之后它要求就各种条款达成一致。 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. “抱歉,我们无法连接到PayPal。请在几分钟后重试。再试一次”我不知道为什么我会这样做。

Looks like a problem of setting up my profile of Paypal with Braintree (though in sandbox it doesn't really matters). 看起来像使用Braintree设置我的Paypal配置文件的问题(虽然在沙箱中它并不重要)。 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. 我尝试按照braintree门户网站上的说明跟随braintree设置paypal,但是没有成功我仍然处于相同的错误消息。

Code used is from following Braintree documentation: 使用的代码来自以下Braintree文档:

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

Please help me out with this. 这个你能帮我吗。

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" “我相信你遇到了这个问题,因为你的沙箱是在巴基斯坦创建的,而巴基斯坦并不是支持PayPal的国家。如果你是一个开发人员在美国的商家工作,你需要注册一个美国。沙箱帐户。您可以使用页面左下角的下拉菜单选择美国作为您所在的国家/地区,在我们的网站上执行此操作

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. 我使用美国作为我的国家,在Braintree上注册了另一个沙盒帐户,并且工作得很好。

I was able to contact braintrees support and they configured my sandbox account. 我能够联系braintrees支持,他们配置了我的沙盒帐户。

This is what they said: 这就是他们所说的:

Hey Johhan, 嘿约翰,

Thanks for reaching out to Braintree support. 感谢您与Braintree的支持联系。 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. 我查看了您的Sandbox帐户,看起来您没有设置处理器连接来测试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. 我们已更正此设置,您的Sandbox现已设置为处理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. 您可以登录沙箱控制面板并单击设置>处理,验证PayPal是否是沙箱中的有效付款方式。 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. 基本上,您必须验证PayPal是沙盒帐户中的有效付款方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM