Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Payment Request Parameters

While V1 and V2 parameters are similar, the main differences between the two is that request to V1 will be redirected to our payment page while requests to V2 return a JSON response with the payment link and other information. Please note that the V2 API is in testing phase and is only opened to selected merchants.

Supported Methods: GET, POST

Payment request parameters to our V2 API.

GET https://api.payhalal.my/v2/pay.php

Query Parameters

Name
Type
Description

app_id*

String

Application Id

currency*

String

ISO Currency Code

amount*

Decimal

Amount without thousand separators

product_description*

String

Description of the product

order_id*

String

Your Order ID

customer_name

String

Customer first and last name.

customer_phone

String

Customer phone number

hash*

String

Payment hash

customer_email

String

Customer email address

{
  "merchant_id": "your@email.my",
  "amount": "1.00",
  "currency": "MYR",
  "amount_convert_myr": null,
  "order_id": "test123",
  "payment_link": "https://api.payhalal.my/pay?app_id=your-live-key&amount=1.00&currency=MYR&product_description=test&order_id=test&customer_name=&customer_email=&customer_phone=&hash=your-hash",
  "payment_hash": "52c33fb07c5c6be3124ac2f127d94bcbd1d7eaae31d097350aee946145faf2b4",
  "date_created": "06/12/2022 01:05:38"
}

Payment request parameters to our V1 API.

GET https://api.payhalal.my/pay

Query Parameters

Name
Type
Description

app_id*

String

Application Id

currency*

String

ISO Currency Code

amount*

Decimal

Amount without thousand separators

product_description*

String

Description of the product

order_id*

String

Your Order ID

customer_name

String

Customer first and last name.

customer_phone

String

Customer phone number

hash*

String

Payment hash

customer_email

String

Customer email address

Generate QR Code API Parameters

GET https://api.payhalal.my/qrCreate

Query Parameters

Name
Type
Description

app_id*

String

Application Id

amount*

Decimal

Amount without thousand separators

currency*

String

ISO Currency Code

product_description*

String

Description of the product

order_id*

String

Your Order ID

customer_name

String

Customer first and last name.

customer_email

String

Customer email address

customer_phone

String

Customer Phone

hash*

String

Payment hash

Last updated