Re: i used razorpay but not working so please fix this

i used razorpay but not working so please fix this

umang-pancholi
Shopify Partner
20 0 1
QUERY:-
mutation
{
  orderCapture(input: {
    amount: "870.00",
    currency: "IN",
    id: "gid://shopify/Order/5649145266461",
    paymentGatewayId: "pay_NQmaLp5p0FBqZ6"
  }) {
    transaction {
      id
    }
    userErrors {
      field
      message
    }
  }
}


ERROR:-
{
    "errors": [
        {
            "message": "Field 'payments' doesn't exist on type 'Order'",
            "locations": [
                {
                    "line": 7,
                    "column": 5
                }
            ],
            "path": [
                "query",
                "order",
                "payments"
            ],
            "extensions": {
                "code": "undefinedField",
                "typeName": "Order",
                "fieldName": "payments"
            }
        }
    ]
}
Replies 3 (3)

iffikhan30
Shopify Partner
292 37 56
use parentTransactionId instead of paymentGatewayId
Custom theme and app [remix] expert.

Email: irfan.sarwar.khan30@gmail.com
Chat on WhatsApp
umang-pancholi
Shopify Partner
20 0 1
{
    "errors": [
        {
            "message": "Invalid global id 'pay_NQmaLp5p0FBqZ6'",
            "locations": [
                {
                    "line": 3,
                    "column": 23
                }
            ],
            "path": [
                "mutation",
                "orderCapture",
                "input",
                "parentTransactionId"
            ],
            "extensions": {
                "code": "argumentLiteralsIncompatible",
                "typeName": "CoercionError"
            }
        }
    ]
}
umang-pancholi
Shopify Partner
20 0 1

👎👎👎👎👎👎👎👎👎👎👎👎👎