Mutation setPaymentMethodOnCart working fine with razorpay code and giving success.
But when we run below mutation after setting payment method
mutation {
placeOrder(input: {cart_id: "x4NHDG0qoc4p7YM9h3pUgoYUx5GOJRoB"}) {
order {
order_number
}
}
}
ERROR
{
"errors": [
{
"message": "Unable to place order: Razorpay Error: Notice: Undefined index: paymentMethod in /opt/bitnami/apps/magento/htdocs/app/code/Razorpay/Magento/Model/PaymentMethod.php on line 223.",
"extensions": {
"category": "graphql-input"
},
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"placeOrder"
]
}
],
"data": {
"placeOrder": null
}
}
question from:
https://stackoverflow.com/questions/65643159/razorpay-magento-2-x-plugin-giving-error-on-calling-graphql-placeorder-query 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…