Get payment status

Author: Semaka 109 views

Once the payment is completed the user will be redirected to the error_url/pending_url/success_url depending on the results. Webhook data will also be posted to the notify_url after every transaction. See below sample responses. 

Redirect Response

				
					{
    "success": {1 or 0},
    "reason": "",
    'merchant_reference' => ‘{merchant_reference}’
    'gateway_reference' => ‘{psp_reference}'
    "status": 401
}
				
			

Webhook response

				
					POST = [
        'success' => {1 or 0}
        'status' => {statusString}
        'organisation_id' => {merchant_id}
        'amount' => {amount}
        'transaction_id' => {gateway_transaction_id}
        'reason' => ‘{reasonForFailureIfApplicable}’
        'user' => ‘{paymentUser}’
        'merchant_reference' => ‘{merchant_reference}’
        'gateway_reference' => ‘{psp_reference}'
        'gateway_response' => ‘{additionalDataFromPSP}’
        'currency' => ‘{currency}’
        'payment_key' => ‘{payment_key}’
        ]
				
			
On this page