- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在编写一个具有支付功能的 IOS 应用程序。我决定使用 Braintree V Zero。
一开始,我使用了他们出色的 DropIn UI 功能,一切正常。但当付款发生时,Drop In UI 要求最终用户每次都输入他的信用卡或 Paypal 信息。
有谁知道如何通过 BrainTree V 零实现一种自动充电解决方案吗?
就像 Uber 的收费解决方案。
我想可能需要从应用端或服务端标记用户的信用卡信息?
router.get('/token', function (req, res) {
console.log('Kevin in token be called %s', req.param('aCustomerId'));
var aCustomerId = req.param('aCustomerId');
console.log('Kevin %s', aCustomerId);
gateway.clientToken.generate({customerId: aCustomerId}, function (error, response) {
res.send(response.clientToken);
console.log(response.clientToken);
});
});
提前谢谢您!
最佳答案
全面披露:我为 Braintree 工作。
Braintree 临时遗嘱 display previously used payment methods for a customer ,如果您在 generating a client token 时传递 customer_id
在你的服务器上。的下面是如何在 Node 中执行此操作的示例:
gateway.clientToken.generate({
customerId: aCustomerId
}, function (err, response) {
var clientToken = response.clientToken
});
使用付款方式后,它将保存在 drop-in 中,客户无需再次输入。创建交易时传递保存的支付方式的token:
gateway.transaction.sale({
amount: "10.00",
paymentMethodToken: theToken,
options: {
submitForSettlement: true
}
}, function (err, result) {
});
如有任何疑问,欢迎随时联系Braintree support .3133e
关于ios - 如何在 IOS 应用程序上使用 Braintree V Zero?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36180465/
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 7 年前。 Improve th
所以我正在开发一个黑 jack 程序,但我有点卡住了。我会警告大家,我对编程真的很陌生,而且,我正在项目中期......所以有一些松散的结局和未使用的变量,以及一些不必要的逻辑(用于测试),但这就是我
我正在尝试创建一个可用作 OpenGL 测试工具的示例程序。到目前为止,我的那个似乎可以工作,但似乎忽略了通过统一变量 MVPMatrix 传递的 MVP 矩阵。当我添加代码以读回制服并检查它是否确实
感谢您帮助我,这是有关我的代码的部分。 printf("Thank you, now please enter the logic gate"); scanf("%s", &C); if (C ==
public static void ejemplosString(String palabra){ char[] letras = palabra.toCharArray();
所以,我有一个 php 应用程序,通过 cgi 和 nginx 运行。我有一个 .jar 程序,用于在条形码打印机(Zebra)上打印条形码,猜猜看是什么!。 我的 php 应用程序使用 exec()
我遇到的唯一问题是 getAll() 方法,它似乎在 PersonnelController 类中的位置立即运行。我也曾在其他很多地方尝试过,但都没有成功。 setAll() 方法看起来不错,我已经测
我是一名优秀的程序员,十分优秀!