You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[BTPaymentButton sendActionsForControlEvents:]: unrecognized selector sent to instance 0x14ec38a0'
Description
This exception is thrown when the user taps on a payment option above the card form in BTDropInViewController and an error (e.g. network error) occurs. When Drop In receives an error, the user is given a choice via a UIAlertView to "Cancel" or "Retry". If the user taps "Retry", an exception is thrown in the most recent release, 3.3.0.
Temporary Workaround
Modify BTDropInViewController to remove retry logic for Drop In:
When the user taps "Retry" after Drop In fails, Drop In performs retry by emulating a tap on the payment button, as if the user tapped it again, by sending the button sendActionsForControlEvents:. Before 3.3.0, the payment button could only be a BTPayPalButton, which was a subclass of UIControl. In 3.3.0, the button is now a BTPaymentButton, which is a UIView subclass. Since BTPaymentButton does not respond to sendActionsForControlEvents:, the runtime throws an exception in this case.
Description
This exception is thrown when the user taps on a payment option above the card form in
BTDropInViewController
and an error (e.g. network error) occurs. When Drop In receives an error, the user is given a choice via aUIAlertView
to "Cancel" or "Retry". If the user taps "Retry", an exception is thrown in the most recent release, 3.3.0.Temporary Workaround
Modify
BTDropInViewController
to remove retry logic for Drop In:Technical Explanation
When the user taps "Retry" after Drop In fails, Drop In performs retry by emulating a tap on the payment button, as if the user tapped it again, by sending the button
sendActionsForControlEvents:
. Before 3.3.0, the payment button could only be aBTPayPalButton
, which was a subclass ofUIControl
. In 3.3.0, the button is now aBTPaymentButton
, which is aUIView
subclass. SinceBTPaymentButton
does not respond tosendActionsForControlEvents:
, the runtime throws an exception in this case.Full stack trace
Fix in 3.3.1
A bugfix will be released in version 3.3.1, during the week of 9/15/14.
The text was updated successfully, but these errors were encountered: