=== Pay2All — Recharge, Bill Payment & Gift Cards ===
Contributors: pay2all
Tags: recharge, bill payment, bbps, gift card, woocommerce
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sell mobile & DTH recharges, BBPS bill payments and gift vouchers on your WordPress site, powered by your Pay2All wallet.

== Description ==

* **Mobile & DTH recharge** — every major operator, quick-amount chips.
* **BBPS bill payment** — electricity, water, gas, broadband, FASTag, insurance, loan EMI and more. Live bill fetch shows the customer name, due date and amount.
* **Gift cards** — Amazon, Flipkart, Myntra and more; voucher codes are shown on the order page and in the order email.
* **WooCommerce checkout** — customers pay with any online payment gateway; services are placed only after the order is paid.
* **Agent wallet mode** — logged-in staff with the "Pay2All Agent" role transact instantly from your Pay2All wallet.
* **Convenience fees** per service (flat and/or percent).
* **Transactions log** with status, operator references and one-click re-check. Pending transactions are re-checked automatically every 5 minutes.
* Block, shortcodes, light/dark themes, custom accent colour. HPOS and Cart/Checkout Blocks compatible.

Your API key never reaches the browser. Fetched bills are signed server-side, so amounts cannot be edited by the customer, and client_id values are stable per order line so a payment can never be fulfilled twice.

== Installation ==

1. Upload the plugin zip under Plugins → Add New → Upload, then activate.
2. Create an API key at pay2all.in → Developer and paste it in Pay2All → Settings.
3. A "Recharge & Bill Payment" page is created automatically (or add the block / `[pay2all]` shortcode anywhere).
4. Install WooCommerce and an online payment gateway (Razorpay, PayU, Cashfree, PhonePe…) to accept customer payments.

== Shortcodes ==

`[pay2all]` all services · `[pay2all_recharge]` · `[pay2all_bill_payment]` · `[pay2all_gift_cards]`

Attributes: `services="recharge,bill,giftcard"`, `initial="mobile|dth|bill|giftcard"`, `title="…"`, `theme="light|dark"`.

== Frequently Asked Questions ==

= Is cash on delivery supported? =
No. Offline methods (COD, bank transfer, cheque) are hidden for these items because WooCommerce marks such orders paid before money arrives.

= What happens if a transaction fails? =
The order is put on hold with a note. Enable "Automatically refund" to refund through the payment gateway. Nothing is debited from your Pay2All wallet for failed transactions.

= Can I keep the API key out of the database? =
Yes: `define('PAY2ALL_API_KEY', 'your-key');` in wp-config.php.

== Changelog ==

= 1.0.0 =
* First release: recharge, BBPS bill payment and gift cards.
