Payment mode frontend
Was this helpful?
Was this helpful?
Retrieves a list of configured payment modes for a given tenant with publicly available properties (excluding all secrets, signatures etc). The endpoint should be used by a frontend application to fetch all the possible payment methods configured for a particular tenant.
Required scopes
No scope is required
Your Emporix tenant's name. Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
GET /payment-gateway/{tenant}/paymentmodes/frontend HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": "92d77b2b-9385-43ad-a859-55176fbcbd2f",
"code": "credit_card",
"integrationType": "TOKENIZED",
"javascriptUrl": "https://core.spreedly.com/iframe/iframe-v1.min.js",
"paymentMethodType": "credit_card",
"environmentKey": "Zrg5UfAqQefDY8KGvU4b9OKuxz"
},
{
"id": "a8c96773-1cdf-4ea7-b1a2-1453d17f5374",
"code": "sprel",
"integrationType": "OFFSITE",
"paymentMethodType": "sprel",
"environmentKey": "Zrg5UfAqQefDY8KGvU4b9OKuxz"
},
{
"id": "ef48f439-1c3c-42ff-807d-ef4cac237745",
"code": "paypal",
"integrationType": "OFFSITE",
"paymentMethodType": "paypal",
"environmentKey": "Zrg5UfAqQefDY8KGvU4b9OKuxz"
}
]
Retrieves a single payment mode for a given tenant with publicly available properties (excluding all secrets, signatures etc). The endpoint should be used by a frontend application to fetch a payment method configuration for a particular tenant.
Required scopes
No scope is required
Your Emporix tenant's name. Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
Unique identifier of a payment mode.
GET /payment-gateway/{tenant}/paymentmodes/frontend/{id} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": "92d77b2b-9385-43ad-a859-55176fbcbd2f",
"code": "credit_card",
"integrationType": "TOKENIZED",
"javascriptUrl": "https://core.spreedly.com/iframe/iframe-v1.min.js",
"paymentMethodType": "credit_card",
"environmentKey": "Zrg5UfAqQefDY8KGvU4b9OKuxz"
},
{
"id": "a8c96773-1cdf-4ea7-b1a2-1453d17f5374",
"code": "sprel",
"integrationType": "OFFSITE",
"paymentMethodType": "sprel",
"environmentKey": "Zrg5UfAqQefDY8KGvU4b9OKuxz"
},
{
"id": "ef48f439-1c3c-42ff-807d-ef4cac237745",
"code": "paypal",
"integrationType": "OFFSITE",
"paymentMethodType": "paypal",
"environmentKey": "Zrg5UfAqQefDY8KGvU4b9OKuxz"
}
]