Hosted Checkout Code

PHP, Node.js, Python, and Java examples for hosted checkout integration.

Server-side examples for Hosted Checkout: create a payment link, redirect the customer, confirm payment, handle webhooks, and process refunds.

📘

Concept guide: Hosted Checkout Integration Overview — API flow and diagrams without code.

🚧

Use POST /payment/checkout/intiate (not /session). Base URL: https://api.digetpay.com/v1, the same for Test and Live. Send your Test API Key for demo payments or your Live API Key for real payments in the x-api-key header.

Apple Pay: No merchant code for hosted checkout — send customerPhone when creating the link. See Apple Pay on Hosted Checkout.


Next steps



Did this page help you?