EPaySe
Getting Started

Prerequisites

Everything you need before integrating with EPaySe payment gateway.

Before you start integrating with EPaySe, ensure your development environment meets these requirements and you have the necessary accounts and tools set up.

System Requirements

PHP

PHP 8.1 or higher

Required extensions: cURL, JSON, OpenSSL, mbstring

HTTPS

SSL/TLS certificate

Valid SSL certificate for production environment

Database

MySQL 5.7+ or PostgreSQL 12+

For storing transaction records and webhooks

Server

Public IP or domain

Accessible from the internet for webhook delivery

Bash
Verify PHP Installation
# Check PHP version
php -v

# Check required extensions
php -m | grep -E 'curl|json|openssl|mbstring'

Account Setup

You'll need an approved EPaySe merchant account to process payments. Sign up for a free sandbox account or apply for a production account.

Required Information

Have these documents and information ready for account approval

  • Valid business registration documents
  • Bank account for settlements
  • Business contact information
  • Processing volume estimates
  • Business description and website

Development Tools

Install these tools to streamline your integration process.

Composer

PHP dependency manager

Required

Git

Version control system

Required

Postman

API testing tool

Optional

ngrok

Local tunnel for webhook testing

Optional

Install Composer

Composer is required to install the EPaySe PHP SDK and manage dependencies.

Bash
Composer Installation
# Check if Composer is installed
composer --version

# If not installed, download and install
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer

Local Webhook Testing with ngrok

ngrok allows you to test webhooks on your local development machine by creating a secure tunnel to localhost.

Bash
ngrok Setup
# Install ngrok
npm install -g ngrok

# Authenticate (sign up at ngrok.com for auth token)
ngrok config add-authtoken YOUR_AUTH_TOKEN

# Start tunnel on port 8000
ngrok http 8000

Environment Setup

Sandbox

Sandbox Environment

Free testing environment with full feature access

  • Full API testing with test cards
  • Unlimited test transactions
  • Webhook testing and debugging
  • Completely free, no credit card required
Production

Production Environment

Live environment for real payment processing

  • Process real payments
  • Requires valid SSL certificate
  • Requires KYB approval
  • Live API keys and endpoints

Security Checklist

Pre-Integration Security Checklist

Complete these security requirements before integrating

  • Valid HTTPS/SSL certificate for all URLs
  • Secure storage for API keys (environment variables, not code)
  • Webhook signature verification implemented
  • Secure logging without exposing sensitive data
  • PCI DSS compliance for card data handling

Ready to Start?

Once you've completed these prerequisites, you're ready to authenticate and make your first API call.