TanqoryDocs

tanqoryExtCheckoutPaypalExpress

  • Query
  • Storefront

What the checkout loads PayPal's button with: the store's active PayPal gateway account offers paypal for this cart (its client id, never a secret), the cart's currency and the intent the store's capture method gives. Null when PayPal is not offered for the cart (no account, a currency PayPal does not take, an empty cart, nothing to pay).

Arguments

ArgumentTypeRequiredDefault
cartIdID!Required

Returns

TanqoryExtPaypalExpress

FieldTypeDescription
clientIdString!

The store's PayPal REST app client id (public), for the SDK's client-id.

currencyCodeCurrencyCode!

The cart's currency, for the SDK's currency.

intentTanqoryExtPaypalIntent!

CAPTURE, or AUTHORIZE when the store's capture method does not capture at checkout; the SDK's intent.

optionIdID!

The PayPal gateway option of tanqoryExtCheckoutPaymentOptions this button pays with.

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 TanqoryExtCheckoutPaypalExpress($cartId: ID!) {\n  tanqoryExtCheckoutPaypalExpress(cartId: $cartId) {\n    clientId\n    currencyCode\n    intent\n    optionId\n  }\n}","variables":{"cartId":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10