Posting Transaction

Create an HTML form wherever you would like your ‘Pay’ button to appear and then set the form’s method to POST and the action attribute to https://pay.qoop.ng/payexpress

Create a submit button in the form and a few hidden fields through which you would assign transaction values you wish to post. See Fields and values for the required fields and a few optional ones.

Sample request

<form action="https://pay.qoop.ng/payexpress" method="post" >
	<input type="hidden" name="amount" value="2500.00" />
	<input type="hidden" name="site_redirect_url" value="https://storeurl/wc-api/wc_plugin_qpay_Gateway/" />
	<input type="hidden" name="txn_ref" value="5af4392212b9b" />
	<input type="hidden" name="hash" value="d8f8f0d4d12350a4b52d9716" />
	<input type="hidden" name="cust_name" value="Simon Kolawole" />
	<input type="hidden" name="partner_id" value="hofstede" />
	<input type="hidden" name="live_api_key" value="D2Q0KWkIE332Xx39FyB3bv" />
	<input type="hidden" name="order_id" value="15665" />
</form>   

How to process the response

The following are the parameters returned by QOOP for real-time transactions. Note that QOOP will perform a GET request to the site_redirect_url provided in the request to QOOP.

https://site_redirect_url/? txnRef=5af4392212b9b &PaymentReference=238477494594 &Amount=2500.00 &err=false &ResponseCode=00 &ResponseDescription=Success

How to validate a transaction

Get Transaction

GET https://pay.qoop.ng/gettransaction

This endpoint is to validate/get a transaction

Query Parameters

{
  "ResponseCode": "00",
  "Amount": 20000,
  "ResponseDescription": "Success"
}Other response codes are Other

Other response codes are:

Last updated