简体   繁体   English

如何通过iOS客户端检索条纹卡详细信息

[英]How to retrieve stripe card details through ios client

After successfully creating a card on stripe and retrieving the token, I need to get the last 4 digits of the card to allow the user to select a credit card 在条带上成功创建卡并检索令牌后,我需要获取卡的最后4位数字以允许用户选择信用卡

I would ideally like to do this through the front end where i send the token to the stripe server and get a corresponding card object but am unable to find any api in the documentation that allows me to do so. 理想情况下,我希望通过前端将令牌发送到条纹服务器并获得相应的卡对象的前端进行此操作,但无法在文档中找到允许我这样做的任何api。

Is there any way i can achieve this through the front end or will I have to preform this operation on my application backend ? 有什么办法可以通过前端实现此目的,还是必须在应用程序后端执行此操作?

The STPToken class has a card property, and in turn the STPCard class has a last4 method. STPToken类具有card属性,而STPCard类具有last4方法。 You should be able to use those to retrieve the last 4 digits of the card directly within your app. 您应该能够使用它们直接在应用程序中检索卡的后4位数字。

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

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