Closed joggienl closed 2 years ago
HI @joggienl ,
Thank you for opening this issue, we are happy to share that we've just released the new 2.6.0 version where we have covered this. Thank you for the detailed issue report.
We are closing this issue now but please feel free to reopen the issue if this still occurs.
Thanks for the update @Frank-Magmodules!
We are going to check the new version!
Describe the bug In followup of #484 I am creating this bug report. At least, at this point it seems a bug. After a not successful payment (cancelled, failed, back button in the browser) we can't reactive the cart with the
mollieRestoreCart
mutation. The GraphQL api then returns an error with "The cart isn't active." which is obviously true, but the whole reason for usingmollieRestoreCart
was to re-active the cart.Please let me know if there is something wrong in the way I am trying to accomplish my expected behaviour. Thanks!
Used versions
To Reproduce I've included some graphql queries / mutations that show what happens. Everything is executed from the perspective of a guest customer.
1. Create cart
2. Add a product to cart
Make sure to substitute XXX with the correct values of your own environment:
3. Set some details on cart
Make sure to substitute XXX with the correct values of your own environment:
4. Set shipment and payment option to cart
Make sure to substitute XXX with the correct values of your own environment:
5. Place order and cancel payment
Make sure to substitute XXX with the correct values of your own environment:
At this point we should have successfully placed an order. Use the redirect url from the resulting JSON and from the mollie screen cancel the order.
6. Restore cart
Make sure to substitute XXX with the correct values of your own environment:
At this point you will get the error:
Expected behavior When using the
mollieRestoreCart
on a cart_id that was previously inactivated (due to failed/canceled payment) the cart_id should be "active" again with all the previous details on there.Actual behavior When calling
mollieRestoreCart
the following error gets back from magento:Screenshots No screenshots.
Additional context This is a follow up from issue #484