Documentation on Pend a Payment incorrect

Documentation on Pend a Payment incorrect

Jon_Innovonics
Shopify Partner
24 3 10

Heyo,

I've been messing with the payments api and came across an issue with the documentation: Processing a payment (shopify.dev)

 

mutation PaymentSessionPending($id: ID!, $pendingExpiresAt: DateTime!, $reason: PaymentSessionStatesPendingReason!) {
  paymentSessionPending(id: $id, pendingExpiresAt: $pendingExpiresAt, reason: $reason) {
    paymentSession {
      id
      state {
        ... on PaymentSessionStatesPending {
          reason
        }
      }
      nextAction {
        action
        context {
          ... on PaymentSessionActionsRedirect {
            redirectUrl
          }
        }
      }
    }
    userErrors {
      field
      message
    }
  }
}

It looks like there's a misspelling on "PaymentSessionStatesPendingReason", I think it should be "PaymentSessionStatePendingReason".

Also: "PaymentSessionStatesPending" -> "PaymentSessionStatePending"

️ If I was helpful, please Like or Accept the solution


Contact me directly via email: Jonathan@Innovonics.com


 

Replies 0 (0)