STPBankSelectionViewControllerDelegate
@protocol STPBankSelectionViewControllerDelegate <NSObject>
An STPBankSelectionViewControllerDelegate
is notified when a user selects a bank.
-
This is called when the user selects a bank.
You can use the returned PaymentMethodParams to confirm a PaymentIntent, or inspect it to obtain details about the selected bank. Once you’re done, you’ll want to dismiss (or pop) the view controller.
Declaration
Objective-C
- (void)bankSelectionViewController: (nonnull STPBankSelectionViewController *)bankViewController didCreatePaymentMethodParams: (nonnull STPPaymentMethodParams *)paymentMethodParams;
Swift
func bankSelectionViewController(_ bankViewController: STPBankSelectionViewController, didCreatePaymentMethodParams paymentMethodParams: STPPaymentMethodParams)
Parameters
bankViewController
the view controller that created the PaymentMethodParams
paymentMethodParams
the PaymentMethodParams that was created. - see: STPPaymentMethodParams