=== Authorize.net Payment Gateway For WooCommerce ===
Contributors: mohsinoffline, freemius
Donate link: https://wpgateways.com/support/send-payment/
Tags: woocommerce Authorize.net, Authorize.net, payment gateway, woocommerce, woocommerce payment gateway, woocommerce subscriptions, recurring payments, pre order
Plugin URI: https://pledgedplugins.com/products/authorize-net-payment-gateway-woocommerce/
Author URI: https://pledgedplugins.com
Requires at least: 4.4
Tested up to: 7.1
Requires PHP: 5.6
Stable tag: 6.2.20
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Authorize.net payment gateway integration for WooCommerce to accept credit cards directly on WordPress e-commerce websites.

== Description ==

[Authorize.net](https://www.authorize.net/) Payment Gateway for [WooCommerce](https://woocommerce.com/) allows you to accept credit cards payments into your Authorize.net merchant account from all over the world on your websites.

WooCommerce is one of the oldest and most powerful e-commerce solutions for WordPress. This platform is very widely supported in the WordPress community which makes it easy for even an entry level e-commerce entrepreneur to learn to use and modify.

#### FREE Pro Version Features
* **Easy Install**: Like all Pledged Plugins add-ons, this plugin installs with one click. After installing, you will have only a few fields to fill out before you are ready to accept credit cards on your store.
* **Secure Credit Card Processing**: Uses [Accept.js](https://developer.authorize.net/api/reference/features/acceptjs.html) library to send secure payment data directly to Authorize.net to reduce the PCI scope.
* **Refund via Dashboard**: Process full or partial refunds, directly from your WordPress dashboard! No need to search order in your Authorize.net account.
* **Authorize Now, Capture Later**: Optionally choose only to authorize transactions, and capture at a later date.
* **Restrict Card Types**: Optionally choose to restrict certain card types and the plugin will hide its icon and provide a proper error message on checkout.
* **Gateway Receipts**: Optionally choose to send receipts from your Authorize.net merchant account.
* **Logging**: Enable logging so you can debug issues that arise if any.

> #### Enterprise Version Features
> * **Process Subscriptions:**  Use with  [WooCommerce Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/)  extension to **create and manage products with recurring payments**  — payments that will give you residual revenue you can track and count on.
> * **Setup Pre-Orders:**  Use with  [WooCommerce Pre-Orders](https://woocommerce.com/products/woocommerce-pre-orders/)  extension so customers can order products before they’re available by submitting their card details. The card is then automatically charged when the pre-order is available.
> * **Pay via Saved Cards:** Enable option to use saved card details on the gateway servers for quicker checkout. No sensitive card data is stored on the website!
> * **ACH Payments:** Fully supports eCheck payments via ACH network.
> * **One Click Upsells:** Compatible with [FunnelKit (formerly WooFunnels) One Click Upsells](https://funnelkit.com/woocommerce-one-click-upsells-upstroke/).
>
> [Click here](https://pledgedplugins.com/products/authorize-net-payment-gateway-woocommerce/) for Pricing details.

#### Requirements
* Active  [Authorize.net](https://www.authorize.net/)  account – Sign up for a sandbox account  [here](https://developer.authorize.net/hello_world/sandbox.html)  if you need to test.
* [**WooCommerce**](https://woocommerce.com/)  version 3.3 or later.
* A valid SSL certificate is required to ensure your customer credit card details are safe and make your site PCI DSS compliant. This plugin does not store the customer credit card numbers or sensitive information on your website.
#### Extend, Contribute, Integrate
Visit the [plugin page](https://pledgedplugins.com/products/authorize-net-payment-gateway-woocommerce/) for more details. Contributors are welcome to send pull requests via [Bitbucket repository](https://bitbucket.org/pledged/wc-authorize.net-pro/).

For custom payment gateway integration with your WordPress website, please [contact us here](https://wpgateways.com/support/custom-payment-gateway-integration/).

#### Disclaimer
This plugin is not affiliated with or supported by Authorize.net, WooCommerce.com or Automattic. All logos and trademarks are the property of their respective owners.

== Installation ==

1. Upload `woo-authorize-net-gateway-enterprise` folder/directory to the `/wp-content/plugins/` directory.
2. Activate the plugin (WordPress -> Plugins).
3. Go to the WooCommerce settings page (WordPress -> WooCommerce -> Settings) and select the Payments tab.
4. Under the Payments tab, you will find all the available payment methods. Find the 'Authorize.net' link in the list and click it.
5. On this page you will find all the configuration options for this payment gateway.
6. Enable the method by using the checkbox.
7. Enter the Authorize.net account details (API Login ID, Transaction Key and Public Client Key).

**IMPORTANT:** Live merchant accounts cannot be used in a sandbox environment, so to test the plugin, please make sure you are using a separate sandbox account. If you do not have a sandbox account, you can sign up for one from <https://developer.authorize.net/hello_world/sandbox.html>. Check the Authorize.net testing guide from <https://developer.authorize.net/hello_world/testing_guide/> to generate various test scenarios before going live.

That's it! You are ready to accept credit cards with your Authorize.net merchant account now connected to WooCommerce.

== Frequently Asked Questions ==

= Which API method does this plugin use? =
Since version 6.0.0, the plugin uses the latest Authorize.net  [Payment Transactions API](https://developer.authorize.net/api/reference/features/payment_transactions.html) along with [Accept.js](https://developer.authorize.net/api/reference/features/acceptjs.html) integration to provide maximum security to your transactions.

= Does this plugin support Authorize.net AIM Emulation? =
Unfortunately, the [Authorize.net emulation method is deprecated](https://developer.authorize.net/api/upgrade_guide/#aim), and will soon be phased out. If you are using another merchant account provider that supports Authorize.net AIM emulator, we would advise you to use its native API instead of emulation and chances are that *we already have* a **[WooCommerce integration](https://pledgedplugins.com/product-category/woocommerce/)** available for it.

= I **still** need to use Authorize.net AIM Emulation? =
You are in luck! The free version of the plugin has an option to use the AIM integration.

= Is SSL Required to use this plugin? =
A valid SSL certificate is required to ensure your customer credit card details are safe and make your site PCI DSS compliant. This plugin does not store the customer credit card numbers or sensitive information on your website.

== Changelog ==
= 6.2.20 =
* Updated "WC tested up to" header to 11.2
* Updated Freemius SDK to 2.13.5

= 6.2.19 =
* Fixed blocks CSS loading on every page
* Fixed subscription remaining on manual renewal after it is renewed through Authorize.net
* Throw RouteException instead of displaying error via wc_add_notice for server side error handling on Block Checkout
* Updated compatibility info to WordPress 7.1
* Updated "WC tested up to" header to 11.1

= 6.2.18 =
* Updated "WC tested up to" header to 11.0
* Updated Freemius SDK to 2.13.4

= 6.2.17 =
* Updated compatibility info to WordPress 7.0
* Updated "WC tested up to" header to 10.7
* Updated Freemius SDK to 2.13.1

= 6.2.16 =
* Added fix for echeck refunds
* Updated "WC tested up to" header to 10.6

= 6.2.15 =
* Updated "WC tested up to" header to 10.4
* Updated compatibility info to WordPress 6.9

= 6.2.14 =
* Removed jquery-payment script handle
* Updated Freemius SDK to 2.13.0

= 6.2.13 =
* Update jquery-payment handle for WC >= 10.3

= 6.2.12 =
* Added needs_payment flag for renewal payments
* Added backward compatibility for refunds
* Fixed response handling if WP_Error object is returned
* Updated "WC tested up to" header to 10.3
* Updated Freemius SDK to 2.12.2

= 6.2.11 =
* Fixed issue with accept.js loading on every page
* Updated "WC tested up to" header to 10.1

= 6.2.10 =
* Fixed order line items issue
* Updated "WC tested up to" header to 10.0
* Updated Freemius SDK to 2.12.1

= 6.2.9 =
* Fixed issues with WC version < 8.4.0
* Updated "WC tested up to" header to 9.9

= 6.2.8 =
* Mentioned payment amount in order note
* Fixed PHP notice on loading translation
* Fixed issue with data erasure
* Added filter for capturing on order status change
* Updated Freemius SDK to 2.12.0
* Updated "WC tested up to" header to 9.8
* Updated compatibility info to WordPress 6.8

= 6.2.7 =
* Updated "WC tested up to" header to 9.7
* Updated Freemius SDK to 2.11.0

= 6.2.6 =
* Updated "WC tested up to" header to 9.6
* Fixed error handling for error code E00027
* Fixed gateway log URL

= 6.2.5 =
* Updated "WC tested up to" header to 9.5
* Updated Freemius SDK to 2.10.1

= 6.2.4 =
* Updated compatibility info to WordPress 6.7
* Updated Freemius SDK to 2.9.0

= 6.2.3 =
* Added "Capture authorized transaction on status change" option
* Updated "WC tested up to" header to 9.4
* Updated Freemius SDK to 2.8.1

= 6.2.2 =
* Set order status to Failed only once on unsuccessful capture
* Updated "WC tested up to" header to 9.3
* Updated Freemius SDK to 2.8.0

= 6.2.1 =
* Set order status to Failed if the capture from Edit Order screen fails
* Updated Freemius SDK to 2.7.4

= 6.2.0 =
* Made compatible with FunnelKit (formerly WooFunnels) One Click Upsells
* Added filters for checkout error messages
* Added a check for allowing double quotes in the API response
* Updated compatibility info to WordPress 6.6
* Updated "WC tested up to" header to 9.2
* Updated Freemius SDK to 2.7.3

= 6.1.4 =
* Sanitized user input in POST variable
* Added minor improvements in code base
* Updated "WC tested up to" header to 9.0
* Updated Freemius SDK to 2.7.2

= 6.1.3 =
* Added order address for new payment method wherever available
* Added order key check for order payment page
* Updated compatibility info to WordPress 6.5
* Updated "WC tested up to" header to 8.7

= 6.1.2 =
* Fixed issue with Elementor editor container

= 6.1.1 =
* Fixed JS error not showing on checkout block

= 6.1.0 =
* Added checkout block support for credit card payments
* Updated "WC tested up to" header to 8.5
* Updated Freemius SDK to 2.6.2

= 6.0.7 =
* Updated "WC tested up to" header to 8.3
* Updated compatibility info to WordPress 6.4
* Updated Freemius SDK to 2.6.0
* Declared incompatibility with cart and checkout blocks
* Added email to refund request
* Added "Line Items" option

= 6.0.6 =
* Updated "WC tested up to" header to 8.2
* Updated Freemius SDK to 2.5.12

= 6.0.5 =
* Updated "WC tested up to" header to 8.0
* Updated compatibility info to WordPress 6.3

= 6.0.4 =
* Saved "_authnet_cc_type" to order meta
* Updated "WC tested up to" header to 7.8
* Updated Freemius SDK to 2.5.10

= 6.0.3 =
* Added billTo fields to refund payment request
* Fixed creating payment profile when logged out
* Updated "WC tested up to" header to 7.7
* Updated Freemius SDK to 2.5.7

= 6.0.2 =
* Updated Freemius SDK to 2.5.5

= 6.0.1 =
* Made compatible with WooCommerce HPOS
* Updated "WC tested up to" header to 7.5

= 6.0.0 - MAJOR UPDATE =
* Removed Authorize.net SDK files
* Implemented direct post method
* Implemented full ACH (eCheck) support
* Fixed captured payments being voided on cancelling orders
* Complete overhaul of the plugin with massive improvements to the code base
* Updated "WC tested up to" header to 7.4
* Updated Freemius SDK to 2.5.3
* Fixed PHP notices

= 5.2.2 =
* Added option to set new customer cards on checkout as their default payment method
* Added option to set the card validation mode
* Updated "WC tested up to" header to 7.1
* Updated compatibility info to WordPress 6.1

= 5.2.1 =
* Added minor improvements in code base
* Updated "WC tested up to" header to 7.0
* Updated compatibility info to WordPress 6.0

= 5.2.0 =
* Updated "WC tested up to" header to 6.5
* Added AVS and CVV responses to order notes
* Fixed capture payments that are put on hold by Authorize.net fraud filters
* Capture or void payment if the order is authorized regardless of whether it was changed from on-hold or not
* Saved "authorization_code" from transaction response to order meta
* General code clean up

= 5.1.11 =
* Fixed PHP notices
* Updated Freemius SDK to 2.4.3
* Updated "WC tested up to" header to 6.3
* Updated compatibility info to WordPress 5.9

= 5.1.10 =
* Updated "WC tested up to" header to 6.0
* Updated compatibility info to WordPress 5.8
* Restricted the state to be sent in the gateway request to 40 characters
* Restricted the country to be sent in the gateway request to 60 characters
* Restricted the zipcode to be sent in the gateway request to 20 characters
* Restricted the phone number to be sent in the gateway request to 25 characters
* Restricted the email address to be sent in the gateway request to 255 characters

= 5.1.9 =
* Updated Authorize.net SDK to 2.0.2
* Updated "WC tested up to" header to 5.5

= 5.1.8 =
* Updated "WC tested up to" header to 5.3
* Updated compatibility info to WordPress 5.7
* Updated Freemius SDK to 2.4.2

= 5.1.7 =
* Fixed invalid line item ID issue
* Fixed issues with changing payment method on subscriptions
* Updated "WC tested up to" header to 5.0

= 5.1.6 =
* Passed currrency code parameter to gateway request
* Updated "WC tested up to" header to 4.9
* Updated Freemius SDK to 2.4.1
* Fixed notices with PHP 7.4+

= 5.1.5 =
* Fixed "Pending Review" orders being marked as paid
* Updated "WC tested up to" header to 4.8
* Tested with WordPress 5.6

= 5.1.4 =
* Updated "WC tested up to" header to 4.6
* Fixed incorrect capture amount on authorized transactions for modified orders
* Print failed transaction response reason in order notes
* Updated freemius sdk to 2.4.0

= 5.1.3 =
* Fixed fatal error on checkout when WooCommerce Subscriptions is not active

= 5.1.2 =
* Updated "WC tested up to" header to 4.2
* Fixed order line items
* Fixed issue with duplicate cards being used
* Print failed transaction response reason in order notes
* Sanitized line items to prevent invalid characters
* Fixed payment method appearing on add payment method page when saved cards are not enabled

= 5.1.1 =
* Sanitized user input in POST variable

= 5.1.0 =
* Added Pro Plus plan for free plugin users
* Updated "WC tested up to" header to 4.0

= 5.0.10 =
* Restricted the line item id to be sent in the gateway request to 31 characters

= 5.0.9 =
* Updated "WC tested up to" header to 3.9
* Restricted the city to be sent in the gateway request to 40 characters
* Restricted the address to be sent in the gateway request to 60 characters
* Restricted the company to be sent in the gateway request to 50 characters
* Restricted the first name, last name to be sent in the gateway request to 50 characters
* Restricted the order description to be sent in the gateway request to 255 characters

= 5.0.8 =
* Fixed card not accepted error on field reload
* Fixed PHP notices

= 5.0.7 =
* Updated "WC tested up to" header to 3.8
* Made compatible with WooCommerce Sequential Order Numbers Pro
* Fixed order status not changing to Failed on decline

= 5.0.6 =
* Restricted the line items to be sent in the gateway request to 30

= 5.0.5 =
* Updated "WC tested up to" header to 3.7

= 5.0.4 =
* Updated freemius sdk to 2.3.0

= 5.0.3 =
* Fixed long item names in line items throwing an error

= 5.0.2 =
* Added line item data to gateway requests
* Added shipping and tax amounts to gateway requests

= 5.0.1 =
* Updated "WC tested up to" header to 3.6
* Replaced deprecated function "reduce_order_stock" with "wc_reduce_stock_levels"

= 5.0.0 - MAJOR UPDATE =
* Updated transaction methods to Payment Transactions API and implemented Authorize.net SDK
* Removed Authorize.net AIM code
* Added Freemius integration for analytics, upgrade and support

= 4.0.4 =
* Fixed issue with shipping field values

= 4.0.3 =
* Fixed PHP notices
* Changed logging method
* Removed deprecated script code
* Updated post meta saving method
* Added "Refund" transaction feature
* Added shipping fields to gateway request
* Added JCB, Diners Club in Allowed Card types option
* Prevented the "state" parameter from being sent in "capture", "void" or "credit" transactions

= 4.0.2 =
* Changed plugin description

= 4.0.1 =
* Added GDPR privacy support
* Fixed false negative on SSL warning notice in admin
* Added "minimum required" and "tested upto" headers for version check in WooCommerce 3.4

= 4.0.0 =
* Added "authorize only" option
* Added logging option
* Added option to restrict card types
* Added test mode option and made HTTPS mandatory for live mode
* Passed billing details to "Pay for Order" page
* Complete overhaul of the plugin with massive improvements to the code base

= 3.5.2 =
* Updated transaction endpoint URL

= 3.5.1 =
* Made "Order Received" link dynamic
* Included customer IP in the data sent to the gateway
* Added POT file for translation

= 3.5 =
* Fixed compatibility issues with other payment gateway plugins

= 3.2.1 =
* Compatible to WooCommerce 2.3.x
* Compatible to WordPress 4.x

= 3.0 =
* Compatible to WooCommerce 2.2.2
* Compatible to WordPress 4.0

= 2.0 =
* Compatible to WooCommerce 2.1.1
