贝宝与 Braintree 的集成 [英] Paypal integration with Braintree

查看:34
本文介绍了贝宝与 Braintree 的集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Nodejs 和 Javascript 中集成用于支付的 Braintree.

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

我已经在 https://sandbox.braintreegateway.com 上创建了一个帐户,现在我正在尝试将我的 Braintree 付款与我的使用插入"集成的网站,我按照网站上给出的所有步骤进行操作,通过它我得到一个贝宝按钮,点击后会打开一个贝宝弹出窗口,我在其中输入我的帐户详细信息,然后它要求同意各种术语.点击同意后,它说:

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 :

抱歉,我们无法连接到 PayPal.请过几分钟再试.再试一次"我不知道为什么我会得到这个.

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

看起来像使用 Braintree 设置我的 Paypal 个人资料的问题(尽管在沙箱中它并不重要).我尝试按照 Braintree 门户网站上的说明使用 Braintree 设置 paypal,但没有成功,我仍然遇到相同的错误消息.

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.

使用的代码来自以下 Braintree 文档:

Code used is from following Braintree documentation:

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

请帮我解决这个问题.

推荐答案

我联系了他们的支持团队.这是他们的回应

I contact their support team. this was their response

我相信您遇到了这个问题,因为您的沙箱是在巴基斯坦创建的,而 PayPal 不支持该国家/地区.如果您是一名为美国商家工作的集成开发人员,您将需要注册一个美国沙盒帐户.您可以在我们的网站上通过使用页面左下角的下拉菜单选择美国作为您的国家来完成此操作"

记住:注册页面左下角>>选择国家为美国

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

我使用美国作为我的国家在 Braintree 上注册了另一个沙盒帐户,并且运行良好.

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

这篇关于贝宝与 Braintree 的集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆