paypal / android-checkout-sdk

Apache License 2.0
77 stars 37 forks source link

Paysheet shows "Complete Purchase" button when an invalid address is selected. #308

Open mauro-poq opened 6 months ago

mauro-poq commented 6 months ago

Describe the bug After the onShippingChange callback is called and invalidates the address, an error message is displayed asking the user to select a different address, but it shows the Complete Purchase button, when the user taps the button a generic Error message "Place order failed. Please try again." is shown.

To Reproduce Steps to reproduce the behaviour:

1 - Select an invalid address (like, an address from another country) in a PayPal view. 2 - Leave PayPal checkout (close the PayPal view without proceeding to purchase). 3 - Launch PayPal view again 4 - The error message is displayed with the button enabled

Expected behavior The Complete Purchase should be replaced with Choose a new address button

Smartphone: Google Pixel 4

Android Version: any SDK Version 1.1.0 and 1.2.1 image

github-actions[bot] commented 6 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.