Path parameters
-
sdk location.
GET /V1/payments-config/{location}
curl \
-X GET https://magento2.winkelstraat.mac/rest/all/V1/payments-config/{location}
Response examples (200)
{
"apple_pay": {
"button_styles": {
"layout": "string",
"color": "string",
"shape": "string",
"label": "string",
"tagline": true,
"height": 42,
"use_default_height": true
},
"payment_source": "string",
"code": "string",
"sdk_params": [
{
"name": "string",
"value": "string"
}
],
"is_visible": true,
"sort_order": "string",
"payment_intent": "string",
"title": "string"
},
"google_pay": {
"button_styles": {
"color": "string",
"height": 42,
"type": "string"
},
"payment_source": "string",
"code": "string",
"sdk_params": [
{
"name": "string",
"value": "string"
}
],
"is_visible": true,
"sort_order": "string",
"payment_intent": "string",
"title": "string"
},
"hosted_fields": {
"payment_source": "string",
"three_d_s": "string",
"is_vault_enabled": true,
"cc_vault_code": "string",
"requires_card_details": true,
"code": "string",
"sdk_params": [
{
"name": "string",
"value": "string"
}
],
"is_visible": true,
"sort_order": "string",
"payment_intent": "string",
"title": "string"
},
"smart_buttons": {
"display_message": true,
"display_venmo": true,
"message_styles": {
"layout": "string",
"logo": {
"type": "string"
}
},
"button_styles": {
"layout": "string",
"color": "string",
"shape": "string",
"label": "string",
"tagline": true,
"height": 42,
"use_default_height": true
},
"code": "string",
"sdk_params": [
{
"name": "string",
"value": "string"
}
],
"is_visible": true,
"sort_order": "string",
"payment_intent": "string",
"title": "string"
}
}
Response examples (500)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}