Create a new payment request for your customer
Request Parameters
| Parameter |
Type |
Required |
Description |
| amount |
number |
Required |
Payment amount in INR |
| currency |
string |
Optional |
Currency code (default: INR) |
| customer_name |
string |
Required |
Customer's full name |
| customer_email |
string |
Required |
Customer's email address |
| customer_phone |
string |
Optional |
Customer's phone number |
| description |
string |
Optional |
Payment description |
| callback_url |
string |
Optional |
URL to redirect after payment |
Example Request
curl -X POST https://api.payme2d.com/v1/payments/create \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 1000,
"currency": "INR",
"customer_name": "John Doe",
"customer_email": "john@example.com",
"customer_phone": "+91 9876543210",
"description": "Product Purchase",
"callback_url": "https://yoursite.com/callback"
}'
Example Response
{
"success": true,
"payment_id": "pay_abc123xyz",
"payment_url": "https://payme2d.com/pay/abc123xyz",
"amount": 1000,
"currency": "INR",
"status": "pending",
"created_at": "2025-10-05T10:30:00Z"
}
Success Response
On successful payment creation, you'll receive a payment_url that you should redirect your customer to for completing the payment.