SnapNPay API - For both Tulus and SnapNPay
The API can be logically grouped in to 2:
  1. Payment Orders
  2. Payment Reports
There are multiple ways to authenticate for the API, but the current more secure and flexible way is to specify a user and an API key.

Payment Order

Example Payment Order:
order = Array
(
    [agency] => BERRYPAY
    [refNo] => test69339fc057bc3~881225-08-1234~12 
 Jalan Foo~#Sample RefNo
    [amount] => 2.00
    [email] => sdk@snapnpay.my
    [returnUrl] => https://developers.tulus.my/sdk/example/receipt.php?just=1&a=test
    [utm_source] => sdk
    [utm_medium] => dev
    [utm_campaign] => sdk_demo
    [utm_term] => tulus sdk
    [utm_content] => 
    [pref_method] => 
    [pref_bank] => 
    [extra_data] => 
)
Production - Live payments
UAT - MEPS Dev Environment
Reference Number of this payment order.
Used to uniquely identify this payment Order.
This would be generated by your system and may includue extra data by appending it with ~ See this source code in the downloaded SDK for details.
The Amount, in Ringgit Malaysia. e.g. 12.20 Bear in mind that the amount for FPX B2B is RM 2.00 after charges, and FPX B2C is RM 1.00 after charges. Payment methods may be disabled and hidden if the minimum is not met.
Valid Email address. Receipt will be sent here.
Valid Agency Code.
Return URL. Redirect here when all done.
Identifies which site sent the traffic, and is a required parameter. e.g. (instagram)
Identifies what type of link was used, such as cost per click or email. e.g. (email)
Identifies a specific product promotion or strategic campaign. e.g. (spring_sale)
Identifies search terms. e.g. (pay zakat)
Identifies what specifically was clicked to bring the user to the site, such as a banner ad or a text link. It is often used for A/B testing. e.g. (logolink)
[ALPHA] Preferred Payment Method (fpx/b2b1 for B2B1 FPX)
[ALPHA] Preferred Bank e.g. (ABB0235 for Affin Bank B2B(see /api/v1/fpx/banklist/b2b))
[ALPHA] Preferred Bank e.g. (ABB0235 for Affin Bank B2B(see /api/v1/fpx/banklist/b2b))
Internal debug use
POST to https://pay.tulus.my/

Payment Reports

GetPaymentReport
You should obtained the AuthToken by logging into the Merchant dashboard at https://reports.tulus.my/ and getting the AuthToken copied to clipboard from the top right menu, "Copy AuthToken to Clipboard"
Code of the agency.