Stripe 如何使用 iOS/Parse 为与客户一起存储的信用卡创建令牌 [英] Stripe how to create a token for a Credit Card stored with customer using iOS / Parse

查看:71
本文介绍了Stripe 如何使用 iOS/Parse 为与客户一起存储的信用卡创建令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从 iOS 应用程序中创建对 Stripe 的自动收费.

Im in the process of creating automatic charges to Stripe out of an iOS app.

我可以:

  • 收集卡片信息
  • 使用可发布的密钥创建令牌
  • 创建一个新客户并使用令牌将收集的信用卡附加到新客户

然而,将卡添加到客户时,会用完令牌(根据 Stripe 的说法,令牌似乎是一次性的),所以我需要一个新的,以便以后收费.

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.

现在,我想创建一个费用,这就引出了一个问题:

Now, Id like to create a charge, which leads to the question:

  • 如何从存储的同一张信用卡创建新令牌?(无需再次获得卡号等所有信息)

谢谢!

推荐答案

create charge api 允许您通过客户 id 对客户存储的卡进行收费,不需要令牌.

The create charge api allows you to pass the customer id to charge the customer's stored card and token is not required.

这篇关于Stripe 如何使用 iOS/Parse 为与客户一起存储的信用卡创建令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆