=== Total processing card payments for WooCommerce ===
Contributors: BuiltByGo
Tags: woocommerce gateway, payments, payment gateway, apple pay, open banking
Requires at least: 5.2.0
Tested up to: 6.8
Stable tag: 7.3
Requires PHP: 7.4
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Accept Credit Cards and Debit Cards on your WooCommerce store.

== Description ==

Take Payments via Total Processing's Payment Gateway.
Accept Payments with the aid of 300 acquiring connectors based globally via our Gateway infrastructure.
Access extended oversight and transaction monitoring via the Total Processing plug-in for WooCommerce with our bespoke, data rich merchant services and people-centric support resources.

'Pioneering Payments'

= PAYMENT METHODS =

Credit/Debit cards:

* VISA
* MasterCard
* American Express

= FEATURES =

* All Major Credit/Cebit Card brands accredited with the PCI DSS standard.
* Tokenisation and 'Remember Me' options at the check-out.
* One-click Payments.
* iFrame for PCI DSS Compliance.
* Payment in Modal popup (can turn on/off from settings)
* Tech and Customer Support for Full and Partial Payment Refunds.
* 24/7 Support from Teams based in the UK.
* Worldwide Support from our Connectors and Partners.
* Support for all Currencies and Alternative Payment Methods across 196 Countries.

== Installation ==

1. Install the Plug-in via Plug-ins -> New Plug-in (Search for 'Totalprocessing_Card_Payments_And_Gateway_Woocommerce').
2. You Will be redirected to setup wizard.
3. Enter your Credentials as provided by Total Processing (Default Entity ID and Access token) and configure any settings needed.
4. If you are using Test Credentials use the 'Test' endpoint, otherwise, if you have a live MID with us, use the 'Live' endpoint.

= How can I report security bugs? =

You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. [Report a security vulnerability.](https://patchstack.com/database/vdp/9e5fc232-9fb1-4c07-8243-fbc89d059383)

== Changelog ==

= 7.3 =

= Major Update - October 21, 2025 =

*New*

* _Transaction Log_: A dedicated payment gateway log has been added to the WooCommerce order details page, providing administrators with detailed transaction information for easier debugging and support. 

*Improved*

* _Refund Processing_: The integration for processing refunds directly from WooCommerce has been improved. This ensures more accurate and reliable communication with the payment gateway when a refund is initiated.
* _Transaction Verification_: The payment processing logic has been enhanced to more gracefully handle pending verification states. This significantly reduces instances of 'Uncertain Response' statuses and improves reliability.
* _Apple Pay Integration_: The plugin has been updated to align with Apple's latest payment processing requirements.

*Fixed*

* _Apple Pay Transaction ID_: The transaction ID for Apple Pay payments now correctly uses the standard WooCommerce Order ID. This reverts a recent change that used a proprietary ID (e.g., NP_...), ensuring consistency and simplifying order reconciliation.

*Removed*

* _Apple Pay Temporary Email_: In compliance with new requirements from Apple that enforce email validation, the functionality for Apple's temporary "Private Relay" emails has been removed.

= 7.2.2 =

= Enhanced Apple Pay Checkout Control =

* Introduced a new setting to enable or disable the Terms & Conditions checkbox validation for Apple Pay transactions.
* Added a dedicated settings field to customize the pop-up error message displayed when a user attempts payment without accepting the Terms & Conditions

= 7.2.1 =

= ApplePay Security Improvements =

* Added strict field validation on WooCommerce checkout.
* Prevents payment processing until all required fields (e.g., phone number, team) are validated.

= Fixes =

* Resolved field bypass vulnerability where payment could be initiated without checkout validation.
* Removed automatic order cancellations for incomplete/invalid transactions. 

= Technical Details =

* Updated validation in tp-gateway-loader.js (Form Validation Layer).
* Updated class-wc-tp-applepay-gateway.php in onPaymentAuthorized() (Order Processing Pipeline).
* Removed redundant Apple Pay loading.
* Removed unneccessary code blocks

= 7.2.0 =

* Improved Apple Pay Stability: Refactored code to resolve multiple bugs and ensure a smoother checkout experience. Issues resolved include duplicate and empty order creation, incorrect pricing due to discounts, and problems with automated upsells.
* Lottery Plugin Compatibility: Ensured Apple Pay compatibility with lottery plugins, allowing correct ticket generation.
* TeraWallet Integration: Resolved final amount bugs by improving Apple Pay compatibility with TeraWallet.
* Saved Card Token Removal via UI: Added the ability to manually remove a customer's saved cards directly from WordPress settings.

= 7.1.8 =

* Minor update to add Patchstack Vulnerability Disclosure Program information to Wordpress listing

= 7.1.7 =

= Terawallet Partial Payment Support for Apple Pay =

* Added compatibility with Apple Pay for Terawallet partial payments services.

= Enhanced Security =

* Strengthened overall plugin security with improved validation, sanitization, and secure coding practices across the plugin.

= Patchstack VDP Integration =

* Integrated with Patchstack's Vulnerability Disclosure Program (VDP).

= Tested with Latest Wordpress & Woocommerce =

* Tested up to Core 6.8 and Woo 9.8.

= 7.1.6 - Security Patch Release =

* Fixed a security vulnerability present since v7.1.3.
* Applied enhanced security measures to improve overall stability.
* Fixed Apple Pay compatibility with WooCommerce 'Pay for Order' alternate checkout flow.

= 7.1.5 - 05-02-2025 16:35 =

* Improved the Apple Pay block validation logic to ensure that compatibility checks are performed only when necessary, improving overall efficiency.

= 7.1.4 - 04-02-2025 18:20 =

* Apple Pay checkout restriction for guest users.
* Added the ability to restrict Apple Pay checkouts to logged-in customers only.

= 7.1.3 - 15-01-2025 21:10 =

* Applepay Registration flow correction

= 7.1.2 - 13-01-2025 22:10 =

* Enhanced compatibility with Apple Pay integration and discount code, with special focus on raffle tickets extensions

= 7.1.1 - 20-12-2024 15:20 =

* Resolved bugs connected to Apple Pay integration, connected to discounts/promotions & repeat transactions.

= 7.1.0 - 02-12-2024 09:05 =

* Addition of Applepay in to the main plugin
* Registration process refinement
* Applepay compatibility with HPOS and Woocommerce blocks

= 7.0.5 - 16-10-2024 14:04 =

* added missing js file

= 7.0.4 - 16-10-2024 11:40 =

* resolved conflict with Oxygen website builds and plugins payment flow
* optimised 3ds payment flow to account for varying 3ds servers

= 7.0.3 - 02-09-2024 18:25 =

* Bug fix to resolve double payments via the subscription solution

= 7.0.2 - 21-08-2024 19:25 =

* Recurring parameter adjustment

= 7.0.1 - 02-07-2024 15:45 =

* Bug Fix - excludeFramePostId() function has been tweaked, to avoid order IDs being erroneously included in query results

= 7.0.0 - 20-06-2024 19:48 =

* Added compatibility support for the latest WooCommerce version.
* Included detailed instructions for raising issues in the FAQs section.
* Improved design compatibility with WooCommerce block features.
* Implemented compatibility fixes for HPOS.
* Enhanced the log system to save logs when an iframe loads.
* Improved error handling during final transaction validation.
* Fixed a query hook that was causing issues.
* Updated the FAQs section to display sub-items without affecting the main items.
* Added styling to display a loader in WooCommerce block features.

= 6.0.3 - 16-02-2024 19:48 =

* Bug Fix - Issue with Terms & Conditions field causing problems with card fields loading correctly

= 6.0.2 - 05-02-2024 13:36 =

* Bug Fix - Automatic refund is fixed
* Improvement - Input field is loading smoothly now

= 6.0.1 - 18-01-2024 22:30 =

* Bug fix - checking if woocommerce is added and active before validating payment on load of checkout page

= 6.0.0 - 17-01-2024 15:00 =

* Break plugin in to modules to allow for additional payment methods
* Open Banking solution added - TP direct
* Place order in hold if payment has not been confirmed by the bank,
* Add compatibility with Woocommerce's subscription plugin
* Standing Instructions Sequence implemented
* zero value checkout created
* Update card during subscription
* Option to use saved card with subscription product or add new card
* One Click payments - Standing instructions update 
* Add standing instruction parameters to one click payment transaction (when customer uses saved card to purchase product)
* Load in alteration
* Payment page font end updates
* Loading screen updates
* Style change for payment processing screen.

= 5.3.11 - 26-06-2023 18:20 =

* Bug Fix - optimise date range search for secondary payment check

= 5.3.10 - 23-06-2023 16:00 =

* Additional parameters for date range is added for payment 'Failsafe' implementation.

= 5.3.9 - 16-06-2023 17:10 =

* Minor Bug fix for payment 'Failsafe' implementation.

= 5.3.8 - 14-06-2023 21:42 =

* Resolved conflict with editing tooling.

= 5.3.7 – 02-06-2023 21:38 =

* Additional payment validation implementation to counteract payment response issues experiences on particular WP sites. Change creates a secondary failsafe on the page refresh to catch any session or cacheing issues

= 5.3.6 - 23-05-2023 17:30 =

* Pay Order page is working with TP modal design and default design

= 5.3.5 - 04-05-2023 18:30 =

* Optimized modal design
* More customization options for background/fonts/Buttons

= 5.3.4 - 24-04-2023 19:30 =

* Fixed static function issue for deactivation method

= 5.3.3 - 18-04-2023 19:30 =

* Optimized log system
* removed unwanted validations

= 5.3.2 - 29-03-2023 14:00 =

* Firefox autofill compatibility fixed

= 5.3.1 - 13-03-2023 18:36 =

* Placeholder for expiry format has been changed from MMYY to MM/YY
* Autocomplete attributes have been updated to the correct values

= 5.3.0 - 06-03-2023 11:30 =

* Payment Flow has been optimised, with new status check speeds on redirection
* Billing state has been removed from payload

= 5.2.36 - 22-02-2023 19:24 =

* Payment Status flow improvements - Status dynamically changed to Failed - Pending - success
* Status notes enhancements

= 5.2.29 - 22-06-2022 19:16 =

* Reduced timeout time for API request

= 5.2.28 - 14-06-2022 15:28 =

* Added more data to debug log
* Added alert message for enduser in case transaction lookup timeout or fails

= 5.2.27 - 12-06-2022 11:28 =

* Added filter to exclude tp js assets from siteground minimification

= 5.2.26 - 12-06-2022 10:50 =

* Fixes for js script for minification compatibility

= 5.2.25 - 12-06-2022 07:50 =

* Fixes for jQuery Conflict while loading inputs and js version

= 5.2.24 - 12-06-2022 07:40 =

* Fixes for jQuery Conflict while loading inputs.

= 5.2.23 - 10-06-2022 15:42 =

* Fixes for saved cards syncs.

= 5.2.22 - 10-06-2022 14:42 =

* Fixes for event updated_checkout.

= 5.2.21 - 04-06-2022 10:26 =

* Added more debug log to get more info.
* Added Option to choose modal for TP Payment, default will be embed.

= 5.2.20 - 02-06-2022 10:26 =

* Added more debug log to get more info.
* Added Payment dupe cronjob to verify timedout payment responses

= 5.2.19 - 01-06-2022 12:22 =

* Added more debug log to get more info.
* Sending correct plugin version as Shooper_plugin for better tracking
* Added more notices if check fails but still payment done.

= 5.2.18 - 30-05-2022 17:50 =

* Added more debug log to get more info.

= 5.2.17 - 30-05-2022 12:50 =

* Added back count of last six month order count for better payment risk evaluation.
* Added debug lines to evaluate processing time parsing.

= 5.2.16 - 24-05-2022 06:11 =

* Improved UI for smaller view port.
* Added new control in design tab to manage fields margin-right

= 5.2.15 - 05-05-2022 16:40 =

* Clean Dashboard.
* Added new tab for deign elements

= 5.2.14 - 15-04-2022 17:18 =

* Enhanced syncing saved cards with better http calling.

= 5.2.13 - 14-04-2022 14:18 =

* Enhanced syncing saved cards.

= 5.2.12 - 12-04-2022 11:16 =

* Enhanced log system - with a backend tab.

= 5.2.11 - 08-04-2022 14:40 =

* fix for js missing function scroll_to_notices.

= 5.2.10 - 06-04-2022 14:40 =

* fix for saved card sync.

= 5.2.9 - 30-03-2022 14:40 =

* fix for layout for mobile.

= 5.2.8 - 23-03-2022 18:15 =

* fix for amount number format.

= 5.2.7 - 16-03-2022 13:38 =

* removed param AccountPurchaseCount for speed optimization while processing payment.

= 5.2.6 - 16-03-2022 13:38 =

* JS optimization.

= 5.2.5 - 16-03-2022 13:38 =

* Calling delayed js to properly propogate.

= 5.2.4 - 16-03-2022 13:38 =

* Server side debug log toggle.
* js varibale name change.

= 5.2.3 - 15-03-2022 15:03 =

* Plugin id to new version.
* Iframe autogeneration if missing.
* Setting data sync.

= 5.2.1 - 15-03-2022 =

* Plugin id back to previous version for better sync.
* Iframe autogeneration if missing.

= 5.2 - 10-03-2022 =

* Plugin updated to improve stability and performance.
* Updated ready for 3DSv2.
* Fully restructured to avoid conflicts with old versions.
* Improved error & response messages, as well as global notifications.
* Improved error messaging when no response detected.
* New saved card migration system integrated
* Improved iframe detection & regeneration system implemented.
* New FAQ tab added.

= 5.1 - 17-11-2021 =

* Updated stored cards to drop cardholder name as length changes affect css positioning.
* Updated admin validation of accessToken to adopt single and double equals.

= 5.0 - 07-10-2021 =

* Full restructure
* Useage of window.postMessage() to avoid the need for redirect

= 4.5.1 - 05-06-2021 =

* Removal of payment modal
* Stock control (holds stock for 5 minutes - if no successful payment, releases stock using wp_cron)
* Correct order statuses (pending payment (transaction started), processing (payment complete), failed (failed validation or timed out and released stock))
* Bug fixes
* Prevention of blank API calls and reload on WooCommerce failed validation

= 4.4 - 04-14-2021 =

* Updated Payment popup

= 4.3 - 03-22-2021 =

* Added Payment recheck function in case of empty response from API.
* Updated Setup WIzard page

= 4.2 - 02-25-2021 =

* Updated Tags.

