This endpoint accepts POST requests to create payment requests.
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/"
}
The API will return a payment request object with a URL to redirect the user to complete payment.