问题
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