MageSmith
QueryPaymentServicesPaypal · Magento 2.4.9

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

PaymentConfigOutput

Resolver class

\Magento\PaymentServicesPaypalGraphQl\Model\Resolver\PaymentConfig

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!) {
  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"
}

Every Magento dev tool, in one hosted workspace.

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