payment gateway with payout services code example

Example 1: paygate payment gateway integration

Points for paygate payment gateway integration

1. Your PayGateID assigned by PayGate. If the ID is not provided, then it will 
default to the testing ID ( 10011072130 ).

2. The encryption key set in the Merchant Access Portal. If the encryption key 
is not provided, then it will default to the testing key ( 'secret' )

3. Currency code of the currency the customer is paying in. If the curency code 
is not provided, then it will default to South Africa Rand. ( 'ZAR' )
	Refer to http://docs.paygate.co.za/#country-codes

4. Country code of the country the customer is paying from. If the country code 
is not provided, then it will default to South Africa. ( 'ZAF' )
	Refer to http://docs.paygate.co.za/#country-codes

5. The locale code identifies to PayGate the customer’s language. If the locale 
is not provided or supported, then PayGate will default to the “en” locale.

6. Once the transaction is completed, PayWeb will return the customer to a page 
on your web site. The page the customer must see is specified in this field.

7. If the notify URL field is populated, then PayWeb will post to the notify 
URL immediately when the transaction is completed.

reference : Refer to http://docs.paygate.co.za/#response

Example 2: pesapal payment gateway response

Use this to query the status of the transaction. When a transaction is posted
to PesaPal, it may be in a PENDING, COMPLETED or FAILED state. If the 
transaction is PENDING, the payment may complete or fail at a later stage.

Both the unique order id generated by your system and the pesapal tracking
id are required as input parameters.

Tags:

Misc Example