wp-graphql-woocommerce
wp-graphql-woocommerce copied to clipboard
Cart not getting empty after checkout
Describe the bug Cart not getting empty after checkout mutation
Using this mutation with the custom payment method.
checkoutMutation({
variables: {
input: {
billing: checkoutData.customer.billing,
isPaid: true,
clientMutationId: "testcartcheckout",
paymentMethod: "razorpay",
transactionId: data.razorpay_payment_id
}
}
})
Expected behavior After checkout cart should be empty.
Tested on latest version of this plugin
You can use the emptyCart mutation on a successful checkout.
@davevanhoorn Yes, now I am using emptyCart mutation as a workaround.