=== Card To Card Gateway For EDD ===
author: mohammadr3z
Contributors: mohammadr3z
Tags: edd, gateway, payment, card-to-card, easy-digital-downloads
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.4.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add Card to Card payment gateway to Easy Digital Downloads

== Description ==

This plugin adds Card to Card payment functionality to Easy Digital Downloads. Customers can transfer money to a specified card number after purchase and submit their transaction details. Orders will be confirmed by the site administrator after review.

**Features:**
- Add Card to Card payment gateway to Easy Digital Downloads
- Allow customers to submit tracking and reference numbers
- Send order notifications to Telegram (optional)
- Display Card to Card information in order management
- Custom bank icon upload option for unlisted banks
- Display bank name in checkout form

== Installation ==

1. Download and extract the plugin.
2. Upload the `card-to-card-gateway-for-edd` folder to the `wp-content/plugins/` directory.
3. Activate the plugin through the WordPress dashboard.
4. Go to Downloads > Settings > Payment Gateways and configure the Card to Card settings.

== Frequently Asked Questions ==

= Does this plugin automatically confirm payments? =
No, payments must be reviewed and confirmed by the site administrator after being submitted by the customer.

= Can I send notifications to Telegram? =
Yes, you can enter your Telegram bot token and Chat ID in the plugin settings to send order notifications.

== Screenshots ==

1. Card to Card payment gateway interface
2. Plugin settings page with bank selection
3. Payment information in EDD orders page
4. Sample information sent to Telegram

== Changelog ==

= 1.4.0 =
* Added customizable instructions/notice field for the checkout form
* Implemented rich editor (WYSIWYG) support for the notice field
* Improved formatting: Preserves line breaks and HTML styling in the custom notice text
* Added fallback mechanism to show the default message if the field is left empty

= 1.3.7 =
* Added bank selection dropdown with 34 pre-loaded Iranian banks
* Added custom bank icon upload option for banks not in the list
* Added bank name display in checkout form
* Enhanced Telegram settings with better visual warning message
* Improved JavaScript for dynamic field toggling
* Better user experience with smart form field management
* Fixed Telegram fields toggle functionality
* Improved warning message styling with alert box design

= 1.3.6 =
* Improved mobile responsive design: Tracking code and reference number fields now stack vertically on mobile devices instead of appearing side by side
* CSS optimization: Removed all inline styles from PHP code and moved them to external CSS file for better performance
* Enhanced maintainability: Separated HTML structure from styling by creating dedicated CSS classes
* Improved code organization: Added structured CSS classes for all form elements (container, bank section, icons, buttons, inputs, labels)
* Better performance: Eliminated inline styles to reduce HTML size and improve page load times
* Enhanced mobile compatibility: Optimized responsive design with proper CSS media queries
* Cleaner codebase: Achieved complete separation of concerns between HTML and CSS

= 1.3.3 =
* Security improvements: Fixed potential XSS vulnerabilities with comprehensive output escaping
* Improved nonce verification order to prevent early access to $_GET
* Enhanced input validation and sanitization throughout the plugin
* All user inputs and outputs are now properly escaped using WordPress security functions
* Improved permission checks and error handling

= 1.3.2 =
* Comprehensive security improvements (input sanitization, validation, output escaping, Nonce security)
* Fixed inline script and style issues for improved performance and security

= 1.2 =
* Card number formatting with dashes

= 1.1 =
* Optimized settings in EDD

= 1.0 =
* Initial plugin release

== External Services ==

This plugin uses the Telegram Bot API to send store/admin notifications during order events in Easy Digital Downloads.

Data sent includes:
- Order total
- Order status
- Customer email (if available)

This data is sent when a new payment is completed or fails.

Service: Telegram Bot API  
Terms of Service: `https://telegram.org/tos`   
Privacy Policy: `https://telegram.org/privacy`