Start payment session ERROR

Hi whenever I try to call the GRAPHQL function to resolve/pending a payment I always receive this error

{
    "data": {
        "paymentSessionResolve": {
            "paymentSession": null,
            "userErrors": [
                {
                    "field": [
                        "id"
                    ],
                    "message": "Payment session has already been rejected, or the response to start_payment_session request has not been received."
                }
            ]
        }
    },
    "extensions": {
        "cost": {
            "requestedQueryCost": 13,
            "actualQueryCost": 10,
            "throttleStatus": {
                "maximumAvailable": 546000.0,
                "currentlyAvailable": 545990,
                "restoreRate": 27300.0
            }
        }
    }
}

any solution to this?

reference : https://shopify.dev/apps/payments/processing-a-payment

Hey @MugiChan , most of the time that error pops up when a payment session cannot be completed ( for example, if the payment is declined or the request takes too long). Would you be able to provide an X-Request-ID from the response headers you’re receiving from us when you make the API call? We can look these up in the logs and see if there is a definitive reason why you’re seeing that error message.

Hope to hear from you soon - let us know if we can clarify anything on our end.

I am also having a similar issue. It was working previously but now it just stopped working. No matter what I do it just won’t work

{
   "data":{
      "paymentSessionPending":{
         "paymentSession":null,
         "userErrors":[
            {
               "field":[
                  "id"
               ],
               "message":"Payment session has already been resolved/rejected, has already been pended with a different reason, or the response to start_payment_session request has not been received."
            }
         ]
      }
   },
   "extensions":{
      "cost":{
         "requestedQueryCost":13,
         "actualQueryCost":1,
         "throttleStatus":{
            "maximumAvailable":546000,
            "currentlyAvailable":545999,
            "restoreRate":27300
         }
      }
   }
}