问题标签 [braintree-sandbox]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1001 浏览

ios - iOS Swift 中的 Braintree Drop-In:在哪里获取变量 PaymentMethodNonce:

我一直按照这里的说明https://developers.braintreepayments.com/start/hello-client/ios/v4 在 iOS Swift 中将插入式支付表单与 Braintree 集成。我的代码如下所示,据我所知,它与文档完全匹配。

现在,我可以调用 fetchClientToken 函数,如您所见,该函数又调用 showDropIn,一切正常。

但是,要将 postNonceToServer 作为下一个函数运行,我需要一个变量 paymentMethodNonce 并且我不知道从哪里获得,我认为这在文档中被遗漏了。因此,我在运行 showDropIn 后无法继续...

我很困惑,我确信有一个简单的解决方法,但我找不到任何关于这一点的文档。

0 投票
1 回答
240 浏览

python - Braintree:Python Heroku 服务器

我有一个(可能很简单)关于在 python heroku 服务器上运行 Braintree 的问题,详见此处https://developers.braintreepayments.com/start/hello-server/python

现在,我是 heroku 的新手,并且已经尝试并完成了很多教程,这些教程似乎都创建了一个可由 Web 服务器访问的应用程序(例如使用 python 的烧瓶)。

显然,我无法通过 Web 服务器测试我的 Braintree 应用程序。有没有其他方法可以与我的大脑树服务对应,一旦它上线,看看它是否在做正确的事情?例如从控制台?

我只是想知道除了通过 iOS 之外是否还有其他方法可以与我的 Braintree 服务器交互并测试输入和输出行为。

另外,目前我使用 procfile

在我的 requirements.txt 中,在这两种情况下都不确定这是否正确。

0 投票
0 回答
286 浏览

braintree - 当我打电话给 Braintree::Transaction.sale 时,出现错误“美国运通卡的 CVV 必须为 4 位,其他卡类型的卡必须为 3 位”

当我使用 Drop-in UI 创建的“payment_method_nonce”调用 Braintree::Transaction.sale 时,一切正常。但是,当我在 Drop-in UI 中添加一些自定义字段并调用相同的 API 后,我收到错误消息“美国运通卡的 CVV 必须为 4 位,其他卡类型的 CVV 必须为 3 位”。我很确定 CVV 应该是正确的......有人知道这个错误吗?

iOS客户端实现:

Ruby服务器端:

0 投票
0 回答
62 浏览

objective-c - BTUIKLocalizedString.h 中的 Braintree 付款错误

我尝试在我的应用程序中实现 Braintree iOS v4 并按照在

https://developers.braintreepayments.com/guides/drop-in/ios/v4

但是当我使用此步骤进行集成时出现以下错误。

截屏

当我点击购买按钮时,我想在 UI 中添加下拉菜单。

我使用以下代码来实现它。

谢谢,海腾

0 投票
1 回答
231 浏览

ios - 无法通过 cocoapod 安装 BraintreeDropIn '无法找到 `BraintreeDropIn` 的规范

无法通过 cocoapod 安装 BraintreeDropIn。

我收到错误

找不到BraintreeDropIn的规范。

在我的 podfile 中,

0 投票
2 回答
260 浏览

ios - 无法使用 Braintree iOS 呈现 dropIn UI

我正在创建一个支付应用程序并为此使用braintree。我想使用braintree dropIn UI。通过 pod 安装 BraintreeDropIn。使用以下代码呈现 dropIn UI。

tokenization从下面的沙盒控制面板中获得了密钥,Tokenization Keys并将其传递给 showDropIn 函数。它仍然没有显示任何内容,没有进入这个函数

0 投票
1 回答
2330 浏览

ios - 如何使用 Braintree 沙箱测试贝宝支付

我在我的应用程序中使用 Braintree 进行付款(信用卡和 Paypal)。我正在使用自定义用户界面。当单击 Paypal 按钮付款时,我使用以下代码。

它会打开此链接https://checkout.paypal.com/one-touch-login-sandbox/index.html?action=setup_billing_agreement&ba_token=BA-HERMES-SANDBOX-TOKEN&cancel_url=com.pronto.btreeInteg.payments%3A%2F% 2Fonetouch%2Fv1%2Fcancel&controller=client_api%2Fpaypal_hermes&experience_profile%5Baddress_override%5D=false&experience_profile%5Bno_shipping%5D=1&merchant_id=qkd2xjhc84nhd5b3&return_url=com.pronto.btreeInteg.payments%3A%2F%2Fonetouch%1 2Fv1% 2 它给了我虚拟的随机数。我想通过登录与我的 Paypal a/c 核对。现在我正在使用 Braintree 沙箱 a/c。

0 投票
1 回答
278 浏览

node.js - 如何从 submerchant 帐户在 Braintree MarketPlace 进行退款?

我必须使用子商家帐户从 Braintree 市场退款,但似乎只有两种退款方式,即从主商家帐户或两者(子商家和主商家)帐户。是否可以仅使用子商户帐户进行退款?

0 投票
0 回答
630 浏览

php - 如何从沙盒模式转到生产模式 - 由 Braintree 提供支持的 Woocommerce paypal

我已经确保一切都适用于 Braintree 提供的沙盒模式,我现在想过渡到生产模式并允许真正的支付交易。

为此,我必须为生产模式输入商家 ID 和 API 密钥

此处阅读 Braintree 官方网站提供的说明,我需要输入此代码

注意:此处的代码不在官方的 Braintree 说明中,但其他网站已建议使用此代码来解决问题:require_once(plugins_url() .'/woocommerce-gateway-paypal-powered-by-braintree/ Braintree_sdk/lib/Braintree.php');

但是,当我这样做时,它给了我以下错误:“致命错误:在 /home4/fierytycoon/public_html/resumego.net/wp-content/themes/divi-childtheme/functions.php 中找不到类 'Braintree_Configuration' 在线136"

第 136 行指的是使用的代码的第一行“Braintree_Configuration::environment('production');”

如何修复此错误并使自己从沙盒测试模式进入生产实时模式?

0 投票
0 回答
102 浏览

android-studio - 安卓应用程序中的 Braintree 信用卡集成

您好,我正在开发一个应用程序,我想在其中使用 Braintree 信用卡集成来接受客户付款。我搜索但没有得到适当的教程。我还搜索了braintree developer,但它令人困惑。请告诉我该怎么做。还有最重要的后端工作流程。