HomeGuidesAPI Reference
API Reference

Postman Collection

Accelerate your EdfaPay integration using our official Postman Collection. Pre-configured with all available API endpoints, environment variables, and example payloads — so you can begin testing immediately.


🚀 Access the Postman Collection

Start Testing Instantly


Open the official EdfaPay Postman Collection to explore all APIs with ready-made requests and environments.


Overview

The EdfaPay Postman Collection provides a fully structured, ready-to-use workspace for exploring and testing the EdfaPay Payment Gateway API. It includes pre-built request templates for all major operations, environment variable support for seamless credential management, and detailed example responses that reflect real-world transaction scenarios.

FeatureDescription
All Endpoints IncludedSale, Auth, Capture, Refund, Recurring, and more — all pre-configured.
Environment VariablesManage Sandbox and Production credentials independently with a single toggle.
Example PayloadsSample request bodies and expected responses for every endpoint.
Webhook TestingIncludes webhook simulation flows for validating your notification handling.

Prerequisites

Before importing the EdfaPay Postman Collection, ensure the following requirements are met:

  1. Install Postman — Download and install the latest version of Postman (desktop or web version).

  2. Obtain your sandbox credentials — Ensure you have received your Sandbox Merchant Key and Merchant Password from EdfaPay. If you have not yet received these, contact [email protected].

  3. Request the collection file — The EdfaPay Postman Collection JSON file is distributed directly by the EdfaPay integrations team. Contact your account representative or EdfaPay Support to receive the latest version.


Setting Up the Collection

Follow these steps to import and configure the EdfaPay Postman Collection:

  1. Import the collection — Open Postman and select Import from the top navigation. Choose the JSON file provided by EdfaPay and confirm the import.

  2. Configure environment variables — Navigate to the Environments tab and update variables with your merchant credentials.

  3. Select the active environment — Ensure the correct environment is selected before sending requests.

  4. Send a test request — Start with a sample request (e.g., Sale API) using test cards.


Environment Variables Reference

VariableDescriptionExample Value
base_urlThe API base URL for the target environmenthttps://demo-api.edfapay.com
client_keyYour unique merchant client keyyour_client_key_here
passwordMerchant secret used for authentication hashyour_secret_password
payer_emailEmail used in test requests[email protected]
order_idUnique identifier for each orderTEST-ORDER-001
order_amountTransaction amount10.00
order_currencyISO currency codeSAR
🔒

Security Notice


Never expose your credentials in shared collections. Use Postman's secret variables.


Environments

EnvironmentPurposeBase URL
SandboxTesting and developmenthttps://demo-api.edfapay.com
ProductionLive transactionshttps://app-api.edfapay.com
⚠️

Apple Pay cannot be tested in Sandbox. Production setup is required.


What to Test

OperationDescription
Sale (S2S)Complete payment in one step
Auth & CaptureTwo-step payment flow
RefundReverse transactions
RecurringCharge saved cards
Webhook CallbackValidate webhook handling
Decline HandlingTest error scenarios

Troubleshooting

IssueCauseSolution
AUTH_HASH_INVALIDWrong hashRecalculate correctly
INVALID_CLIENT_KEYWrong API keyVerify credentials
TimeoutNetwork / proxy issueCheck Postman settings

Related Resources

  • Authentication
  • Test Cards
  • Sandbox Environment
  • Webhook Validation
  • Go Live Checklist