=== Pachacutec Multiple QR Payments for WooCommerce ===
Contributors: pachacutecinca
Tags: woocommerce, payment gateway, bank transfer, qr code, digital wallet
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add multiple QR payment wallets (bank transfer, Yape, Plin) to WooCommerce. Let customers upload their receipt (JPG, JPEG or PNG) at checkout.

== Description ==

Pachacutec Multiple QR Payments adds a payment method for WooCommerce aimed at bank transfers or digital wallets (Yape, Plin, etc.).

**Main features:**

* Configure the title and description your customers see at checkout.
* Add as many **wallets** as you need, each with a name and its **QR code image**.
* Each QR opens in a **modal** so customers can scan it easily.
* Set the **account details** (number, holder, bank).
* The customer **uploads their payment receipt** (JPG, JPEG or PNG) directly at checkout.
* The receipt is **required** to place the order.
* Files are stored in a private folder inside `wp-content/uploads` and linked to the order.
* Admins can view and download the receipt from the order details page.

= Security =

* The file is validated by its **real MIME type** (JPG/PNG), not just the extension.
* Maximum file size is 5 MB.
* Nonces and sanitization on all inputs.
* The file is stored with a **random name** and cannot be executed as a script.

== Installation ==

1. Go to `Plugins → Add New`.
2. Upload the plugin zip file or install it from the repository.
3. Activate the plugin. It requires WooCommerce to be installed and active.
4. Go to `WooCommerce → Settings → Payments` and enable **Pachacutec QR Payments**.
5. Click **Manage** and configure the title, wallets (name + QR), account details and description.

== Frequently Asked Questions ==

= Do I need WooCommerce? =

Yes. The plugin is a WooCommerce payment method and requires WooCommerce 7.0 or higher.

= Which receipt formats are accepted? =

Only JPG, JPEG and PNG images, with a maximum size of 5 MB.

= Where are the receipts stored? =

In the `wp-content/uploads/pachacutec-qr-payments/` folder, with a random name. They are not published to the media library.

= Can I see the receipt of an order? =

Yes, on the order page (WooCommerce → Orders) a link to the uploaded receipt is shown.

= How do I add multiple wallets? =

In the gateway settings, use the **Add wallet** button to add as many wallets as you need. Each wallet has a name (e.g. Yape, Plin) and its QR code image URL.

== Screenshots ==

1. Gateway settings: configure the payment method title and description.
2. Gateway settings: add multiple wallets with their QR code images.
3. Gateway settings: logo gallery with multiple brand images.
4. Checkout: customer selects the QR payment method and sees the logos and wallets.
5. Checkout: the QR code opens in a modal for easy scanning, with receipt upload.

== Changelog ==

= 1.0.2 =
* Tested with WordPress 7.1 and WooCommerce 11.0.1.

= 1.0.1 =
* Fixed: QR code image was not shown when opening the modal.
* Improved: wallets and logos now use images selected from the WordPress Media Library.
* Added: logo gallery (multiple logos shown in a row at checkout).
* Improved: close button of the QR modal with proper styling.
* Fixed: "Save changes" button now activates when editing images.

= 1.0.0 =
* Initial release.
* Bank transfer / digital wallet payment gateway.
* Configure title, description, account details, logo and QR codes.
* Support for multiple wallets, each with its own QR code.
* QR codes open in a modal at checkout.
* Required receipt upload (JPG/PNG) at checkout.
* Receipt linked to the order and visible in the admin.
* Real MIME validation, size limit and nonces.

== Upgrade Notice ==

= 1.0.0 =
First version of the plugin.
