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
| Argument | Type | Required | Default |
|---|---|---|---|
attemptId | ID! | Required |
Returns
| Field | Type | Description |
|---|---|---|
attemptId | ID! | |
kind | TanqoryExtPaymentActionKind! | |
gatewaySlug | String! | |
methodType | String | |
url | URL | REDIRECT: the gateway's page. FORM: the form's action. |
method | String | FORM: GET or POST. |
fields | JSON | FORM: the fields to send, name → value. |
qrPayload | String | QR: the code's raw payload (e.g. the EMVCo PromptPay string), for drawing it. |
qrImageUrl | URL | QR: an image of the code drawn by the gateway. |
appUrl | URL | QR: a link that opens the buyer's bank or wallet app. |
expiresAt | DateTime | When the code / page stops working. |
renewable | Boolean | 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. |
clientConfig | JSON | 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. |
amount | MoneyV2! | 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 -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"}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtCheckoutPaymentAction(\$attemptId: ID!) {
tanqoryExtCheckoutPaymentAction(attemptId: \$attemptId) {
attemptId
kind
gatewaySlug
methodType
url
method
fields
qrPayload
qrImageUrl
appUrl
}
}`;
const variables = {
"attemptId": "gid://tanqory/Type/id"
};
const res = await fetch(`https://${process.env.STORE_HOST}/api/v1/stores/${process.env.STORE_ID}/2026-10/graphql`, {
method: 'POST',
headers: {
'X-Tanqory-Storefront-Access-Token': process.env.TANQORY_STOREFRONT_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ query, variables }),
});
console.log(res.status, JSON.stringify(await res.json(), null, 2));# Python 3, standard library only. Save as request.py and run: python3 request.py
import json, os, urllib.request
query = """query TanqoryExtCheckoutPaymentAction($attemptId: ID!) {
tanqoryExtCheckoutPaymentAction(attemptId: $attemptId) {
attemptId
kind
gatewaySlug
methodType
url
method
fields
qrPayload
qrImageUrl
appUrl
}
}"""
variables = json.loads("""{
"attemptId": "gid://tanqory/Type/id"
}""")
req = urllib.request.Request(
"https://" + os.environ["STORE_HOST"] + "/api/v1/stores/" + os.environ["STORE_ID"] + "/2026-10/graphql",
data=json.dumps({"query": query, "variables": variables}).encode(),
headers={
"X-Tanqory-Storefront-Access-Token": os.environ["TANQORY_STOREFRONT_TOKEN"],
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.dumps(json.load(res), indent=2))