Generate a shareable checkout URL for an existing parent payment. The buyer can choose a supported payment method while the payment ID and reference stay the same.
Create the parent with POST /v1/payments and keep its ID and reference with your order. Then call linkCheckout for that payment. This operation creates the buyer-facing link for the same payment; it does not create an independent payment or change its amount and reference.
/v1/payments/{id}/link-checkoutRequires X-EDPay-Public-Key, X-EDPay-Private-Key, Content-Type: application/json, and Idempotency-Key. The response includes an opaque checkout token; keep partner keys and the payment ID on the server.
curl -X POST "https://api-pay.edutecka.com/v1/payments/pay_0123456789abcdef0123456789abcdef/link-checkout" \
-H "X-EDPay-Public-Key: <PUBLIC_KEY>" \
-H "X-EDPay-Private-Key: <PRIVATE_KEY>" \
-H "Accept: application/json" \
-H "Idempotency-Key: order-2026-001-link-checkout" \
-H "Content-Type: application/json" \
-d '{}'{
"data": {
"id": "cs_0123456789abcdef0123456789abcdef",
"token": "<OPAQUE_TOKEN>",
"expires_at": "2026-11-20T11:00:00Z"
}
}The buyer-facing routes use the opaque token and do not require partner API keys. The browser does not need the parent payment ID. Load checkout details, then submit the buyer's selected active method with Idempotency-Key and any fields required by that method.
/v1/payments/checkouts/{token}curl -X GET "https://api-pay.edutecka.com/v1/payments/checkouts/<OPAQUE_TOKEN>" \
-H "X-EDPay-Public-Key: <PUBLIC_KEY>" \
-H "X-EDPay-Private-Key: <PRIVATE_KEY>" \
-H "Accept: application/json"{
"data": {
"id": "cs_0123456789abcdef0123456789abcdef",
"checkout_type": "link",
"payment_link": {
"id": "plink_0123456789abcdef0123456789abcdef",
"merchant_name": "Example Store",
"logo_data_url": null,
"seller_legal_name": null,
"seller_country": "MZ",
"primary_color": "#0052fc",
"layout": {
"order": [
"brand",
"security",
"amount",
"methods",
"fields"
],
"hidden": []
},
"description": "Order payment",
"items": [],
"amount_minor": "150000",
"currency": "MZN",
"environment": "sandbox",
"expires_at": "2026-11-20T11:00:00Z"
},
"expires_at": "2026-11-20T11:00:00Z",
"embed_origin": null
}
}/v1/payments/checkouts/{token}/paymentcurl -X POST "https://api-pay.edutecka.com/v1/payments/checkouts/<OPAQUE_TOKEN>/payment" \
-H "X-EDPay-Public-Key: <PUBLIC_KEY>" \
-H "X-EDPay-Private-Key: <PRIVATE_KEY>" \
-H "Accept: application/json" \
-H "Idempotency-Key: order-2026-001-link-method" \
-H "Content-Type: application/json" \
-d '{
"method": "<ACTIVE_METHOD_CODE>",
"phone": "+25884xxxxxxx"
}'{
"data": {
"status": "processing",
"method": "mpesa",
"checkout_number": 1,
"notice": "accepted_for_processing_not_payment_confirmation"
}
}/v1/payments/checkouts/{token}/paymentcurl -X GET "https://api-pay.edutecka.com/v1/payments/checkouts/<OPAQUE_TOKEN>/payment" \
-H "X-EDPay-Public-Key: <PUBLIC_KEY>" \
-H "X-EDPay-Private-Key: <PRIVATE_KEY>" \
-H "Accept: application/json"{
"data": {
"status": "processing",
"method": "mpesa",
"amount_minor": "150000",
"currency": "MZN",
"created_at": "2026-11-20T10:01:00Z"
}
}Method codes are dynamic; use GET /v1/public/payment-methods to build the available choices. An accepted response means processing started, not that payment is confirmed. Retrieve the parent payment on your server with GET /v1/payments/{id} or handle configured webhooks. The amount, payment ID, and reference remain unchanged.
The platform fee is 6% in MZN. Bank payouts are made within 2 to 7 business days after the transaction.