【问题标题】:how can multiple payment be done with previously added card?如何使用之前添加的卡进行多次付款?
【发布时间】:2018-04-20 17:39:23
【问题描述】:

我可以使用以下代码获得随机数。

DropInResult result = data.getParcelableExtra(DropInResult.EXTRA_DROP_IN_RESULT);
                PaymentMethodNonce nonce = result.getPaymentMethodNonce();
                String stringNonce = nonce.getNonce();

我可以打电话付款。 1. 现在我又想在不添加卡详细信息的情况下支付金额,怎么办? 2.如何在不添加卡片详细信息的情况下生成新的nonce?

【问题讨论】:

    标签: android paypal braintree


    【解决方案1】:

    According the Braintree developer docs:“付款方式随机数是对付款信息的安全、一次性引用。”

    您可以use the payment method nonce to create a transaction。如果你这样做,nonce 将被消耗,卡数据也将被消耗。如果您希望安全地存储卡数据以供重复使用,您可以在您的Vault 中使用create a payment method 的nonce。

    然后您可以检索payment method token 并使用它来创建事务。

    【讨论】:

      猜你喜欢
      • 2021-06-10
      • 2018-04-22
      • 2016-03-02
      • 1970-01-01
      • 2019-12-26
      • 1970-01-01
      • 2014-10-30
      • 2016-04-15
      • 2016-08-31
      相关资源
      最近更新 更多