BTPaymentSelectionViewControllerDelegate
Objective-C
@protocol BTPaymentSelectionViewControllerDelegate <NSObject>
/// Called on the delegate when a payment method is selected
///
/// @param type The BTUIKPaymentOptionType of the selected payment method
/// @param nonce The BTPaymentMethodNonce of the selected payment method. @note This can be `nil` in the case of Apple Pay.
/// @param error The error that occured during tokenization of a new payment method.
- (void) selectionCompletedWithPaymentMethodType:(BTUIKPaymentOptionType) type nonce:(BTPaymentMethodNonce *)nonce error:(NSError *)error;
/// Called on the delegate when the value return by BTPaymentSelectionViewController:sheetHeight has changed
///
/// @param sender The BTPaymentSelectionViewController that changed
- (void) sheetHeightDidChange:(BTPaymentSelectionViewController *) sender;
@end
Swift
protocol BTPaymentSelectionViewControllerDelegate : NSObjectProtocol
Undocumented
-
Called on the delegate when a payment method is selected
Declaration
Objective-C
- (void)selectionCompletedWithPaymentMethodType:(id)type nonce:(BTPaymentMethodNonce *)nonce error:(NSError *)error;
Swift
func selectionCompleted(withPaymentMethodType type: Any!, nonce: BTPaymentMethodNonce!, error: Error!)
Parameters
type
The BTUIKPaymentOptionType of the selected payment method
nonce
The BTPaymentMethodNonce of the selected payment method. - note: This can be
nil
in the case of Apple Pay.error
The error that occured during tokenization of a new payment method.
-
Called on the delegate when the value return by BTPaymentSelectionViewController:sheetHeight has changed
Declaration
Objective-C
- (void)sheetHeightDidChange:(BTPaymentSelectionViewController *)sender;
Swift
func sheetHeightDidChange(_ sender: BTPaymentSelectionViewController!)
Parameters
sender
The BTPaymentSelectionViewController that changed