android-checkout-sdk
android-checkout-sdk copied to clipboard
Paysheet showing cached shipping options
Describe the bug
Shipping option is kept cached and displayed on the screen when moving from ShippingPreference.GET_FROM_FILE to ShippingPreference.SET_PROVIDED_ADDRESS
To Reproduce Steps to reproduce the behavior:
- Create an order setting the shipping preferences as
ShippingPreference.GET_FROM_FILE; - On
PurchaseUnitset amount, items and at least 2 shipping options; - Start the paysheet and check that the shipping options are present;
- Dismiss the paysheet without killing the app;
- Create a new order with shipping preferences as
ShippingPreference.SET_PROVIDED_ADDRESS; - On
PurchaseUnitset the amount, items, shipping options asnulland set an Address; - Start the paysheet again and check that the shipping option from the first Order is displayed.
Expected behavior
Shipping options are presented only when we have the shipping options set as not null.
Smartphone (please complete the following information):
- Android Version: API 33
- Device: Pixel 4
- SDK Version: 0.8.8
Additional context Regarding why I'm using items described in steps 5 to 7, it's being necessary because I need to offer the Click And Collect option to users and because of this bug I'm not able to it in the "correct way".
Hi @mauro-poq is this still an issue you are facing ? Have you tried reproducing this issue using our latest v1.1 release ?