Skip to Content
docs
Callbacks

Callbacks

After Epoint processes a payment and receives the bank’s response, the payment details are sent to your server via a POST request to your result_url.

Callback Flow

  1. Epoint sends data and signature parameters via POST to your result_url
  2. Your server verifies the signature to ensure the response is authentic
  3. Your server decodes the data to get payment details

Verifying the Callback

To verify the callback is genuinely from Epoint:

  1. Generate signature on your server using the received data and your private_key:
Encode & Sign
1signature = base64_encode(sha1(private_key + data + private_key, 1))
  1. Compare the generated signature with the signature received from Epoint

  2. If they match, the response is authentic and has not been tampered with

  3. Decode the data:

Encode & Sign
1result = json_decode(base64_decode(data))

Callback Response Parameters

ParameterDescription
order_idUnique order ID from your application
statusTransaction result: success or failed
codeBank response code
messagePayment status message
transactionEpoint transaction identifier
bank_transactionBank transaction identifier
bank_responseBank response for the payment
operation_code001 — card registration, 100 — customer payment
rrnRetrieval Reference Number — unique identifier (only for successful transactions)
card_nameCardholder name shown on payment page
card_maskCard mask in 123456******1234 format
amountPayment amount
other_attrAdditional parameters
trace_idUnique request identifier for debugging and support

Payment Statuses

StatusDescription
newPayment registered in Epoint system
successPayment completed successfully
returnedPayment refund was processed
failedAn error occurred during payment
errorAn error occurred during payment
server_errorStatus verification error

Status Check API

You can check the payment status at any time using the Get Status API endpoint.