=== Sasono Payments for WooCommerce ===
Contributors: sasono, vishalbhisara
Tags: woocommerce, payments, vouchers, prepaid, gateway
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Donate link: https://sasono.com/support

Accept prepaid payments with Sasono in WooCommerce — simple, secure, and fully compatible with Classic & Block Checkout.

== Description ==

**Sasono Payments for WooCommerce** allows customers to pay using **Sasono prepaid codes** directly at checkout. No bank account or credit history required — just enter a prepaid code and email to complete the order.

= Why use Sasono Payments? =

* **Simple:** Customers just enter their prepaid code and email.
* **Secure:** Codes are unique and encrypted for safe transactions.
* **Accessible:** No credit card or bank account required.
* **Flexible:** Works with WooCommerce Classic Checkout and WooCommerce Blocks.
* **Compliant:** Fully compatible with High Performance Order Storage (HPOS).

= Use Cases =

Sasono prepaid codes can be used for:

* E-commerce (tech, apparel, lifestyle products)
* Social media & premium services
* Digital downloads (ebooks, software, games)
* Travel & ticketing
* Shopping with a growing network of online retailers

= Features =

* Accept **Sasono prepaid code** payments in WooCommerce.
* Simple checkout fields for voucher code and email.
* Supports **Classic Checkout** and **WooCommerce Blocks Checkout**.
* **HPOS (High Performance Order Storage)** compatible.
* Validates user input with WordPress sanitization and escaping standards.
* **Voucher dashboard**: monthly history of redeemed vouchers with CSV export (WooCommerce → Sasono Vouchers).
* Easy setup — no technical skills required.

= Get Started =

1. Install and activate the plugin.  
2. Go to **WooCommerce → Settings → Payments**.  
3. Enable **Sasono Payments** and configure it.  
4. Customers will now see a **“Pay with Sasono”** option at checkout.  

== Installation ==

= Requirements =

* WordPress 6.5 or newer
* WooCommerce 9.6 or newer
* PHP 7.4 or newer
* A valid Sasono account to process payments

= Installation Instructions =

1. Log in to your WordPress admin.
2. Go to **Plugins → Add New**.
3. Upload the `sasono-payments-for-woocommerce.zip` file.
4. Activate the plugin.
5. Navigate to **WooCommerce → Settings → Payments**.
6. Enable **Sasono Payments** and adjust settings as needed.

== Frequently Asked Questions ==

= What is Sasono? =

Sasono is a prepaid code payment solution. Customers buy codes from authorized resellers and use them to pay securely online.

= Do I need a Sasono account to use this plugin? =

Yes. Merchants must have a verified Sasono account to accept payments.

= Does this plugin store sensitive data? =

No. The plugin only transmits the prepaid code and email securely to Sasono for validation. No payment details are stored on your site.

= Is it compatible with WooCommerce Blocks Checkout? =

Yes, this plugin works with both Classic Checkout and the new WooCommerce Blocks Checkout.

= Can customers partially use a Sasono code? =

Yes. If a prepaid code is only partially spent, Sasono issues a new code for the remaining balance.

= What happens if a customer loses their prepaid code? =

Sasono prepaid codes should be treated like cash. Lost or stolen codes cannot be replaced.

= Is Sasono available internationally? =

Yes. Sasono prepaid codes can be redeemed with any participating merchant worldwide.

= What WooCommerce versions are supported? =

The plugin requires WooCommerce 9.6+ and WordPress 6.5+. It has been tested up to WooCommerce 10.1.

== Screenshots ==

1. "Pay with Sasono" option on the WooCommerce checkout page.
2. Customer entering voucher code and email.
3. Sasono payment settings in WooCommerce admin.

== Changelog ==

= 1.1.0 =

* Added Sasono Vouchers dashboard (WooCommerce → Sasono Vouchers): monthly history of redeemed vouchers with CSV export for claiming funds.
* Voucher code and customer email are now saved to the order for classic checkout payments.
* Added Vouchers and Settings quick links on the Plugins screen.
* Fixed block checkout payments being rejected by the security check (Store API requests are authenticated by WooCommerce itself).
* Confirmed compatibility with WordPress 7.0.
* Added German, Estonian, Portuguese, and Bulgarian translations (classic and block checkout).
* Aligned plugin version numbering with the readme stable tag.
* Removed unused translation files and minor code cleanup.

= 1.0.0 =

* Initial release of Sasono Payments for WooCommerce.
* Added support for prepaid code payments.
* Compatible with Classic and Block Checkout.
* HPOS compatibility added.
* Tested up to WooCommerce 10.1 and WordPress 6.5.

== Upgrade Notice ==

= 1.1.0 =

New voucher dashboard with CSV export, translations, and WordPress 7.0 compatibility.

= 1.0.0 =

First stable release of the plugin.