getPayflowLinkToken query
The getPayflowLinkToken query retrieves PayPal payment credentials for a PayPal Payflow transaction. You must run this query after you set the payment method and place the order.
See PayPal Payflow Link payment method for detailed information about the workflow of PayPal Payflow Link transactions.
Syntax
getPayflowLinkToken(input: PayflowLinkTokenInput): PayflowLinkToken
Reference
The getPayflowLinkToken reference provides detailed information about the types and fields defined in this query.
Example
The following example requests a token in a Payflow Link transaction.
Request:
Copied to your clipboard{getPayflowLinkToken(input: {cart_id: "123"}) {secure_tokensecure_token_idmodepaypal_url}}
Response:
Copied to your clipboard{"data": {"getPayflowLinkToken": {"secure_token": "<token-value>","secure_token_id": "<token-value-id>","mode": "TEST","paypal_url": "https://pilot-payflowlink.paypal.com"}}}
Errors
| Error | Description |
|---|---|
No such entity with cartId | An invalid cartId was provided |


