=== Plugin Name ===
Contributors: deusnoname
Donate link: http://thecodeisintheair.com/payu-latam/woocommerce-payu-latam-gateway-plugin/
Tags: WooCommerce, Payment Gateway, PayU Latam, PayU Latinoamerica, Pagos en linea Colombia, Pagos en linea Latinoamerica
Requires at least: 3.7
Tested up to: 4.6
Stable tag: 1.2.3
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

PayU Latam Payment Gateway for WooCommerce. Recibe pagos por internet en latinoamérica desde cualquier parte del mundo.

== Description ==

WooCommerce is a powerful, extendable eCommerce plugin that helps you sell anything. Beautifully.

PayU Latam - la plataforma de procesamiento de pagos en linea de América Latina, Crea tu Cuenta [aqui](https://secure.payulatam.com/online_account/509773/create_account.html "PayU Latam").

Both are now one of the best choices to start an eCommerece site in latinoamerica, fast and easy.
*   "WooCommerce" is an open source application
*   "PayU Latam" is offering payment collection with no setup cost.

Note:
To test the payment platform you must use this parameters in the payment form:
Credit card: VISA 
Credit card Number: 4111111111111111
Client Name: "APPROVED"

or use a service like getcreditcardnumbers.com to generate credit card numbers to test

Visit [www.thecodeisintheair.com](http://thecodeisintheair.com/wordpress-plugins/woocommerce-payu-latam-gateway-plugin/ " Code is in the Air : Woocommerce PayU Latam Gateway Plugin") for more info about this plugin.

Visit [PayU Latam](https://secure.payulatam.com/online_account/509773/create_account.html "PayU Latam") to create your account.

== Installation ==

1. Ensure you have latest version of WooCommerce plugin installed (WooCommerce 2.0+)
2. Unzip and upload contents of the plugin to your `/wp-content/plugins/` directory
3. Activate the plugin through the 'Plugins' menu in WordPress

Please see the screenshots on information about how to get your account info from Payu Latam.

== Configuration ==

1. Visit the WooCommerce settings page, and click on the Payment Gateways tab.
2. Click on *PayU Latam* to edit the settings. If you do not see *PayU Latam* in the list at the top of the screen make sure you have activated the plugin in the WordPress Plugin Manager.
3. Enable the Payment Method, name it as you want (this will show up on the payment page your customer sees), add in your Merchant id, Account Id and ApiKey and select the redirect url(URL you want to redirect after payment). Click Save.

== Screenshots ==

1. WooCommerce > Payment Gateway > PayU Latam - setting page
2. Checkout Page - Option of Payment by *PayU Latam*
3. PayU Latam - ApiKey and Merchant Id
4. PayU Latam - Account Id
5. PayU Latam - Payment Platform
6. PayU Latam - Client Information Page
7. PayU Latam - Payment Process page


== Frequently Asked Questions ==

= Do I Need a activated account on payU latam to use this plugin?=

Yes, if you want to receive payments on the account, if you want to test the gateway there is no need for an account.

= What is the cost for transaction for PayU Latam? =

It may vary on each country, check payulatam.com to find out.

= Transaccions always rejected issue =
Since PayU is updating their testing platform all testing transaccions would be rejected unless the user use the followings parameters in PayU payment form.
Credit card: VISA 
Credit card Number: 4111111111111111 
Client Name: "APPROVED"

== Changelog ==

= 1.0 =
* First Public Release.

= 1.0.1 =
* Added some fallbacks for response codes.

= 1.0.2 =
* Added all currencys supported by the PayU Latam Platform.

= 1.0.3 =
* Set all currencys supported by the PayU Latam Platform by default and fix problem with currencys not showing in front end.

= 1.1 =
* Add spanish translation, and mo-po files for future translations.

= 1.1.1 =
* Add option to empty shopping cart after transaction completed.

= 1.1.2 =
* Add payment confirmation support for new accounts.

= 1.1.3 =
* Add option to select which method to use on the form to send data to PayU Latam.
* Fix a few Compatibility Issues for Woocommerce 2.1.*

= 1.1.4 =
* Fix bug for transaction page.

= 1.1.5 =
* Add page end point option and remove empty cart option, add ABANDONED_TRANSACTION state.

= 1.1.5.1 =
* Important Patch, return url won't work.

= 1.1.5.2 =
* Important Patch, fixes notification error from payu latam.

= 1.1.6 =
* Add fields to customize transaction messages.

= 1.1.7 =
* Add new payu logos based on country of the store also the option to use a custome image.

= 1.1.8 =
* Add support for  Chile's currency CLP.

= 1.1.9 =
* Add Default return page (with all the default order info)

= 1.2 =
* Fix bug with duplicated reference code in payu platform, add new checkout logos images, fix bug with return page goes to blank (tested in production and test mode)

= 1.2.1 =
* Fix confirmation process not working properly.

= 1.2.2 =
* Fix initialization process not working on some websites (incompatibility issues).

= 1.2.3 =
* Fix error 500 on production.

== Upgrade Notice ==

= 1.0.1 =
We added some fallbacks for response codes sended by payu gateway.

= 1.0.2 =
* Added all currencys supported by the PayU Latam Platform.

= 1.0.3 =
* Fix problem with currencys not showing in front end.

= 1.1 =
* Add spanish translation, and mo-po files for future translations.

= 1.1.1 =
* Add option to empty shopping cart after transaction completed.

= 1.1.2 =
* Add payment confirmation support for new accounts.

= 1.1.3 =
* Add option to select which method to use on the form to send data to PayU Latam.
* Go to Payu Latam Setting and choose the method and save before using the payment gateway again.
* Fix a few Compatibility Issues for Woocommerce 2.1.*

= 1.1.4 =
* Payment confirmation will work with no problem.

= 1.1.5 =
* Add page end point option and remove empty cart option, add ABANDONED_TRANSACTION state.

= 1.1.5.1 =
* Important Patch, return url won't work.

= 1.1.5.2 =
* Important Patch, fixes notification error from payu latam.

= 1.1.6 =
* Add fields to customize transaction messages.

= 1.1.7 =
* Add new payu logos based on country of the store also the option to use a custome image.

= 1.1.8 =
* Add support for  Chile's currency CLP.

= 1.1.9 =
* New!! Add Default return page (with all the default order info)

= 1.2 =
* Fix bug with duplicated reference code in payu platform, add new checkout logos images, fix bug with return page goes to blank (tested in production and test mode)

= 1.2.1 =
* Update to Fix confirmation process not working properly.

= 1.2.2 =
* Update if you get 500 error from Payu confirmation process.

= 1.2.3 =
* Update if you get 500 error from Payu confirmation process in production.
