简体   繁体   English

条纹如何使用iOS / Parse为客户存储的信用卡创建令牌

[英]Stripe how to create a token for a Credit Card stored with customer using iOS / Parse

Im in the process of creating automatic charges to Stripe out of an iOS app. 我正在创建自动收费以从iOS应用程序剥离的过程中。

I can: 我可以:

  • collect card info 收集卡信息
  • create a token with publishable key 创建具有可发布密钥的令牌
  • create a new customer and attach that collected credit card to the new customer by using the token 创建一个新客户,并使用令牌将收集到的信用卡附加到新客户

Adding the card to the customer however, uses up the token (token seems to be single use only according to Stripe), so I need a new one for a later charge. 但是,将卡添加给客户会消耗令牌(令牌仅根据Stripe看来是一次性使用的),因此我需要一个新卡来收取以后的费用。

Now, Id like to create a charge, which leads to the question: 现在,我想创建一个收费,这导致了一个问题:

  • How can I create a new token from the same stored credit card? 如何使用同一张已存储的信用卡创建新令牌? (Without having all the infos like card number etc. again) (没有再次获得所有信息,例如卡号等)

Thank you! 谢谢!

创建费用api可让您传递客户ID来收费客户的存储卡,并且不需要令牌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM