Documentation
Learn how to integrate VYPay into your applications
Integration Workflow
1
Generate Payment Key
The seller generates a payment key using key_generate.php
2
Payment Page
The buyer visits the payment page using the generated key
vypay.xyz/pay.php?key=YOUR_GENERATED_KEY3
Process & Redirect
The payment is processed, and the buyer is redirected to the seller's site
4
Verify Payment
The seller verifies the payment using check_payment.php
check_payment.php?email=merchant@example.comPayment Verification
After a payment completes, verify the transaction before granting access.
Verification Endpoint
GET check_payment.php
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes (if no key) | merchant@example.com | |
| key | string | Yes (if no email) | YOUR_GENERATED_KEY |
Responses
{ "success": true, "transaction_id": 123456, "amount": "50.00", "timestamp": "2023-05-19 15:30:45" }
{ "success": false }