1. Home
  2. Docs
  3. Cirilla Payment Gateway Addons
  4. Payment Gateways
  5. PayTabs Gateway

PayTabs Gateway

WidgetMechanismSupport
PayTabGatewayNative libraryios, android
PayTabGatewayWebWebviewios, android, web

Getting started

 – Create an PayTab account to use PayTab’s services: https://merchant.paytabs.com/merchant/register

Usage

 Follow this steps:

Woocommerce website:

Add PayTabs plugin to your Woocommerce:

  1. download this plugin at: https://merchant-global.paytabs.com/merchant/developers/plugins/woocommerce
  2. Go to WordPress Admin > Plugins > Add New from the left-hand menu > Upload plugin from the top menu
  1. Click on Install to install the plugin
  2. Config plugin according instructions
  3. Go to Woocommerce -> Setting -> Tab Payments: only enable Online payments powered by PayTabs ( don’t enable another method of PayTabs )

Open file wp_config.php in your WordPress installation directory and add snip code below

define('PAYTABS_SERVER_KEY_FOR_MOBILE', 'YOUR_SERVER_MOBILE_KEY');

Noted: Change YOUR_SERVER_MOBILE_KEY to your key, you can see it in key management page at your PayTab profile

 Mobile app:

  1. Copy paytabs_gateway package and add to packages folder in cirilla project.
  2. Import package in cirilla/pubspec.yaml

Example: 

paytabs_gateway:
  path: ./packages/paytabs_gateway

Then run flutter pub get in your project

  1. Add PayTabsGateway(native view) or PayTabsGatewayWeb(web view) to cirilla/lib/payment_method.dart file ( use only one of them and remember import package like example)

Example:

import 'package:paytabs_gateway/paytabs_gateway.dart';


final Map<String, PaymentBase> methods = {
 PayTabsGateway.key: PayTabsGateway(
   serverKeyForMobile: "YOUR_SERVER_MOBILE_KEY",
   clientKeyForMobile: "YOUR_CLIENT_MOBILE_KEY",
   merchantCountryCode: "US"
 ),
};

Note: when you add PayTabsGateway don’t forget add YOUR_SERVER_MOBILE_KEY and YOUR_CLIENT_MOBILE_KEY for mobile( not for web ), you can see it in key management page at your PayTab profile and merchantCountryCode is your country code

Or

import 'package:paytabs_gateway/paytabs_gateway_web.dart';


final Map<String, PaymentBase> methods = {
 PayTabsGatewayWeb.key: PayTabsGatewayWeb(),
};

Available Currencies

CountryAvailable Currencies
Kingdom of Saudi ArabiaSAR, USD
UAEAED, USD, EUR, GBP
OmanOMR
KuwaitKWD
EgyptEGP, USD, EUR, GBP
JordanUSD, JOD
IraqUSD, IQD

https://site.paytabs.com/en/faq/

Was this article helpful to you? Yes No

How can we help?