Important Notice: New topic creation is now closed on this board, but you can still participate by replying to existing topics. For new topics, check out our newly refreshed Developer categories!

start payment session ERROR

MugiChan
Shopify Partner
1 0 0

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


 

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1415 231 484

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. 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Nanotekk
Shopify Partner
5 0 0

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
         }
      }
   }
}