MageSmith
QueryPaypal · Magento 2.4.9

getPayflowLinkToken

getPayflowLinkToken is a Magento 2 GraphQL query in the Paypal module. Retrieve payment credentials for a transaction. Use this query for Payflow Link and Payments Advanced payment methods. It returns PayflowLinkToken and is callable anonymously.

Last verified: against Magento 2.4.9.

Returns

PayflowLinkToken

Resolver class

\Magento\PaypalGraphQl\Model\Resolver\PayflowLinkToken

Arguments

input PayflowLinkTokenInput! Required

An input object that defines the requirements to receive a payment token.

Example request

Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.

Headers

Content-Type
application/json
Store
default store view code; use 'default' for the single-store baseline

Query

query ($input: PayflowLinkTokenInput!) {
  getPayflowLinkToken(input: $input) {
    secure_token
    secure_token_id
    mode
    paypal_url
  }
}

Variables

{
  "input": {
    "cart_id": ""
  }
}

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.