Skip to main content

E-Wallet

Endpoint:

https://api.cronosengine.com/api/e-wallet

Method : POST

Streamline Payment Acceptance from Leading E-Wallets with our Seamless API Integration. Simplify your payment processes by seamlessly integrating our API with popular e-wallet providers. Enable hassle-free transactions with leading e-wallets, offering your customers a convenient and secure payment option. Expand your payment options and cater to the growing market of cashless transactions. With our API's seamless e-wallet integration, accepting payments from various e-wallets has never been easier, providing a seamless and convenient payment experience for your users.

Request Parameters

ParameterMandatoryDescription
referenceYesA unique reference number or identifier for the transaction. all transaction references should be unique.
phoneNumberYesTransaction bills will be sent to this telephone number.
channelYesA type of ewallet to be used for the transaction. you can find the list of e-wallet channels here.
amountYesAmount your user should paid to complete the transaction.
expiryMinutesNoIf you want the transaction to last for 1 hour, you would set the value of the expiryMinutes parameter to 60.
viewNameYesThe name or identifier of the receiver for the transaction.
additionalInfo.callbackYesThe callback URL where notifications or updates related to the transaction will be sent.

Headers

KeyValue
On-KeyProject Key
On-TokenProject Token
On-SignatureGenerated using : hash_hmac('sha512', key + json_encode(body), token)
Acceptapplication/json

Channels

ChannelNameNote
ovoOvo-
danaDana-
shopeepayShopeePayThe URL only works with mobile phones that have the Shopee app installed; otherwise, it will give a 404 Not Found error.
linkajaLinkAja-

Response Parameters

ParameterDescription
responseCodeThe HTTP response code indicating the status of the request. you can see the detailed information in the Error Codes Section.
responseMessageA descriptive message indicating the status of the request.
responseDataAn object containing the data related to the transaction response.
responseData.idCronos unique identifier for the transaction.
responseData.statusThe current status of the transaction. success, pending, expired, failed
responseData.feePayerThe party responsible for paying the transaction fee. customer, merchant
responseData.amountThe original amount associated with the transaction.
responseData.feeThe fee charged for the transaction.
responseData.totalAmountThe total amount (original amount + fee) for the transaction.
responseData.expiredDateThe date and time when the transaction will expire.
responseData.additionalInfo.callbackThe callback URL where notifications or updates related to the transaction will be sent.
responseData.eWallet.viewNameThe name or identifier associated.
responseData.eWallet.channelThe channel to be used for the transaction.
responseData.eWallet.urlThe link used to redirect to the payment page

Example

Request

curl --location 'https://api.cronosengine.com/api/e-wallet' \
--header 'On-Key;' \
--header 'On-Token;' \
--header 'On-Signature;' \
--data '{
"reference": "123456",
"phoneNumber":"082195395779",
"channel":"dana",
"amount": 10000,
"expiryMinutes": 30,
"viewName": "Mr. Gentur",
"additionalInfo": {
"callback": "http://your-site-callback.com/notify",
"successRedirectUrl":"http://redirect-after-success.com"
}
}'

Response

{
"responseCode": 200,
"responseMessage": "success",
"responseData": {
"id": "66300dc2-8ff0-40bf-8a8c-0be3074f3b09",
"merchantRef": "123456",
"status": "pending",
"feePayer": "customer",
"amount": 100000,
"fee": 6000,
"totalAmount": 106000,
"expiredDate": "2023-07-13T11:06:22+07:00",
"additionalInfo": {
"callback": "http://your-site-callback.com/notify"
},
"eWallet": {
"viewName": "Mr. Gentur",
"channel": "ovo",
"url": null
}
}
}