Edit in GitHubLog an issue

getVaultConfig query

The getVaultConfig query returns the vault configuration details for each payment method available. For now, only credit_card is supported.

Syntax

Copied to your clipboard
{
getVaultConfig() VaultConfigOutput
}

Example usage

The following example runs the getVaultConfig query to retrieve all the stored payment details.

Request:

Copied to your clipboard
query {
getVaultConfig() {
credit_card {
is_vault_enabled
three_ds_mode
sdk_params {
name
value
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"getVaultConfig": {
"credit_card": {
"is_vault_enabled": true,
"three_ds_mode": "SCA_ALWAYS",
"sdk_params": [
{
"name": "src",
"value": "https:\/\/www.paypal.com\/sdk\/js?client-id=..."
},
{
"name": "data-partner-attribution-id",
"value": "MagentoPayments_SP_PCP_Int"
},
{
"name": "data-client-token",
"value": "..."
},
{
"name": "data-expires-in",
"value": "3600"
}
]
}
}
}
}

Output attributes

The VaultConfigOutput object contains the following attribute:

AttributeData TypeDescription
credit_card
VaultCreditCardConfig
Credit card vault method configuration

VaultCreditCardConfig attributes

The VaultCreditCardConfig object provides details about the credit card vault method configuration

AttributeData TypeDescription
is_vault_enabled
Boolean
Indicates whether card vaulting is enabled
three_ds_mode
ThreeDSMode
Indicates which 3D Secure authentication mode is in use. The possible values are OFF, SCA_WHEN_REQUIRED, SCA_ALWAYS
sdk_params
[SDKParams]
PayPal parameters required to load the PayPal JavaScript SDK

SDKParams attributes

The SDKParams object provides details about the SDK parameters:

AttributeData TypeDescription
name
String
The name of the SDK parameter
value
String
The value of the SDK parameter

These values come from PayPal JavaScript SDK.

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.