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
Resolver class
\Magento\PaymentServicesPaypalGraphQl\Model\Resolver\GetPaymentSDK
Arguments
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
Query
query ($location: PaymentLocation!) {
getPaymentSDK(location: $location) {
sdkParams {
code
params {
name
value
}
}
}
}Variables
{
"location": "PRODUCT_DETAIL"
}Related in PaymentServicesPaypalGraphQl
Other fields shipped by the same module.
addProductsToNewCart
Creates a new cart and add any type of product to it
PaymentServicesPaypal · returns AddProductsToNewCartOutput
completeOrder
Synchronizes order details and place the order
PaymentServicesPaypal · returns PlaceOrderOutput
createPaymentOrder
Creates a payment order for further payment processing
PaymentServicesPaypal · returns CreatePaymentOrderOutput
createVaultCardPaymentToken
Creates a vault payment token
PaymentServicesPaypal · returns CreateVaultCardPaymentTokenOutput
createVaultCardSetupToken
Creates a vault card setup token
PaymentServicesPaypal · returns CreateVaultCardSetupTokenOutput
getPaymentConfig
Retrieves the payment configuration for a given location
PaymentServicesPaypal · returns PaymentConfigOutput
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.