getPaymentConfig
getPaymentConfig is a Magento 2 GraphQL query in the PaymentServicesPaypal module. Retrieves the payment configuration for a given location. It returns PaymentConfigOutput and is callable anonymously.
Last verified: against Magento 2.4.9.
Returns
Resolver class
\Magento\PaymentServicesPaypalGraphQl\Model\Resolver\PaymentConfig
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!) {
getPaymentConfig(location: $location) {
apple_pay {
button_styles {
layout
color
shape
height
label
tagline
use_default_height
}
payment_source
}
google_pay {
button_styles {
color
height
type
}
payment_source
three_ds_mode
}
hosted_fields {
payment_source
three_ds
three_ds_mode
cc_vault_code
is_vault_enabled
requires_card_details
}
smart_buttons {
display_message
message_styles {
layout
logo { ... }
}
button_styles {
layout
color
shape
height
label
tagline
use_default_height
}
display_venmo
app_switch_when_available
}
fastlane {
payment_source
three_ds_mode
}
}
}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
getPaymentOrder
Retrieves the payment details for the order
PaymentServicesPaypal · returns PaymentOrderOutput
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.