简体   繁体   English

Stripe iOS SDK 的预构建 UI 和卡片保存

[英]Stripe iOS SDK's prebuilt UI and card saving

I want to use Stripe prebuilt UI https://stripe.com/docs/mobile/ios/basic我想使用 Stripe 预建 UI https://stripe.com/docs/mobile/ios/basic

But if you use it, when entered the card, it will save to Stripe , so when we reopen prebuilt UI we will see previous card.但是如果你使用它,当进入卡片时,它会保存到 Stripe ,所以当我们重新打开预建的 UI 时,我们会看到以前的卡片。

Is here any solution to use this prebuilt UI, but have option not to save card, but ask user about it (like checkbox "I want to save card"), so if user does not want to save card, next time user will enter card info again这里有任何使用这个预建 UI 的解决方案,但可以选择不保存卡片,而是询问用户(例如复选框“我想保存卡片”),所以如果用户不想保存卡片,下次用户将输入再次卡信息

And also, Did i understand right, that prebuilt UI will display only cards and apple pay, even if we connected other payment methods ?而且,我理解正确吗,即使我们连接了其他支付方式,预建的 UI 也只会显示卡和苹果支付?

Is here any solution to use this prebuilt UI, but have option not to save card, but ask user about it (like checkbox "I want to save card")这里有任何使用此预建 UI 的解决方案,但可以选择不保存卡片,而是询问用户(例如复选框“我想保存卡片”)

By default this isn't supported in the iOS SDK.默认情况下,iOS SDK 不支持此功能。 You could use a addCardViewControllerFooterView to add a UISwitch and implement STPBackendAPIAdapter yourself to handle custom functionality for how you want cards saved.您可以使用 addCardViewControllerFooterView 添加 UISwitch 并自己实现 STPBackendAPIAdapter 来处理您希望如何保存卡片的自定义功能。

Did i understand right, that prebuilt UI will display only cards and apple pay, even if we connected other payment methods ?我理解正确吗,即使我们连接了其他付款方式,预建的 UI 也只会显示卡和 Apple Pay?

Correct, the pre-built UI primarily works with cards.正确,预构建的 UI 主要用于卡片。

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

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