## Installation

1. Install WooCommerce plugin from https://wordpress.org/plugins/woocommerce/.
2. Install & activate Bayarcash plugin.
4. Go to WooCommerce->Settings->Payments and click on Bayarcash FPX to configure the integration.

## Changelog

= 2.0.9 = 
*  Fix Transaction ID not saved to wp_postmeta, add wc logger

= 2.0.8 = 
*  Add comments and DocBlock

= 2.0.7 = 
*  Filter server order info, only updated previous selected order statuses

  The order statuses are :
  - pending
  - canceled

= 2.0.6 = 
* Add FPX Response Sanitizer,Validator,better order no duplicate handling

= 2.0.5 =
* Remove hardcode set order to processing status when success pay

= 2.0.4 =
* Change object property mapping to get correct order no

= 2.0.3 =
* Change cron interval to 5 minutes
* Fix add duplicated order notes
* Update DocBlock
* Add GPL-3.0-or-later license reference

= 2.0.2 =
* Fix variable fpx_output_data_primary to use the latest output returned from the payment portal.
* Remove trailing comma at Authorization: Bearer array.
* Remove payment type description at both back-end and front-end.
* Fix duplicate missing data detection, this->portal_key at the back-end. The 1st should detect missing bearer token, and the 2nd should detect missing Payment Portal key.
* Remove Cancel button at the checkout page after buyer confirm choosing FPX, add auto-click features to the submit button, and immediately display the page loader while contacting the Payment Portal.
* Add customizable payment channel title and payment channel description.

= 2.0.1 =
* Replace parameter s3a with RefNo for more user friendly submission request.
* Add parameter payment_gateway = 1 to the transaction request form.
* Re-order parameters for order payment transaction data comparison between the payment portal and shopping cart.

= 2.0.0 =
* Replace combination of FPX Payment Portal Auth User and Auth Password with Bearer Token for Payment Portal user authentication.
* Update API_client_version to v2.0.0
* Add 'Accept: application/json' and 'Authorization: Bearer ' .$bearer_token to cURL request for communication to the payment portal.

= 1.0 =
* Initial release.
