For Business🌐 India
CMS Plugins · v1.0.0

Recharge, bills & gift cards on your website

Free plugins for WordPress, WooCommerce, Shopify and any PHP site. Your customers pay you; the plugin delivers the recharge, bill payment or voucher from your Pay2All wallet — automatically.

  • Modern, mobile-first widget
  • API key never leaves your server
  • No double charges, ever
Phase 1

Services included

Mobile recharge

Airtel, Jio, Vi, BSNL — prepaid top-ups with quick amounts.

DTH recharge

Tata Play, Airtel DTH, Dish TV, d2h, Sun Direct.

BBPS bill payment

Electricity, water, gas, broadband, FASTag, insurance, EMI — with live bill fetch.

Gift cards

Amazon, Flipkart, Myntra and more — codes emailed instantly.

Coming next

Flights, buses, AEPS, DMT, PAN and verification — same plugins, new tabs.

Download

Pick your platform

Every package shares the same secure core and the same widget, so the experience is identical everywhere.

WordPress & WooCommerce

v1.0.0 · 56 KB

Install, paste your API key, done. A ready “Recharge & Bill Payment” page is created for you.

  • Block + shortcodes, light & dark themes
  • Customers pay through any WooCommerce gateway
  • Agent wallet mode for counter staff
  • Auto-complete, auto-refund & 5-minute re-checks
  • Transactions dashboard with wallet balance

WordPress 6.0+ · PHP 7.4+ · WooCommerce 7+

Shopify

v1.0.0 · 44 KB

Theme sections plus a small connector. Shoppers pay on Shopify checkout; services go out on payment.

  • Drag-and-drop theme sections
  • Exact-amount draft-order checkout
  • Signed order lines — no price tampering
  • Order tags & notes with operator references
  • Customer order-status page with voucher codes

Any Shopify plan · PHP 7.4+ host for the connector

PHP & any CMS

v1.0.0 · 36 KB

SDK + drop-in widget for plain PHP, Laravel, CodeIgniter, Joomla, Drupal, OpenCart and PrestaShop.

  • Typed results: success / pending / failed
  • Idempotent client_id — never double-charges
  • Drop-in widget endpoint (one PHP file)
  • Pay-first or agent-counter checkout
  • Composer-ready, PSR-4

PHP 7.4+ · cURL · no dependencies

How it works

From form to fulfilment in four steps

  1. 1

    Customer fills the form

    Operator, number and amount — or a fetched bill / chosen gift card. Validated on your server.

  2. 2

    Pays on your checkout

    WooCommerce, Shopify or your own gateway. Bills are signed so the amount can’t be edited.

  3. 3

    Plugin places it with Pay2All

    From your Pay2All wallet, using a stable client_id per line — retries never double-charge.

  4. 4

    Delivered & reconciled

    Orders auto-complete, voucher codes are shown and emailed, pending ones are re-checked.

WordPress & WooCommerce

  1. Plugins → Add New → Upload Plugin, choose pay2all-wordpress.zip, then activate.
  2. Create an API key at Dashboard → Developer and paste it in Pay2All → Settings. Your wallet balance appears when connected.
  3. Install WooCommerce with an online gateway (Razorpay, PayU, Cashfree, PhonePe…) and set the store currency to INR.
  4. Open the auto-created Recharge & Bill Payment page — or add the Pay2All Recharge & Bills block anywhere.
Shortcodes
[pay2all]                         // all services
[pay2all_recharge]                // mobile + DTH
[pay2all_bill_payment]            // BBPS
[pay2all_gift_cards]              // gift vouchers
[pay2all services="recharge,bill" initial="dth" theme="dark" title="Pay bills"]
Optional: key in wp-config.php
// wp-config.php (optional) — keep the key out of the database
define('PAY2ALL_API_KEY', 'YOUR_API_KEY');

Give counter staff the Pay2All Agent role to let them recharge instantly from your wallet without going through checkout.

Shopify

  1. Settings → Apps → Develop apps: create an app with write_draft_orders, read_orders, write_orders and copy the Admin API token.
  2. Host the connector folder on any HTTPS PHP host and fill in config.php.
  3. Settings → Notifications → Webhooks: add Order payment → https://your-connector/?route=webhook; copy the signing key into the config.
  4. Themes → Edit code: upload the two assets and the two sections, then add Pay2All recharge & bills to a page and set the connector URL.
Connector setup
cp connector/config.example.php connector/config.php   # API key, shop, token, secrets
# web server document root → connector/public  (HTTPS)
# every minute:
* * * * * php /path/to/connector/cron.php

PHP & any CMS

Use the client directly, or drop the widget into any page and point it at examples/public/gateway.php.

API client
require 'src/autoload.php';

$p2a = new \Pay2All\Client(getenv('PAY2ALL_API_KEY'));

$r = $p2a->recharge([
  'client_id'   => 'ORD-1001',   // your unique id
  'provider_id' => 2,            // Jio
  'number'      => '9876543210',
  'amount'      => 239,
]);

if ($r->isSuccess()) {
  echo $r->get('utr');
} elseif ($r->isPending()) {
  // re-check later with the same client_id
} else {
  echo $r->message; // nothing was debited
}
Drop-in widget
<link rel="stylesheet" href="assets/pay2all-widget.css">
<div class="p2a-mount"
     data-endpoint="gateway.php"
     data-services="recharge,bill,giftcard"></div>
<script src="assets/pay2all-widget.js" defer></script>

Full endpoint reference: Recharge, Bill Payment, Gift Cards.

Built safe

Security you don’t have to think about

Server-side key

The widget only talks to your site. Your Pay2All API key never reaches a browser.

Tamper-proof amounts

Fetched bills and Shopify order lines are HMAC-signed; paid amounts are checked before anything is placed.

Exactly-once delivery

A stable client_id per order line means duplicate webhooks and retries never debit your wallet twice.

Pay first, then deliver

Services go out only after payment is confirmed. Offline methods like COD are blocked.

FAQ

Questions, answered

Are the plugins free?

Yes. You only pay for the transactions themselves from your Pay2All wallet — and you earn your scheme commission on every recharge and bill.

Where is my API key stored?

Only on your server (WordPress option or wp-config constant, connector config file, or PHP config). The browser widget talks to your site, never to Pay2All directly.

What if a transaction fails after the customer paid?

Nothing is debited from your wallet for failed transactions. WooCommerce orders go on hold (or are refunded automatically if you enable it); Shopify orders are tagged pay2all-failed so you can refund the line.

Can I charge a convenience fee?

Yes — a flat and/or percentage fee per service, shown to the customer before they pay.

Is Cash on Delivery supported?

No. Offline methods mark orders as paid before money arrives, so the WordPress plugin hides COD, bank transfer and cheque for these items.

What about travel, AEPS, DMT and PAN?

Phase 1 covers recharge, bill payment and gift cards. More services will be added to the same plugins — update and they appear as new tabs.

Ready to sell recharges on your site?

Create your API key, add money to your wallet and install the plugin — most stores go live the same day.