2016-04-13 74 views

回答

0

披露:我为Braintree的工作。

正如@ Robski18所提到的,您可以使用associated payment method创建一个客户。然后,当您使用Braintree::Transaction.sale()创建交易时,您可以传入customer_id以使用该客户的default payment method

或者,如果您在创建客户时没有付款方式,则可以在setting the store_in_vault_on_success option to true交易成功后将该客户的付款方式保存在保险柜中。

当您使用client token generated with a customer IDset up your client时,嵌入式用户界面将显示客户存储的付款方式选项。

如果您还有其他问题,请随时联系Braintree support