=== Moyasar ===
Contributors: moyasar
Tags: Gateway, Payment, Credit Card, Apple Pay, STC Pay
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 8.0.2
Requires PHP: 7.4
Language: en_US, ar
URI: https://moyasar.com
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Moyasar Payment Gateway, Adds credit/debit card (Visa, MasterCard, Mada and American Express), Apple Pay, Samsung, and STC Pay payment capabilities to Woocommerce.

== Description ==

= Payments with Ease =
A comprehensive set of payment solutions that allows you to easily accept and track your transactions.

= Accept e-Payments in your WooCommerce store using Moyasar's plugin. =

== Features ==
- Credit Card (Visa, MasterCard, Mada, American Express, and UnionPay)
- Apple Pay (Web & Mobile)
- STC Pay
- Samsung Pay
- **NEW:** Quick Buy (Beta) Button for instant product page checkout.
- **NEW:** Apple Pay Instant Checkout button on product page.
- **NEW:** Unified and Modern Admin Settings Dashboard.


== Third-Party Services ==
This plugin relies on the following third-party services:
1. Moyasar Payment Gateway (Processing payments).
2. Apple Pay (Apple Pay SDK loaded for supported devices).
3. Samsung Pay (Samsung Pay SDK loaded for supported devices).
By using this plugin, you agree to the terms and conditions of these third-party services.

== Changelog ==

= v8.0.2 =
*   Feature: Support ConversLabs/SpringDevs WPSubscription action hooks (subscrpt_subscription_payment_completed, subscrpt_subscription_payment_failed).
*   Improvement: Proactive payment token propagation directly to WC_Subscription objects for WooCommerce Subscriptions.
*   Improvement: Explicit registration of renewal hooks in gateway constructors.

= v8.0.1 =
*   Fix: Add scheduled subscription payments and card tokenization for WooCommerce Subscriptions in Credit Card and Apple Pay gateways.

= v8.0.0 =
*   **BREAKING CHANGE:** Completely redesigned Admin Settings Dashboard. All settings are now unified under "Moyasar Payments".
*   **Feature:** Added "Quick Buy (Beta)" button on product pages for instant checkout with credit cards.
*   **Feature:** Added "Instant Checkout" button on product pages for Apple Pay.
*   **Improved:** General UI/UX improvements across the payment forms.
*   **Feature:** Subscription for Card payment and Applepay
*   **Feature:** Save card option for future use



= v7.3.6 =
- Fixed: Explicitly import sprintf from wp.i18n

= v7.3.5 =
- Fixed: Duplicate issue when applying a coupon to an order.

= v7.3.4 =
- Fixed: Applepay gets the price from  WC()->cart->get_totals()['total'] function
- Feature: Add moyasar logos

= v7.3.3 =
- Fixed: trigger WC()->cart->calculate_totals when applying a coupon to ensure accurate totals

= v7.3.2 =
- Features: Apple Pay: Support Apple Pay on the web.
- Fixes: UI: Fixed credit card icons layout on small devices to prevent overflow/misalignment.

= v7.3.1 =
- Fixed: 3-D Secure modal watcher now handles stores that redirect `/checkout_mysr` to `/`. It no longer relies on an exact path match, preventing the modal from hanging.

= v7.3.0 =
- Feature: (Subscription) - Beta - Implemented Subscription function in Credit Card method. Always save the token in the database (after payment and in general).
- Fixed :(Coupon) - Reworked tryApplyCouponToOrder to add the product instead of previous behavior.

= v7.2.3 =
- Fixed: localization issues

= v7.2.2 =
- Fixed: (Blocks) Credit Card form not displaying correctly
- Fixed: submit button localization
- Improved: Samsung Pay logs

= v7.2.1 =
- Fixed: Missing Files

= v7.2.0 =
- Added: Support for Samsung Pay as a payment method.
- Added: Display of the payment amount and SAR currency on the payment button.
- Improved: General performance and stability enhancements.

= v7.1.15 =
- Fixed: Resolved an issue when applying a coupon code if the tax is included.

= v7.1.14 =
- Added: Compatibility with Cloudflare Rocket Loader by ignoring specific Apple Pay JavaScript.

= v7.1.13 =
- Fixed: Prevented multiple requests from being sent to fetch new order details in the Order class.
- Improved: Enabled direct redirection when 3D Secure (3DS) is not required.

= v7.1.12 =
- Fixed: Removed the unregisterForm method from the moyasarApplePayClassic class to address issues affecting Credit Card functionality.

= v7.1.11 =
- Added: Support for data-cfasync="false" attributes on script tags to ensure compatibility with Cloudflare Rocket Loader.

= v7.1.10 =
- General Fixes: Minor stability and compatibility improvements.

= v7.1.9 =
- Fixed: Resolved coupon code conflicts (Moyasar & Wordpress) that interfered with the checkout process.

= v7.1.8 =
- Fixed (i18n): Addressed STC Pay localization issues.

= v7.1.7 =
- Fixed: Prevented orders from being updated twice, ensuring accurate order management.

= v7.1.6 =
- Code Quality: Added more inline documentation for better developer understanding.

= v7.1.5 =
- Improvements: General enhancements for stability and performance.

= v7.1.4 =
- Fixed: Resolved conflicts with other plugins.

= v7.1.3 =
- General Fixes: Addressed various WordPress-specific issues and refinements.

= v7.1.2 =
- Fixed: Corrected JavaScript errors that occurred in certain checkout scenarios.

= v7.1.1 =
- Fixed: Addressed JavaScript issues affecting front-end interactions.
- Fixed: Resolved a refund-related issue for more reliable payment handling.

= v7.1.0 =
- Added: Popup modal for 3D Secure (3DS) in Classic mode, enhancing user experience during authentication.
- Fixed: Issues with creating the webhook secret key.
- Fixed: Card name placeholder now displays correctly.
- Fixed: Resolved conflicts with other plugins to maintain compatibility.
- Fixed: Addressed various Apple Pay popup issues to ensure a smoother checkout process.

= v7.0.0 =
- Feature: Implemented built-in payment forms for Credit Card, Apple Pay, and STC Pay.
- Compatibility: Introduced support for both Classic and Block editor environments.
- Blocks: Developed using React.js for a modern, dynamic user interface.
- Classic: Implemented native code for backward compatibility and performance.
