Edit in GitHubLog an issue

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_token
secure_token_id
mode
paypal_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

ErrorDescription
No such entity with cartId
An invalid cartId was provided
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.