Payment frontend
Was this helpful?
Was this helpful?
Initializes a payment by accepting a request sent from the frontend.
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]+$
Identifier of a payment mode configured in the payment-gateway service for a given tenant.
Indicates a payment method token, usually generated on a frontend site, when an user provides a credit card information.
POST /payment-gateway/{tenant}/payment/frontend/initialize HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"order": {
"id": "text"
},
"paymentModeId": "text",
"creditCardToken": "text"
}
{
"successful": true,
"paymentTransactionId": "FTrjO4SrNF0Had7yBCeVU5ziqwL",
"externalPaymentRedirectURL": "https://www.sandbox.paypal.com/checkoutnow?token=0SC35196GX656501J",
"externalPaymentParameters": {}
}
Authorize a payment by accepting a request sent from the frontend.
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]+$
Contains a token generated during the 3DS authentication process.
Holds information related to the user's web browser.
Stores the Internet Protocol (IP) address of the client or user making a request or transaction.
POST /payment-gateway/{tenant}/payment/frontend/authorize HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 132
{
"threeDSToken": "text",
"browserInfo": "text",
"clientIP": "text",
"order": {
"id": "text"
},
"paymentModeId": "text",
"creditCardToken": "text"
}
{
"successful": true,
"paymentTransactionId": "FTrjO4SrNF0Had7yBCeVU5ziqwL",
"requiresExternalPayment": true,
"externalPaymentRedirectURL": "https://www.sandbox.paypal.com/checkoutnow?token=0SC35196GX656501J",
"externalPaymentParameters": {}
}