Tokenize bank info with Stripe iOS SDK

牧云@^-^@ 提交于 2019-12-24 19:04:57

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/43724123/tokenize-bank-info-with-stripe-ios-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!