Create Payment
Create a payment via POST /v1/payments.
Request Parameters
| Field | Type | Description |
|---|---|---|
| amount | integer | Amount in the smallest currency unit |
| currency | string | ISO 4217 code (e.g. CNY) |
| capture | boolean | Whether to charge immediately |
Example Request
cURLcreate payment
curl -X POST https://api.ledepay.com/v1/payments \
-H "Authorization: Bearer sk_test_xxxx" \
-H "Content-Type: application/json" \
-d '{
"amount": 100,
"currency": "CNY",
"capture": true,
"description": "Order #1001"
}'