使用 Stripe iOS SDK 中的 UI 组件,我可以轻松生成 token /Stripe 源 ID 客户端,以将信用卡信息安全地传递到服务器。我似乎无法为银行账户信息找到类似的标记化功能。我可以使用 STPBankAccountParams 在客户端收集银行信息,但是有没有一种方法可以将此信息标记化然后传递到服务器?
最佳答案
我在 STPAPIAClient
中找到了标记化方法.这是您要找的吗?
#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
关于ios - 使用 Stripe iOS SDK 标记银行信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43724123/