Confirm Hosted Purchase

After initializing a purchase, you can complete the purchase using this endpoint. By calling it, we will send the pins by sms to the phone number you send us during initializing a purchase.

POST
/ hostedpurchases / confirm

Request Parameters

Parameter Type Required Description
CLIENT_ID String Yes Partner identifier provided by EpinTower
SIGNATURE String Yes You need to calculate it as mentioned in security section.
- Data to sign in order : CLIENT ID, SECRET KEY, TRANSACTION ID, TOKEN
PURCHASE_TOKEN String Yes Token obtained after initializing a purchase
TRANSACTION_ID String Yes Same transaction id used when initializing a purchase

Response Parameters

Parameter Type Description
PINS JSON
"PINS":[
{"expiryDate": "", "pin": "01679f1f-d543-49c3-b887-8008cb52d9a8", extra": ""},
{"expiryDate": "", "pin": "01679f1f-d543-49c3-b887-8008cb52d9a8", extra": ""}
]
TRANSACTION_ID String The order id for the purchase transaction.
PRODUCT_NAME String The Product Name.
PRODUCT_PACK_NAME String The Product Pack Name.
PRODUCT_DESCRIPTION String The Product Description.
PRODUCT_IMAGE String The Product Image.
RESPONSE_CODE Integer Returned value of “0” implies transaction is successfully completed.
If the code is not "0", it means an error. See error codes section.
RESPONSE_MESSAGE String Response message for requested transaction
SIGNATURE String You need to calculate it as mentioned in security section.
- Data to sign in order : CLIENT ID, SECRET KEY, TRANSACTION ID