API Reference

Sandbox Environment: Checkout API Integration and Testing

Overview

The Sandbox Environment provides merchants and developers with a safe testing space to integrate and validate EdfaPay APIs before going live. All requests in sandbox mode simulate real payment flows without processing actual financial transactions. Using the Sandbox APIs, you can test end-to-end scenarios such as:

  • Creating and initiating transactions
  • Checking transaction status
  • Processing refunds
  • Managing recurring payments

This ensures that your integration is fully functional and compliant before moving to production.


Base URL

https://apidev.edfapay.com
⚠️

Note: Do not use the production base URL when testing in sandbox.


Available Endpoints

The Sandbox environment provides the following APIs for testing:

Initiate API – Create a new payment request.

Status API – Retrieve the current status of a transaction.

Refund API – Simulate a refund for a completed transaction.

Recurring API – Test recurring payment setup and execution.

Each endpoint has its own dedicated page with request/response examples and usage guidelines.


Best Practices for Sandbox Testing

  • Validate all responses against your integration logic before going live.
  • Use sandbox test cards and credentials provided by Edfapay.
  • Expect timing differences and simulated delays compared to production.
  • Thoroughly test webhook/callback handling in sandbox:
    • Respond with HTTP 200 OK promptly.
  • Keep sandbox and production credentials separate.
  • Test partial capture/refund/void flows if your business requires them.