Affirm / affirm-merchant-sdk-ios

Integrate Affirm into your iOS app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AffirmCheckoutDelegate checkoutCancelled not called on user cancel from JavaScript close button

jan-bednar opened this issue · comments

Steps to reproduce:

  • Launch AffirmCheckoutViewController
  • Wait for page to load
  • tap X button on top leading edge of the view
  • On UIAlertController tap OK

Expected behaviour:

  • AffirmCheckoutViewController will call [self cancel:nil]; and page will be closed

Actual behaviour:

  • UIAlertController is closed but delegate is not called and AffirmCheckoutViewController is not dismissed

Screenshot 2021-10-19 at 11 23 17

@AmyBeall If you could, please check the included PR. We would appreciate a new release with this fix