paypal / android-checkout-sdk

Apache License 2.0
77 stars 37 forks source link

onShippingChange is not triggered #299

Open dimakpoq opened 7 months ago

dimakpoq commented 7 months ago

Describe the bug The onShippingChange callback is only called once, but it isn't called the second time. This makes it impossible to invalidate the wrong address in UI. The user can click Complete Purchase button, and then he will see the generic Error message "Place order failed. Please try again.".

To Reproduce Steps to reproduce the behavior:

  1. Select invalid address (like, address from another country) in a PayPal view.
  2. onShippingChange callback is called :white_check_mark:
  3. Leave PayPal checkout (close the PayPal view without proceeding to purchase)
  4. Launch PayPal view again
  5. onShippingChange callback is not called :x:

Expected behavior

  1. onShippingChange callback is called

Smartphone (please complete the following information):

github-actions[bot] commented 7 months ago

Thank you for reaching out to the Native Checkout SDK team. This integration path is now inactive for new merchants. If you are an existing merchant, please contact us here for further assistance.

New merchants can integrate the Native Checkout experience via the Braintree Android SDK or PayPal Android SDK. For more information please see their respective developer documentation linked below.