MageSmith
QueryPaypal · Magento 2.4.9

getHostedProUrl

getHostedProUrl is a Magento 2 GraphQL query in the Paypal module. Retrieve the secure PayPal URL for a Payments Pro Hosted Solution transaction. It returns HostedProUrl and is callable anonymously.

Last verified: against Magento 2.4.9.

Returns

HostedProUrl

Resolver class

\Magento\PaypalGraphQl\Model\Resolver\HostedProUrl

Arguments

input HostedProUrlInput! Required

An input object that specifies the cart ID.

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: HostedProUrlInput!) {
  getHostedProUrl(input: $input) {
    secure_form_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.