=== CatCode Pagos360 Checkout for WooCommerce ===
Contributors: catcode
Tags: woocommerce, pagos360, argentina, payment gateway, rapipago
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept payments in Argentine pesos through Pagos360: card, bank transfer and cash slips on the Pagos360 page, confirmed server-side. HPOS and block checkout.

== Description ==

A WooCommerce payment gateway for **Pagos360** (Argentina). It is an independent plugin by CatCode, not made or endorsed by Pagos360.

Every order is confirmed by the shop's own server asking Pagos360 for the payment request, never by what the browser says.

Features:

* Creates a Pagos360 payment request (`POST /payment-request`) and sends the buyer to the Pagos360 payment page, where they choose card, bank transfer or a cash slip.
* The order is marked paid only when the payment request fetched from Pagos360 is in the `paid` state, belongs to this order (id and external reference) and the amount received covers the order total.
* Slips and transfers that are paid hours or days later are picked up by a check that runs every 15 minutes through WP-Cron. The public Pagos360 documentation describes no webhook, so the plugin does not rely on one.
* The thank-you page shows the payment page link, the PDF slip and the barcode while the payment is open. An expired request cancels the order and releases the stock.
* Configurable number of days to pay.
* Argentine pesos (ARS). The method hides itself for other currencies.
* Classic and block checkout, HPOS compatible, sandbox mode, one-click key check.
* The API key is stored obscured (not in plain text) and never shown back.
* Translated into Argentine Spanish (es_AR).
* No refunds from WooCommerce: refund in the Pagos360 panel and record it in the order by hand.

== External service ==

This plugin sends data to the Pagos360 API (https://api.pagos360.com, or https://api.sandbox.pagos360.com in sandbox mode) to create and read payment requests. For each payment it sends the order total, a description with the order number and shop name, the buyer's name and e-mail address, the order id and the return addresses. Pagos360 terms and privacy information are on https://www.pagos360.com/.

== Installation ==

1. Upload the plugin and activate it.
2. WooCommerce → Settings → Payments → **Pagos360 (CatCode)**.
3. Paste the API key from the Pagos360 panel (Integraciones menu), for the sandbox or live account.
4. Press "Check key", set the days to pay and enable the method.

== Frequently Asked Questions ==

= Do I need a Pagos360 account? =
Yes. The API key is created in the Pagos360 panel.

= The buyer paid but the order is still pending. =
The order settles when the buyer returns to the shop, when the thank-you page loads, or at the next 15-minute check. WP-Cron must run on the site (visits or a real cron job).

= Does it refund orders? =
No. Refund in the Pagos360 panel and add the refund to the WooCommerce order by hand.

= Free and Pro =
Taking payments, server-side verification and sandbox are free with no time limit.

== Changelog ==

= 1.0.0 =
* First release: payment request flow, server-side verification, scheduled check of open requests, cash slip details on the thank-you page, block checkout, HPOS.
