Closed EvgenyKarkan closed 3 years ago
I guess I've found the root cause.
I was setting the wrong popupOriginUrl
value, instead of https://static.afterpay.com
mentioned in Readme.
After setting it as you suggest - was able to obtain the callback.
Closing the ticket.
🌎 Environment
💬 Description
The
shippingAddressDidChange
callback is not being called as documentation states (neither when express checkout is launched nor when shipping address changed).🦶 Reproduction Steps
I'm following your readme and trying to do an AfterPay Express checkout. I obtained a token from my service and was able to start a user experience. I see the AP screen as follows.
However I'm not getting the
shippingAddressDidChange
callback as your documentation states, thus I cannot obtain a shipping address to call my service to get shipping options and then pass shipping options to your SDK so you can reload UI.This callback also is not being called when I switch between shipping addresses.
I tried setting a custom handler, but this function does not work as well, so seems there is no way to obtain an address.
Am I doing something wrong, or this is a known issue? If this is a known issue do you guys have an ETA with the fix?
🤔 Expected Results
The
shippingAddressDidChange
callback is being called when an express checkout is launched or when the address is changed.😲 Actual Results
The
shippingAddressDidChange
callback is not being called