๐Ÿš€ Payment Gateway Setup Instructions

โœ… Good News! You can configure this payment gateway without rebuilding or redeploying the application.

๐Ÿ“‹ What You Need

๐Ÿ”ง Setup Steps

Step 1: Download the built application files to your web server
Step 2: Edit the config.js file with your credentials:
// Edit /config.js file
window.RUNTIME_CONFIG = {
  // Your Organization Settings
  TENANT_ID: 'your-company',
  COMPANY_NAME: 'Your Company Name',
  
  // Merchant Warrior Credentials (PRODUCTION)
  MW_MERCHANT_UUID: 'your_live_merchant_uuid',
  MW_API_KEY: 'your_live_api_key',
  MW_PASSPHRASE: 'your_live_passphrase',
  MW_PAYFRAME_JS_URL: 'https://secure.merchantwarrior.com/payframe/payframe.js',
  MW_PAYFRAME_URL: 'https://secure.merchantwarrior.com/payframe/',
  MW_SUBMIT_URL: 'https://api.merchantwarrior.com/payframe/',
  
  // Email Configuration
  EMAILJS_SERVICE_ID: 'your_emailjs_service_id',
  EMAILJS_PUBLIC_KEY: 'your_emailjs_public_key',
  EMAILJS_USER_SUCCESS_TEMPLATE_ID: 'template_success',
  EMAILJS_USER_FAILURE_TEMPLATE_ID: 'template_failure',
  EMAILJS_ADMIN_NOTIFICATION_TEMPLATE_ID: 'template_admin',
  ADMIN_EMAIL: 'admin@yourcompany.com',
  
  // Branding
  PRIMARY_COLOR: '#your-brand-color',
  SECONDARY_COLOR: '#your-secondary-color',
  SUPPORT_EMAIL: 'support@yourcompany.com',
  
  // Features
  VATU_CONVERTER: false,  // Set to true if you need VATU conversion
  EMAIL_NOTIFICATIONS: true
};
Step 3: Upload files to your web server (Apache, Nginx, IIS, etc.)
Step 4: Configure your web server for Single Page Application (SPA) routing

๐ŸŒ Web Server Configuration

Apache (.htaccess)

RewriteEngine On
RewriteRule ^(?!.*\.).*$ /index.html [L]

Nginx

location / {
    try_files $uri $uri/ /index.html;
}

๐Ÿ”’ Security Notes

โš ๏ธ Important:

๐Ÿงช Testing

Test URLs:

๐Ÿ“ž Support

If you need help:

๐ŸŽ‰ That's it! Your payment gateway is now ready to process payments with your own branding and merchant account.
โ† Back to Payment Gateway View Current Config