Get Payment Status
Retrieve the current status of a payment transaction.
Request Parameters
| Name | Type | Description |
|---|---|---|
public_keyRequired | String | Merchant identifier. Example: `i000000001` |
transactionRequired | String | Epoint transaction identifier. Example: `tw0000000101` |
Request Example
Send Request
Payload
{ "public_key": "i000000001", "transaction": "tw0000000101"}1DATA=$(echo -n '{"public_key":"i000000001","transaction":"tw0000000101"}' | base64)2SIGNATURE=$(echo -n "$PRIVATE_KEY$DATA$PRIVATE_KEY" | openssl dgst -sha1 -binary | base64)3
4curl -X POST *** \5-H "Content-Type: application/x-www-form-urlencoded" \6-d "data=$DATA&signature=$SIGNATURE"Response Parameters
| Name | Type | Description |
|---|---|---|
statusRequired | String | Payment status: `success`, `failed`, `new`, `returned`, `error`, `server_error` |
codeRequired | String | Bank response code |
messageRequired | String | Payment status message |
transactionRequired | String | Epoint transaction identifier |
bank_transactionRequired | String | Bank transaction identifier |
bank_responseRequired | String | Bank response for the payment |
operation_codeRequired | String | `001` — card registration, `100` — customer payment |
rrnOptional | String | Retrieval Reference Number. Only present for successful transactions. |
card_nameOptional | String | Cardholder name from payment page |
card_maskOptional | String | Card mask in `123456******1234` format |
amountRequired | Number | Payment amount |
other_attrOptional | Array | Additional parameters |
trace_idRequired | String | Unique request identifier for debugging. Provide this to Epoint support for issue investigation. |
Success
Success Response
1{2 "status": "success",3 "code": "000",4 "message": "Approved",5 "transaction": "te_0000000001",6 "bank_transaction": "BT12345",7 "bank_response": "000",8 "operation_code": "100",9 "rrn": "123456789012",10 "card_name": "John Doe",11 "card_mask": "123456******1234",12 "amount": 30.75,13 "trace_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"14}