使用 Stripe iOS SDK 标记银行信息 [英] Tokenize bank info with Stripe iOS SDK

查看:28
本文介绍了使用 Stripe iOS SDK 标记银行信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Stripe iOS SDK 中的 UI 组件,我可以轻松生成令牌/Stripe Source ID 客户端,以将信用卡信息安全地传递到服务器.我似乎找不到银行帐户信息的类似标记化功能.我可以使用 STPBankAccountParams 收集银行信息客户端,但有没有办法将此信息标记化然后传递给服务器?

Using the UI components in the Stripe iOS SDK, I can easily generate a token/Stripe Source ID client side to securely pass credit card info to the server. I cannot seem to find a similar tokenization feature for bank account info. I can gather bank info client side with STPBankAccountParams, but is there a way to tokenize this info to then pass to the server?

推荐答案

我在 STPAPIAClient.这是您要找的吗?

I found a tokenization method in STPAPIAClient. Is this what you're looking for?

#pragma mark - Bank Accounts
@implementation STPAPIClient (BankAccounts)

- (void)createTokenWithBankAccount:(STPBankAccountParams *)bankAccount
                        completion:(STPTokenCompletionBlock)completion {
    NSDictionary *params = [STPFormEncoder dictionaryForObject:bankAccount];
    [self createTokenWithParameters:params completion:completion];
}

@end

这篇关于使用 Stripe iOS SDK 标记银行信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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