有没有办法存储信用卡/借记卡详细信息以备将来使用使用Braintree Android SDK

时间:2016-12-22 09:34:25

标签: android braintree

我在我的Android应用中使用Braintree SDK payments并且工作正常,但这是每次信用卡/借记卡详细信息时都会出现的问题。所以我的问题是,有没有办法存储下次付款的信用卡/借记卡详细信息,而无需再次询问同一用户的信用卡详细信息。

1 个答案:

答案 0 :(得分:1)

完全披露:我在Braintree工作。如果您有任何其他问题,请随时联系support

您可以在与您的Braintree帐户相关联的Braintree Payment Method Vault中存储信用卡和其他付款方式。付款方式为associated directly to customer records,客户可能会使用多种付款方式。

要在结帐时向客户提供付款方式,您有两种选择。如果您正在使用自定义集成,则可以check the customer object for associated payment methods然后look up the details for each payment method in turn。如果您正在使用Drop-in,则可以选择更简单的选项。

当显示客户ID时,Drop-in表单automatically fetches a customer's payment methods。要使用客户ID,首先generate a client token using a customer ID,然后use that client token to initialize the Drop-in

4.0.0-alpha.6