razorpay / razorpay-magento

Razorpay Payment Extension for Magento
28 stars 38 forks source link

Cart is cleared after payment failed when creating order with Graph QL #427

Closed Harryalways317 closed 7 months ago

Harryalways317 commented 1 year ago

Repro Steps:

  1. create an order with GraphQL. After successfully placing the order, we are creating the razorpay order using the order_id generated as per https://github.com/razorpay/razorpay-magento#working-with-graphql.
  2. When payment fails, the cart gets cleared as order is created. When we call the resetCart API

what are the steps to achieve the reset cart functionality to reset the cart to previous quote when we are using the graphQL API?

yashgit891 commented 7 months ago

@Harryalways317 latest release has reset cart functionality for GraphQL please check that out.