data-src=../../../../includes/paas-only.md
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:
{
getPayflowLinkToken(input: {cart_id: "123"}) {
secure_token
secure_token_id
mode
paypal_url
}
}
Response:
{
"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 cartIdAn invalid
cartId was provided