[英]Tokenize bank info with Stripe iOS SDK
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. 使用Stripe iOS SDK中的UI组件,我可以轻松生成令牌/条带来源ID客户端,以将信用卡信息安全地传递到服务器。 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?
我可以使用STPBankAccountParams收集银行信息客户端,但是有没有一种方法可以将此信息标记化然后传递到服务器?
I found a tokenization method in STPAPIAClient
. 我在
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.