LLedePayPayments

Create Payment

Create a payment via POST /v1/payments.

Request Parameters

FieldTypeDescription
amountintegerAmount in the smallest currency unit
currencystringISO 4217 code (e.g. CNY)
capturebooleanWhether 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"
  }'