HitPay Payment Request API

This endpoint accepts POST requests to create payment requests.

Usage

Send a POST request with JSON or form data:

POST /create_payment.php
Content-Type: application/json

{
    "amount": 100.00,
    "currency": "SGD",
    "email": "[email protected]",
    "name": "John Doe",
    "purpose": "Order #123",
    "redirect_url": "https://happyavptour.com/"
}
    

Response

The API will return a payment request object with a URL to redirect the user to complete payment.

HitPay Payment

💳 HitPay Payment

Redirecting to HitPay checkout...

Usage:

Pass payment parameters via GET or POST:

index.php?amount=100.00&email=[email protected]&name=John Doe

Required:

Optional:

Example:

index.php?amount=50000¤cy=KRW&email=[email protected]&name=John Doe&purpose=Order #123

Add ?amount=100.00 to redirect to payment