Basic Scenarios
One-Step Payment
- The customer begins the payment process.
-
The merchant sends the
init
request to OmniCart. -
OmniCart returns the response to the
init
request to the merchant. -
OmniCart delivers the payment form using the method set in the
deliveryOption
property of theinit
request. - The customer authenticates against their verification service.
- The verification service informs OmniCart that the payment is authorized.
- The payment is processed.
- The merchant displays the success message to the customer.
status
(optional)
- request
- response
curl -L 'https://api.omnicart.scripsi.io/status/:6f891edb-1e1f-48bb-b042-2cb790a0f402' \
-H 'Accept: application/json' \
-H 'Api-Access-Token: <Api-Access-Token>'
{
"data": {
"cartId": "6f891edb-1e1f-48bb-b042-2cb790a0f402",
"currency": "XAU",
"totalAmounts": {
"initiated": 250,
"captured": 250,
"refunded": 0,
"current": 250
},
"items": [
{
"pegasus": {
"paymentStatus": "completed",
"itemAmounts": {
"initiated": 250,
"captured": 250,
"refunded": 0,
"current": 250
}
}
}
]
},
"code": "000000",
"message": "Success",
"timestamp": "2025-04-23T18:25:43.511Z"
}
Two-Step Payment
- The customer begins the payment process.
-
The merchant sends the
init
request to OmniCart. -
OmniCart returns the response to the
init
request to the merchant. -
OmniCart delivers the payment form using the method set in the
deliveryOption
property of theinit
request. - The customer authenticates against their verification service.
- The verification service informs OmniCart that the payment is authorized.
- The customer's dunds are put on hold on their account.
- The merchant displays the success message to the customer.
init
- request
- response
{
"cartId": "6f891edb-1e1f-48bb-b042-2cb790a0f402",
"currency": "XAU",
"items": [
{
"pegasus": {
"amount": 250,
"capture": true
}
}
]
}
tip
Note that it is not necessary to pass "capture": true
for two-step payments as this is the default behavior.
{
"cartId": "6f891edb-1e1f-48bb-b042-2cb790a0f402",
"code": "000000",
"message": "Success",
"timestamp": "2025-04-23T18:25:43.511Z"
}
status
(optional)
- request
- response
curl -L 'https://api.omnicart.scripsi.io/status/:6f891edb-1e1f-48bb-b042-2cb790a0f402' \
-H 'Accept: application/json' \
-H 'Api-Access-Token: <Api-Access-Token>'
{
"data": {
"cartId": "6f891edb-1e1f-48bb-b042-2cb790a0f402",
"currency": "XAU",
"totalAmounts": {
"initiated": 250,
"captured": 250,
"refunded": 0,
"current": 250
},
"items": [
{
"pegasus": {
"paymentStatus": "completed",
"itemAmounts": {
"initiated": 250,
"captured": 250,
"refunded": 0,
"current": 250
}
}
}
]
},
"code": "000000",
"message": "Success",
"timestamp": "2025-04-23T18:25:43.511Z"
}