=== Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported) ===
Contributors: codemenschen
Tags: gift cards, gift certificates, gift voucher, premium vouchers, generate gift cards
Requires at least: 4.0
Tested up to: 6.9.4
Stable tag: 4.6.6
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Let your customers buy gift cards/certificates for your services & products directly on your website.

== Description ==

Are you looking for creating and selling unlimited gift vouchers on your WordPress/WooCommerce powered website? Then, your search ends here!

We bring you our top-notch product and an excellent customizable WordPress plugin that will cater to all your needs.

The Gift Cards by **CodeMenschen** is a multi-supported (Woocommerce and WordPress) plugin and a perfect solution for generating and selling gift cards.  Be it a product, service or experience, your gift cards/gift packages can include a variety of things.
From rewards & promotions to fitness packages & event tickets, spread happiness across your customers and gift them the love they deserve from their loved ones.

Any merchant whose website is powered by WordPress can use this plugin.

We have made the process of creating basic vouchers for events like birthdays, anniversaries, new years, Valentine’s Day, etc extremely simple. This plugin not only reduces manual efforts but also saves you a lot of time. All you need to do is select a template of your choice from available options, set your logo or event image and you are DONE! Could it be any more simple?

Plugin Gift Cards by **CodeMenschen** is very easy to set up!
* One-click creation of the Gift Card product.
* Easily customizable to suit your needs.
* <a href="https://www.wp-giftcard.com/docs/documentation/video-guide/" target="_blank">checkout the video how it works.</a>

Now, this plugin is also WooCommerce compatible. So customers can redeem the vouchers in your WooCommerce store also.

<h3>Highlights</h3>
> **Read out the highlights and features to explore what’s more this plugin has in store for you.**
>
> * **ONE FOR ALL -** Allows customers to buy gift cards/vouchers much like any other product. Several customizable options: choosing card designs, assigning card values, writing personal messages in addition to offering regular product characteristics.
> * **BOOST YOUR BUSINESS -** Connects your online store with your on-the-ground business making life easier for your customers with great customer service.
> * **WooCommerce COMPATIBLE -** This plugin supports the WooCommerce store. Customers can check their voucher balance from ‘My Account’ and redeem the voucher/package from the checkout page. <a href="https://www.wp-giftcard.com/" target="_blank">Pro</a>
> * **GENERATE GIFT VOUCHERS -** Admin can create gift vouchers from backend. <a href="https://www.wp-giftcard.com/" target="_blank">Pro</a>
> * **BARCODE ON VOUCHERS -** Show Barcode on vouchers and redeem at store easily. <a href="https://www.wp-giftcard.com/" target="_blank">Pro</a>
> * **ADD COMMISSION -** Can charge an additional amount on every voucher order of customers. <a href="https://www.wp-giftcard.com/" target="_blank">Pro</a>
> * **EXPIRATION DATES -** Automatically set an expiration date according to your choice (fixed date or in days) based on the purchase date.
> * **BALANCE ADJUSTMENTS -** Perform balance adjustments in the admin area. <a href="https://www.wp-giftcard.com/" target="_blank">Pro</a>
> * **CHECK BALANCE PAGE -** A shortcode to let customers check their gift card balances. <a href="https://www.wp-giftcard.com/" target="_blank">Pro</a>
> * **SAFER REDEMPTION -** Convenient and secured modes for purchasing & payments. Proven valid and authentic gift cards (with coupon codes)that deliver your product or service on a later date at a physical location.
> * **TRACKING -** Powerful reporting and tracking features enable you to track the purchased voucher codes. Once the gift card is purchased, its further use can be tracked by the administrator through the unique gift card codes.
> * **EASY DESIGNING -** Design templates for different themes as ‘Birthday’, ‘New Year’, ‘Valentine’s day’, ‘Independence day’ etc.
> * **POSTAL DELIVERY -** You can accept postal orders for your gift cards. If you want, you can turn on the ability for your customers to buy your own printed gift cards/certificates. So you can send gift cards via post basis directly to the recipient.
> * **INSPIRATIONAL QUOTES -** Enhance your gift cards with meaningful quotes! The plugin now includes a collection of inspirational quotes that customers can easily add to their personal messages. This feature provides suggested quotes for various occasions, making gift cards more thoughtful and personal.

**Voucher Booking Forms**
This plugin provides two types of voucher booking forms. They are,
* **<a href="https://www.wp-giftcard.com/gift-items/">Fixed Value Vouchers</a>:** Administrators can provide their customers with a certain set of fixed priced gift items.
* **<a href="https://www.wp-giftcard.com/gift-voucher/">Custom Priced Vouchers</a>:**  Price of the vouchers can be defined as per one’s requirement.

<h3><a href="https://www.wp-giftcard.com/docs/documentation/video-guide/" target="_blank">checkout the video how it works</a></h3>

= Main Plugin Features =

**Front end:**

* Create and design templates with your own logo as per the occasions or fests.
* Customers can pick from a variety of templates uploaded by the admin and can sort by events (Anniversaries, Birthdays, Valentine’s day, Weddings, etc.)
* Redeem gift cards from the WooCommerce Checkout page.
* Customers can view coupon balance.
* Admins can create fixed price gift items for different services and products for their customers.
* Customers can preview their Gift Card on their booking page.
* Purchased gift card/voucher is sent to the recipient’s email address.
* Add messages to be printed on the PDF  gift card/voucher.
* Access to inspirational quote suggestions to enhance personal messages on gift cards.
* Redeem gift cards/vouchers using unique auto-generated coupon codes.
* Multiple payment gateway integrations available such as Stripe, PayPal, Sofort Pay, and Bank Transfer.
* Invoice based payment solutions i.e. your customers can directly pay to your bank account after purchasing the voucher
* Provides 3 varieties for voucher styles in PDF formats (See Demo)
* Set voucher expiry as fixed dates or number of days
* Remove Expiry date from vouchers
* Hide Price from vouchers
* Send customer receipt after successful order placement.

**Backend:**

* View all gift orders.
* Track the status of all gift cards/vouchers such as usage or payment status.
* Add edit/delete/view options to your voucher/card templates and gift items.
* View details of each gift card such as full amount, credit left, associated gift-card order, orders on which it has been applied and the total spend it generated.
* Create unlimited gift categories.
* Generate Gift Vouchers from admin.
* Export all orders from order page.
* Admin can set options like sender name, email, company name along with company details on templates from plugin settings.
* Manage and customize inspirational quotes collection for customer use in personal messages.
* Admin can customize email templates both for itself and its customers.
* Admin can also enable the postal delivery options for its customers.
* Customers can view a list of their gift cards used so far, the order in which they have been used and the available credit left.

= <a href="https://www.wp-giftcard.com/">PREMIUM FEATURES of Gift cards Plugin</a> =
* Customize the template vouchers.
* Printable barcode feature on vouchers.
* Additional charges feature on each voucher order.
* Custom value redemption feature from the backend.
* Check the voucher balance page on the backend.
* Stripe with SCA-ready & Ideal Payment Option, PayPal (Express checkout), MultiSafepay and Sofort Payment Gateway Integration and  Bank Transfer.
* Generate Invoice for each voucher order.
* 1-year support with updates included (Get 35% off on renewal license)
* 100% Satisfaction Guarantee (14 days refund if found unsatisfactory)

= Premium Live Demos =

Want to discover all plugin features? Try it out in just a single click.

For an easy and simple understanding of our plugin, click the links below for quick demos -

– **[Gift Cards Demo](https://www.wp-giftcard.com/demo/)**

Copy this shortcode and paste it where you want the gift voucher form to appear; `[wpgv_giftvoucher]`

– **[Gift Items/Packages Demo](https://www.wp-giftcard.com/gift-items/)**

- **Old version 3.x.x and lower versions please use shortcode:**
    Copy this shortcode and paste it where you want the gift item/package form appears; `[wpgv_giftitems]`
    Copy this shortcode and paste it where you want to display single gift item/package; `[wpgv_giftitems item_id=1]`
    Copy this shortcode and paste it where you want to display Category wise gift item/packages; `[wpgv_giftitems item_cat_id=1]`

- **New version 4.0.0 for new style, please use shortcode:**
    Copy this shortcode and paste it where you want the gift item/package form appears; `[wpgv_giftcard]`
    Copy this shortcode and paste it where you want to display single gift item/package; `[wpgv_giftcard item_id=1]`
    Copy this shortcode and paste it where you want to display Category wise gift item/packages; `[wpgv_giftcard item_cat_id=1]`


By accessing our testing platform, you will be able to discover all plugin features and test them as per your preference in front-end mode.

For more information about the PREMIUM version of Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported), visit the official page on **[wp-giftcard.com](https://www.wp-giftcard.com/ "Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported) Plugin")**

= This plugin is already translated in Czech (Czech Republic), Danish, Deutsch, French, Hindi, Spanish and Swedish Languages =

If you help us in translating this plugin in your language, It would be very helpful for us.
You can translate this plugin by clicking on the link [here](https://translate.wordpress.org/projects/wp-plugins/gift-voucher/dev "Gift Cards Plugin").

== Installation ==
1. Unzip the downloaded zip file.
2. Upload the plugin folder into the wp-content/plugins/ directory of your WordPress site.
3. Activate 'Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported)' from the Plugins page.

== Frequently Asked Questions ==
= Installation instructions
1. Unzip the downloaded plugin zip file.
2. Upload the plugin folder into the wp-content/plugins/ directory of your WordPress site.
3. Activate 'Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported)' from the plugins page.

**CONFIGURATION**
Gift Cards will add a new tab called ‘Settings’ in ‘Gift Vouchers’ menu item. There you will find quick access to the plugin settings page.

= Can I share the gift card?

It can be shared with the recipient’s email address in PDF format

= Is multiple website licensing available for the premium version?

We provide two kinds of licensing
* <a href="https://www.wp-giftcard.com/">Single website licensing</a> at $49
* <a href="https://www.wp-giftcard.com/">Unlimited website licensing</a> at $79
* <a href="https://www.wp-giftcard.com/">Lifetime & Unlimited websites licensing</a> at $99

= Which format will be used in coupon codes?

The plugin will auto-generate a 16 digit unique code and it will be sent as a pdf format to the recipient’s billing email address.

= Can the voucher be sent as a postal delivery?

Yes, this plugin provides a postal delivery option.

= Can I customize the email that is sent?

Yes, admin can customize the email template for customers and himself.

= What happens if the customers spend less than the total voucher value?

Customers can view the voucher balance from ‘ My accounts” page and use the remaining amount later on.

= How do we receive voucher codes?

The voucher codes are sent on the recipient’s email address.

= Does it work with Multisite WordPress Environment?

Yes, This plugin will work.

= Will data delete after deactivating the plugin?

No data will delete on plugin deactivation.

= Can I install the pro plugin if free plugin already installed?

No, First you have to deactivate the free plugin then install the pro plugin. No data will delete on deactivation of the plugin.

= How to translate or change strings of the plugins?

There are two ways to fill up translations:
* Using Loco Translate plugin
* Using the PoEdit platform

= Can customers add inspirational quotes to their gift cards?

Yes, the plugin now includes a collection of inspirational quotes that customers can easily select and add to their personal messages when creating gift cards. This feature helps make gift cards more meaningful and personal for special occasions.

== Documentation ==
Please, read the [official documentation of Gift Cards (Gift Cards and Packages)](https://www.wp-giftcard.com/docs/documentation/ "Documentation of Gift Cards") to learn more about all plugin features.

== Suggestions ==

If you have suggestions about how to improve Gift Cards plugin, you can [write to us](https://wp-sofa.chat/ "Codemenschen").

== Screenshots ==
1. Gift Voucher Form Step 1
2. Gift Voucher Form Step 2
3. Gift Voucher Form Step 3
4. Gift Voucher Form Step 4
5. Gift Items Form Step 1
6. Gift Items Form Step 2
7. Gift Items Form Step 3
8. Plugin Settings Page
9. All Voucher Orders
10. WooCommerce Checkout
11. WooCommerce Order Page
12. Check Voucher Balance

== Changelog ==

= Version 4.6.6 - Released: April 15, 2026 =
* Fix: Resolve Plugin Check i18n error `WordPress.WP.I18n.NonSingularStringLiteralText` in modern PDF admin regeneration by removing dynamic strings from translation calls and using sanitized JSON labels.
* Fix: Prevent admin warning `Attempt to read property "image_style" on null` in voucher details with null-safe template/image handling (compatible with WordPress 6.9.4 and PHP > 8.2.0).
* Security/Standards: Add missing direct file access protection (`if ( ! defined( 'ABSPATH' ) ) { exit; }`) to all flagged plugin files in `include/`, `languages/`, `library/fpdf/`, and `library/tfpdf/`.
* Fix: Resolve Stripe Payment Success Page deprecated notices on WordPress 6.9.4 and PHP > 8.2.0 by applying compatibility updates in bundled `vendor/stripe/stripe-php` sources.
* Update: Upgrade PayPal SDK dependencies to `paypal/paypal-checkout-sdk` 1.0.2 and `paypal/paypalhttp` 1.0.1 (composer metadata/lock refreshed).
* Fix: Resolve PayPal success-page deprecated warning `Creation of dynamic property ...::$curlCls` on PHP > 8.2.0 by declaring `curlCls` in `vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php`.

= Version 4.6.5 - Released: March 24, 2026 =
* Feature: Add admin PDF regeneration support in Free plugin for both modern (Konva) and standard (style1) vouchers.
* fix: address deprecated warnings in gift-voucher admin menu (View Voucher Details) while keeping view-detail action functional on WP 6.9.4.

= Version 4.6.4 - Released: February 05, 2026 =
* Fix: Prevent WooCommerce email preview fatal. Ensure payment-complete filter returns original status for empty $order_id and validate WC_Order before calling methods to avoid preview crashes. (Files: include/redeem-voucher.php)
* Fix: Do not force Stripe-paid orders to 'processing' for digital/download-only orders. Only set 'processing' when incoming status is 'completed' and the order requires shipping. (Files: include/redeem-voucher.php)
* Fix/Improvement: Add diagnostics and robustness for Stripe order status and email handling — added temporary logs (WPGV_STATUS_DEBUG, wpgv_log_order_status_change), input guards and fallback for admin mail helper to prevent undefined function errors and PHP warnings. (Files: include/redeem-voucher.php, classes/wpgv-gift-voucher-cart-process.php, gift-voucher.php)
* Fix: Load plugin translations on `init` and defer plugin file includes to prevent WordPress 6.7+ `_load_textdomain_just_in_time` notice. (Files: gift-voucher.php, admin.php, front.php)
* Fix: Ensure post types/taxonomies are registered immediately if `voucher_posttype.php` is included late to avoid "Invalid post type." in admin. (Files: gift-voucher.php, include/voucher_posttype.php)
* Fix: Remove unnecessary `wpdb->prepare()` usage without placeholders to prevent `wpdb::prepare()` notices. (Files: classes/template.php)
* Fix: Add missing `_wpgv_nonce` hidden input to the Gift Voucher product tab so product updates without price no longer trigger "Invalid request." (Files: include/wpgv-product-settings.php, admin/wpgv-gift-voucher-admin.php)
* Fix: Avoid warnings in `[wpgv_giftcard]` shortcode when taxonomy terms are returned as arrays; handle both term objects and arrays and escape output. (Files: giftcard.php)

= Version 4.6.3 - Released: January 02, 2026 =
* Fix: Secure database query in `classes/voucher.php::record_count()` by building the full SQL and using `$wpdb->prepare()` with bound parameters to avoid unescaped DB parameters.
* Fix: Add direct file access protection to `templates/wpgv_item_pdf.php`, `templates/wpgv_voucher_pdf.php`, and `templates/pdfstyles/receipt.php`, `templates/pdfstyles/style1.php`, `templates/pdfstyles/style2.php`, `templates/pdfstyles/style3.php` by checking `if ( ! defined( 'ABSPATH' ) ) exit;` to prevent direct access.

= Version 4.6.2 - Released: December 06, 2025 =
* Improvement: Unicode and special character support improved for all user input fields and currency symbols in PDF exports and admin UI.
* Fix: Currency symbols (€, £, Kč, ₱, ¥, etc.) now display correctly in voucher PDFs and admin voucher lists regardless of language or encoding.
* Improvement: Added transliteration and symbol mapping for unsupported Unicode characters in FPDF output.
* Update: All PDF templates now use `wpgv_text_to_pdf_safe()` for safe text rendering.
* Fix: Voucher Value in admin list now respects the currency symbol set in plugin settings.
* Update: Updated documentation and code comments for currency and encoding handling.

= Version 4.6.1 - Released: December 05, 2025 =
* Fix: Escape supported-formats output in `include/voucher_metabox.php` so translatable text is escaped at output and the WordPress.Security.EscapeOutput.OutputNotEscaped warning is resolved.
* Fix: Escape translatable output and UI strings in voucher_settings.php (replaced raw __() usage with esc_html__() where appropriate and ensured submit_button text is escaped) to satisfy WP output-escaping guidance.
* Improvement: Restrict image upload for voucher templates to JPG and PNG only (admin side). Added client-side validation to block non-JPG/PNG files in the media selector and show an alert if an invalid file is chosen. Updated UI note to clarify supported formats.

= Version 4.6.0 - Released: November 24, 2025 =
* Fix: Personal Message and user input fields now support emoji and special characters in PDF exports.
* Improvement: Removed iconv conversion in `wpgv_em()` to preserve UTF-8 input.
* Improvement: Added `wpgv_text_to_pdf_safe()` to safely handle user text for PDF output, stripping or replacing unsupported characters where necessary for FPDF.
* Update: Replaced `wpgv_em()` with `wpgv_text_to_pdf_safe()` for user input fields (Personal Message, Your Name, Recipient Name, Email) in all PDF templates.
* Fix: Prevent saving unsupported image types for voucher "Image - Style". The admin-side meta now validates images and only accepts JPG/JPEG and PNG; unsupported selections are cleared on save.
* Fix: Admin notice added to inform the user when an unsupported image format (e.g. WEBP, SVG) was selected and not saved.
* Improvement: Added client-side validation to the Item Details media selector to block non-JPG/PNG files at selection time (improves UX and prevents ambiguous preview errors).
* Update: Item Details labels now include a short note: "Supported formats: JPG, PNG only." to guide administrators.
* Fix: Prevent duplicate orders by disabling the Pay Now button and all controls inside `#voucher-multistep-form` during submission; controls are re-enabled only on AJAX error.
* Improvement: Added client-side guard to ignore repeated clicks on Pay Now to avoid multiple order creation. Files changed: `assets/js/voucher-script.js`

= Version 4.5.9 - Released: November 12, 2025 =
* Fix: The plugin generated 192 characters of unexpected output during activation. If you notice "headers already sent" messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

= Version 4.5.8 - Released: October 08, 2025 =
* Feature: Add Quotes suggestions for Personal Message (frontend & backend).

= Version 4.5.7 - Released: September 08 2025
* Fix: Replace strip_tags() with wp_strip_all_tags() in wpgv_price_format() function for WordPress coding standards compliance

= Version 4.5.6 - Released: July 21 2025
* Feature: Merge Gift Card input into WooCommerce coupon field

= Version 4.5.5 - Released: June 05 2025
* Feature: Added number format selection option (comma or dot separated).
* Fix unexpected output during plugin activation warning.
* Fix invalid argument supplied for foreach() warning in class-nag.php on line 108.
* Change "personalize" to "personalise" for English (UK) localization.

= Version 4.5.4 - Released: May 23 2025
* Add nonce verification to form processing for security.
* Escape translatable output properly.
* Add __("Search", 'gift-voucher') for translation support

= Version 4.5.3 - Released: May 05 2025
* Fix incorrect usage of esc_html_ in submit button templates.
* Improve security with nonce validation for preview-related actions.
* Sanitize and validate user input parameters for voucher

= Version 4.5.2 - Released: March 27 2025
* Fix undefined function error for esc_html_ in new voucher template
* Fix issue where portrait (vertical) gift card templates were not displaying correctly

= Version 4.5.1 - Released: March 19 2025
* Fixed "Invalid request" error when the admin clicks the "Send Mail" button in the voucher area.
* Fixed the display issue of the "Remaining Balance" on the checkout page when a user applies a voucher.

= Version 4.5.0 - Released: February 26 2025
* Addressed a security vulnerability (CVE-2024-13520) by adding proper capability checks and nonce verification for voucher price, date, and note update functions.
* Updated the following files to ensure secure database interactions:
  - `wpgv-gift-voucher-cart-process.php` (Lines: 444-446, 473)
  - `voucher.php` (Lines: 171, 178, 203, 210-212)
  - `admin.php` (Lines: 123, 141)

= Version 4.4.9 - Released: January 15 2025
* Fixed the search functionality on the Gift Voucher Orders page.

= Version 4.4.8 - Released: December 02 2024
* Feature: Purchase gift cards through the WooCommerce payment gateway

= Version 4.4.7 - Released: November 12 2024
* Improved usage of `esc_html__` and `esc_html_e` functions across plugin files for better security and translation handling.
* Fixed an issue where HTML in the gift voucher deduction display was incorrectly shown as a string in the WooCommerce cart.

= Version 4.4.6 - Released: November 09 2024
* Fixed an issue where the plugin generated 2 characters of unexpected output during activation.

= Version 4.4.5 - Released: November 1 2024
* Fixed a security vulnerability related to Stored Cross-Site Scripting via SVG file uploads.

= Version 4.4.4 - Released: July 26, 2024 =
* Fix: PDF preview display issue.
* Fix: Improved code security enforcement in link URL

= Version 4.4.3 - Released: July 17, 2024 =
* Fix plugin issue generating unexpected output of 2 characters.

= Version 4.4.2 - Released: July 12, 2024 =
* Fix for data sanitization.

= Version 4.4.1 - Released: March 11, 2024 =
* Fix for CSRF Vulnerability and Data Sanitization.

= Version 4.4.0 - Released: February 28, 2024 =
* Fix HTML content saving issue in success page message and  order cancellation message page.

= Version 4.3.9 - Released: January 26, 2024 =
* Fix redirect bug on Bank Transfer payment method.

= Version 4.3.8 - Released: January 12, 2024 =
* Optimize the notification when users enter incorrect payment information (PayPal, Stripe).

= Version 4.3.7 - Released: December 19, 2023 =
* Fix the issue of sending duplicate emails after successful payment.

= Version 4.3.6 - Released: July 07, 2023 =
* Fixed a security vulnerability related to nonce verification.
* Replaced unsafe usage of wp_verify_nonce() with check_admin_referer() for improved security.

= Version 4.3.5 - Released: May 17, 2023 =
* Fix order display bug in backend

= Version 4.3.4 - Released: April 21, 2023 =
* Fix error $item_id_sanitize is not declared in giftitems.php

= Version 4.3.3 - Released: April 13, 2023 =
* Fix the display error of the Shipping method.
* Fix SQL Injection vulnerability.

= Version 4.3.2 - Released: April 05, 2023 =
* Fix SQL Injection vulnerability.

= Version 4.3.1 - Released: February 28, 2023 =
* Fix error payment of Stripe
* Update link support

= Version 4.3.0 - Released: January 19, 2023 =
* Fix error of sending the recipient's mail

= Version 4.2.9 - Released: January 17, 2023 =
* Fixed error not display information when using payment method Bank Transfer

= Version 4.2.8 - Released: January 06, 2023 =
* Change from_name to to_name in email body

= Version 4.2.7 - Released: January 03, 2023 =
* Fix payment error on gift items page

= Version 4.2.6 - Released: December 30, 2022 =
* Fix receipts not automatically sent in email

= Version 4.2.5 - Released: December 21, 2022 =
* Fix error plugin does not escape the parameter

= Version 4.2.4 - Released: November 29, 2022 =
* Change currency formatting in Gift Items page.

= Version 4.2.3 - Released: November 07, 2022 =
* Fixed currency error of  Stripe payment method..

= Version 4.2.2 - Released: October 31, 2022 =
* Fixed Stripe payment method issue.

= Version 4.2.1 - Released: July 07, 2022 =
* Fix the text in setting Email was not saved

= Version 4.2.0 - Released: May 25, 2022 =
* Fix create plugin's default pages on settings page

= Version 4.1.9 - Released: April 07, 2022 =
* Fix get title Gift Item
* Fix get value price Gift Item
* Fix syntax error on file voucher_metabox.php

= Version 4.1.8 - Released: March 09, 2022 =
* Fix $template_id variable not being escaped.
* Description: To escape the variable, we are use $wpdb->prepare which ensures only the intended query is made and returned.

= Version 4.1.7 - Released: February 22, 2022 =
* Update v2 Payments API - PayPal.

= Version 4.1.6 - Released: February 15, 2022 =
* Fix "Send Direct Mail" function with payment method-Bank Transfer

= Version 4.1.5 - Released: October 06, 2021 =
* Fix spelling mistake on templates Giftcard

= Version 4.1.4 - Released: August 30, 2021 =
* Fix "Hide price from Items" option
* Fix the translate language feature

= Version 4.1.3 - Released: July 13, 2021 =
* Fix "Buy for" option (Yourself and Others)
* Fix color settings
* Fix coupon minimum and maximum value settings for new models
* Fix the PDF file on the message is blurred

= Version 4.1.2 - Released: February 25, 2021 =
* Fix error calculate order when add voucher code
* Fix bug order status when payment stripe

= Version 4.1.1 - Released: February 02, 2021 =
* Fix small bug

= Version 4.1.0 - Released: January 18, 2021 =
*  Update security
*  Code optimization

= Version 4.0.0 - Released: January 16, 2021 =
*  Update new interface
*  Add new templates
*  Code optimization

= Version 3.3.10 - Released: August 21, 2020 =
* Added different settings for Gift Voucher and Gift Items
* Added mail send option through Admin
* Added sorting option for Gift Items
* Added New shortcode to show single Gift Item
* Added New shortcode to show Gift Items by Category
* Added different color option for Voucher and Form
* Added check balance page in the pro version
* Added Stripe Ideal payment option in the pro version
* Added settings to remove first step from Gift voucher form in the pro version
* Fixed Receipt wrong price error
* Fixed PayPal Success page error
* Fixed Special Price issue on Gift Items
* Fixed Invalid notice issue on Debug Logs
* Fixed Expiry date code issue from backend
* Fixed style 3 barcode issue on pro version

= Version 3.3.9.1 - Released: January 11, 2020 =
* Fixed the PayPal amount capturing
* Fixed Backend voucher adding value issue
* Fixed bootstrap overwriting issue on the frontend
* Fixed the translations for some strings
* Updated all language translations

= Version 3.3.9 - Released: December 24, 2019 =
* Added MultiSafepay in the pro version
* Added total payable amount in backend order page
* Updated code to save transaction number instead of PaymentId
* Fixed Sofort Payment issue
* Fixed PayPal transaction ID issue
* Fixed the voucher and receipt pdf view on the backend
* Fixed the issue in backend voucher creation
* Fixed issue in calculation with additional charges

= Version 3.3.8 - Released: November 20, 2019 =
* Added Feature to generate gift voucher from admin in the pro version
* Added Export orders feature in the pro version
* Added feature to a schedule gift voucher for send
* Generating demo item and category with default pages
* Fixed partial redeem issue on the backend order page

= Version 3.3.7 - Released: November 14, 2019 =
* Fixed major issue of Gift Voucher form on iOS devices
* Updated Currency sign encoding to UTF-8
* Fixed PHP warning on the gift items page

= Version 3.3.6 - Released: October 18, 2019 =
* Remove the limits from the free version
* Remove the message issue after 20 orders
* Added message doc to PayPal Live Client ID field

= Version 3.3.5 - Released: October 16, 2019 =
* Fixed no data show in pdf issue

= Version 3.3.4 - Released: October 10, 2019 =
* Added website additional charges feature
* Updated Sofort Payment Gateway
* Updated admin menu position and URLs
* Updated all language translations
* Updated Screenshots

= Version 3.3.3 - Released: October 07, 2019 =
* Fixed barcode issue on enabling/disable
* Fixed Add new template menu on admin

= Version 3.3.2 - Released: September 30, 2019 =
* Added Barcode features in the premium version
* Added custom value redeem from backend feature
* Added Check voucher balance page on backend
* Added button is settings page to create plugin's default pages
* Fixed auto-created pages issue on plugin activation
* Fixed same email issue on both forms
* Fixed mark as used issue on the backend
* Fixed responsive issue for style2 and style3
* Fixed price position issue on frontend and backend
* Updated all language translations

= Version 3.3.1 - Released: September 27, 2019 =
* Updated Stripe Payment Process
* Stripe with SCA-ready
* Updated PayPal Checkout
* Stored session and transaction keys in database
* Compatible with latest WordPress 5.2.3 version
* Fixed Mark as used issue with WooCommerce
* Fixed price format issue on both forms
* Fixed no expiry voucher issue

= Version 3.3.0 - Released: May 22, 2019 =
* Compatible with latest WordPress 5.2.1 version
* Fixed decimal amount issue in gift items form
* Fixed issues on the success order page
* Fixed issues for PDF not found
* Updated all language translations

= Version 3.2.9 - Released: April 10, 2019 =
* Fixed issues on the success order page
* Fixed issues for PDF not found
* Updated all language translations

= Version 3.2.8 - Released: April 09, 2019 =
* Added customer receipt feature
* Added feature to add custom stripe text
* Fixed security issues on the success order page
* Updated all language translations

= Version 3.2.7 - Released: April 09, 2019 =
* Added customer receipt feature
* Added feature to add custom stripe text
* Fixed security issues on the success order page
* Updated all language translations

= Version 3.2.6 - Released: March 27, 2019 =
* Fixed PDF message box issue
* Fixed headers already sent the issue
* Added three new languages translation
* Updated all language translations

= Version 3.2.5 – Released: March 06, 2019 =
* Compatible with latest WordPress version
* Fixed scrolling issue with some themes
* Updated language translations

= Version 3.2.4 - Released: February 18, 2019 =
* Added hide price option
* Added no expiry option
* Added custom date formats for expiry date
* Added option to remove someone else/yourself tabs
* Added gift voucher redeem form in cart page
* Fixed redeem voucher multiple issues
* Fixed stripe payment card errors
* Fixed other small bugs
* Updated language translations

= Version 3.2.3 - Released: January 03, 2019 =
* Changed readme details
* Updated website design and URL’s

= Version 3.2.2 - Released: December 24, 2018 =
* Fixed timezone problem in voucher order time
* Fixed timezone problem in template added time
* Plugin update issue fixed

= Version 3.2.1 - Released: December 19, 2018 =
* Fixed special character issues in items page
* Fixed message limit in gift items form
* Fixed stripe payment gateway problem

= Version 3.2.0 - Released: December 17, 2018 =
* Fixed PayPal issues
* Fixed twice mail sending issue
* Fixed WooCommerce double priced discount issue
* Added translations for Czech, Spanish and Dutch

= Version 3.1.5 - Released: November 12, 2018 =
* Added terms and condition in gift items form
* Fixed message line issue in pdf vouchers
* Fixed multiple choose styling option for customers
* Fixed payment gateway issue
* Updated all language fixed

= Version 3.1.4 - Released: October 22, 2018 =
* Added plugin license activation system
* Added multiple chosen styling option for customers
* Fixed mail sending problem
* Fixed PayPal email issue
* Updated all language fixed

= Version 3.1.3 - Released: October 17, 2018 =
* Fixed New Template Page
* Fixed order details page
* Fixed backend view order page
* Fixed order success page mail issue

= Version 3.1.2 - Released: October 13, 2018 =
* Fixed New Template Page
* Fixed New Gift Item Page
* Fixed all plugin shortcodes print issue
* Fixed email sending issues

= Version 3.1.1 - Released: October 10, 2018 =
* Fixed settings saving issue
* Fixed other bugs

= Version 3.1.0 - Released: October 07, 2018 =
* Added new feature in Gift Voucher booking form
* Added new feature in Gift Items booking form
* Added new feature for customization of voucher
* Fixed mail sending issue
* Fixed PayPal issue
* Fixed Stripe issue
* Fixed other bugs

= Version 3.0.1 - Released: September 28, 2018 =
* Compatible with WooCommerce
* Added option for pdf footer URL and email
* Added option for demo image
* Added option for success and order cancellation page message
* Added option for disabling preview button
* Fixed other bugs

= Version 2.0.3 - Released: September 22, 2018 =
* Compatible with Multisite WP Environment
* Fixed small bugs

= Version 2.0.2 - Released: August 28, 2018 =
* Fixed email sending problem
* Fixed plugin settings page
* Fixed other bugs

= Version 2.0.1 - Released: July 30, 2018 =
* Added Gift Item creating a feature

= Version 1.0.7 - Released: July 10, 2018 =
* Added options for email subject and body
* Added Swedish translation
* Fixed All Language translation
* Fixed some bugs

= Version 1.0.6 - Released: July 03, 2018 =
* Added Stripe Payment Gateway
* Added Danish and French translation
* Fixed Deutsch Language translation
* Fixed some bugs
* Updated voucher-script.js file

= Version 1.0.5 - Released: May 30, 2018 =
* Added French translations
* Fixed Deutsch and Hindi translations
* Updated voucher-script.js file

= Version 1.0.4 - Released: May 28, 2018 =
* Fixed Deutsch Language translation
* Fixed some bugs

= Version 1.0.3 - Released: May 25, 2018 =
* Added textual changes
* Added default error message
* Upgrading Some styles
* Fixing some bugs

= Version 1.0.2 - Released: May 15, 2018 =
* Added Voucher max value setting
* Added voucher expiry type as the fixed date
* Replaced voucher default title to template title
* Updated voucher preview
* Updated wordpress-gift-voucher.php

= Version 1.0.1 - Released: April 26, 2018 =
* Updated wordpress-gift-voucher.php
* Updated front.php
* Fixed 'Note' text problem on voucher order

= Version 1.0.0 - Released: March 30, 2018 =
* Initial release
