Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
809 views
in Technique[技术] by (71.8m points)

magento2 - Razorpay Magento 2.X plugin giving error on calling Graphql placeOrder query

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...