INTEGRATION MANUAL & GUIDELINES

Version 4.0

CONTENT

NOTITLE
1Request For Payment
2Sample Method Form 1
2.1Online Form
2.2Simple HTML Form Coding
3Receive Response Via Redirect URL (Browser)
3.1Payment Response Parameters
3.2Sample Receive Coding
4Receive Response Via Callback
4.1Payment Response Parameters
4.2Sample Receive Via Callback URL
5Web URL API Reference
5.1Payment Request Form Submission
5.2Query All Transactions Via ZenPay API
5.3Query Transaction API Using Payment Reference ID
5.4Query All Transaction Payment Status Via Gateway API
5.5Settlement Request By Merchant API
5.6Malaysia Bank/Finance Swift Code

Request For Payment

There are two options merchants can integrate with payment page:

a) Merchant directly passes HTTP POST parameters to payment page.
b) Merchant sends parameters via curl to get payment session id. Once get payment session id then submit to payment page.

Using Method 1 (Direct HTTP Post)

Merchant must send the following parameters listed below to integrate with payment page :-

NOPARAMETERS & DESCRIPTIONSSTATUS PARAMETEREXAMPLE
1Billercode is provided by ZenPay
after successfully registered.
Character Length:10
Mandatory200020021
2Hashkey is provided by ZenPay
after successfully registered.
This parameter will be validated
at payment page interface.
Character Length:32
Mandatory9517fe9ea58068d1a239318713382ff1
3Amount in Ringgit Malaysia (RM) with 2 decimal places. Maximum Amount RM30000 per transaction and minimum value RM2 for Retail/Individual
Account and Maximum Value
RM1Million for Corporate
Account(B2B)
Mandatory10.00
(for ten ringgit)
4Order Reference is an
Alphanumeric merchant order
number reference ID
Character Length:20
Mandatory12345
5Return URL – browser to
browser communication that
allow ZenPay to redirect page
to merchant web interactively.
Web URL either http or https.
All Response parameters can be
referred Section 3.0
Optionalhttp://marchant.com/rsp/webpayment.php

(if returnURL is blank, ZenPay will remain at
the Standard Receipt Page without any
further redirection)
6Callback URL
Server to Server communication
that allows ZenPay payment
gateway to post payment status
parameters using background
mode. Response parameters
can be referred Section 4.0
Mandatoryhttps://marchant.com/rsp/bgpayment.php

Using Method 2 (cURL Request)

STEP 1: Merchant must send the following parameters listed below via CURL –

NOPARAMETERS & DESCRIPTIONSSTATUS PARAMETEREXAMPLE
1Billercode is provided by ZenPay after successfully egistered.
Character Length:10
Mandatory200020021
2Hashkey is provided by ZenPay
after successfully registered.
This parameter will be validated
at payment page interface.
Character Length:32
Mandatory9517fe9ea58068d1a239318713382ff1
3Amount in Ringgit Malaysia
(RM) with 2 decimal places.
Maximum Amount RM30000
per transaction and minimum
value RM2 for Retail/Individual
Account and Maximum Value
RM1Million for Corporate
Account(B2B)
Mandatory10.00
(for ten ringgit)
4Order Reference is an
Alphanumeric merchant order
number reference ID.
Character Length:20
Mandatory12345
5Return URL – browser to
browser communication that
allow ZenPay to redirect page
to merchant web interactively.
Web URL either http or https.
All Response parameters can be
referred Section 3.0
Optionalhttp://marchant.com/rsp/webpayment.php

(if returnURL is blank, ZenPay will remain at
the Standard Receipt Page without any
further redirection)
6Callback URL
Server to Server communication
that allows ZenPay payment
gateway to post payment status
parameters using background
mode. Response parameters
can be referred Section 4.0
Mandatoryhttps://marchant.com/rsp/bgpayment.php

CURL REQUEST is submitted to URL:

https://app.thezenpay.com/ebiz/ezp/get3Dpaysession.php

STEP 2: Merchant will receive CURL RESPONSE in JSON Format

NOPARAMETERDESCRIPTION
1PaymentSessionID
(String Length:64)
If valid biller code and hashkey, payment server will
respond immediately payment session id to be used by
merchant for the next submission. This payment ref
session id will expire after 5 minutes.
If invalid biller code and hash key, payment will return
blank
2status
(Character Length 2)
0 : for approve & valid session request
-1 : for unauthorised and Invalid Biller Code and
Hashkey

Sample Successful Response:

{“PaymentSessionID”:”344272c8c59c2b1c1cef7a158e46dbb5d22a6fcdccf7c95688

8d931139ab9c37″,”status”:”0″}

STEP 3: MAKING PAYMENT

In order to proceed to make payment, merchant need to submit form to url:

https://app.thezenpay.com/ebiz/ezp/zenpay3Dnow.php

by posting parameters below :-

NOPARAMETERSTATUSDESCRIPTION
1PaymentSessionID
(string 64)
MandatoryValid PaymentSessionID provided in step 2.

ZenPay is a payment gateway brand fully owned by Maya Wang Sdn Bhd (1529814-P). Maya Wang is officially registered as a payment gateway with exchange identification EX00013275 and works in partnership with Bank Islam Malaysia Berhad as a payment system agent.

Stay Connected.

Feel free to contact us.

logo mayawang small