MageSmith
QueryPaymentServicesPaypal · Magento 2.4.9

getPaymentSDK

getPaymentSDK is a Magento 2 GraphQL query in the PaymentServicesPaypal module. Gets the payment SDK urls and values. It returns GetPaymentSDKOutput and is callable anonymously.

Last verified: against Magento 2.4.9.

Returns

GetPaymentSDKOutput

Resolver class

\Magento\PaymentServicesPaypalGraphQl\Model\Resolver\GetPaymentSDK

Arguments

location PaymentLocation! Required

Defines the origin location for that payment request

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 ($location: PaymentLocation!) {
  getPaymentSDK(location: $location) {
    sdkParams {
      code
      params {
        name
        value
      }
    }
  }
}

Variables

{
  "location": "PRODUCT_DETAIL"
}

Every Magento dev tool, in one hosted workspace.

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