android-checkout-sdk icon indicating copy to clipboard operation
android-checkout-sdk copied to clipboard

Paysheet showing cached shipping options

Open mauro-poq opened this issue 2 years ago • 1 comments

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:

  1. Create an order setting the shipping preferences as ShippingPreference.GET_FROM_FILE;
  2. On PurchaseUnit set amount, items and at least 2 shipping options;
  3. Start the paysheet and check that the shipping options are present;
  4. Dismiss the paysheet without killing the app;
  5. Create a new order with shipping preferences as ShippingPreference.SET_PROVIDED_ADDRESS;
  6. On PurchaseUnit set the amount, items, shipping options as null and set an Address;
  7. 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".

mauro-poq avatar Apr 21 '23 17:04 mauro-poq

Hi @mauro-poq is this still an issue you are facing ? Have you tried reproducing this issue using our latest v1.1 release ?

MaxHastingsPP avatar Oct 24 '23 16:10 MaxHastingsPP