【发布时间】:2015-10-14 20:24:33
【问题描述】:
我正在使用 Braintree Dropin UI,我需要找出卡类型,例如 AMEX、VISA 等。
我正在使用 JS + .NET。这是我的付款请求代码:
var request = new TransactionRequest
{
Amount = Math.Round(amount, 2),
PaymentMethodNonce = nonce,
MerchantAccountId = merchantAccount,
Options = new TransactionOptionsRequest
{
SubmitForSettlement = true
}
};
实际上,在进行交易之前,我需要为某些特定的卡类型使用特定的merchantAcount。
有什么方法可以从客户端或clientToken 使用此request 或nonce 获取PaymentMethod。
我可以在 Braintree 保险库中看到 PaymentMethod 令牌。
任何帮助将不胜感激。
提前致谢。
【问题讨论】: