TanqoryDocs

tanqoryExtCheckoutPaymentAction

  • Query
  • Storefront

What the buyer has to do to finish a completion attempt that waits for them (cartCompletionAttempt answered CartCompletionActionRequired). Private token only. Null when the attempt is unknown in this store or no longer waits.

Arguments

ArgumentTypeRequiredDefault
attemptIdID!Required

Returns

TanqoryExtPaymentAction

FieldTypeDescription
attemptIdID!
kindTanqoryExtPaymentActionKind!
gatewaySlugString!
methodTypeString
urlURL

REDIRECT: the gateway's page. FORM: the form's action.

methodString

FORM: GET or POST.

fieldsJSON

FORM: the fields to send, name → value.

qrPayloadString

QR: the code's raw payload (e.g. the EMVCo PromptPay string), for drawing it.

qrImageUrlURL

QR: an image of the code drawn by the gateway.

appUrlURL

QR: a link that opens the buyer's bank or wallet app.

expiresAtDateTime

When the code / page stops working.

renewableBoolean

QR: the code lapses long before the buyer is likely done (Strike's 30-second quote, a Swish request's 3 minutes) and a new payment gives a new code: when it expires the checkout re-reads this attempt (a payment already made is finished) and, still unpaid, starts a new one instead of failing (at most 5 times, then the buyer presses Pay again). Null for every other kind.

clientConfigJSON

SDK: public settings for the gateway's browser SDK. For Stripe 3-D Secure: {provider:"stripe", publishableKey, accountId, clientSecret, next:"handleNextAction"}. REDIRECT to a page that never sends the buyer back: {returnsBuyer:false, name} (open it in a new tab and poll the attempt). Never a secret key.

amountMoneyV2!

What the attempt charges.

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_STOREFRONT_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://$STORE_HOST/api/v1/stores/$STORE_ID/2026-10/graphql" \
  -H "X-Tanqory-Storefront-Access-Token: $TANQORY_STOREFRONT_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query TanqoryExtCheckoutPaymentAction($attemptId: ID!) {\n  tanqoryExtCheckoutPaymentAction(attemptId: $attemptId) {\n    attemptId\n    kind\n    gatewaySlug\n    methodType\n    url\n    method\n    fields\n    qrPayload\n    qrImageUrl\n    appUrl\n  }\n}","variables":{"attemptId":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10