=== Allpay AIO for WooCommerce ===
Contributors: innovext
Tags: woocommerce, payment gateway, payment gateways, allpay, 歐付寶, 金流, 綠界
Requires at least: 4.1
Tested up to: 4.7.5
Stable tag: 1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Allpay/ECpay AIO for WooCommerce allows you to accept payment on your Woocommerce store via Allpay payment gateway in Taiwan.

== Description ==
= WooCommerce歐付寶/綠界全方位金流外掛 =
WooCommerce與在台灣最具規模的歐付寶第三方付款金流，只要一個外掛就輕鬆搞定! 豐富的設定選項、詳盡的資訊流程，讓您使用第三方收付更加的方便!

= 外掛特色 =
* __支援綠界__ 您可選擇使用歐付寶金流或綠界金流收款
* __免去繁複的安裝多個外掛，只要一個外掛就搞定!__ 支援信用卡、網路ATM、ATM自動櫃員機、超商代碼、超商條碼、支付寶、財付通、儲值消費、全家條碼立即儲
* __自訂指示訊息__ 無論是已付款或未付款，您都可以自訂想要給顧客觀看的訊息，讓顧客了解您想要傳達的訊息，溝通沒煩惱!
* __商家電子郵件通知__ 顧客在下單後所送出的通知郵件，可顯示已付款或是未付款訊息
* __顧客電子郵件通知__ 顧客的電子郵件通知，可帶有ATM、超商代碼繳款訊息，方便顧客儲存紀錄，只要手機在手就可輕鬆付款
* __顯示訂單資訊__ 在訂單資訊頁讓您了解顧客在金流下單後的基本資訊
* __顧客下單完可觀看訂單資訊__ 顧客下單完後，可在到商店頁面看到當前的付款資訊，在成功付款後可即時顯示付款狀態，顧客大可不必再跟商家確認是否收到付款
* __詳細的訂單紀錄__ 與金流來往的訊息皆會被紀錄下來，讓您了解當前訂單情形
* __即時顯示訂單資訊__ 無論是時間、金額、已付款、未付款，您可以即時了解金流當前訂單狀態，不需到商家後台查詢訂單
* __可設定最低付款金額__ 擔心付款方式會增加成本嗎? 可設定最低付款金額，讓您增加整體收益
* __自動更新付款方式標題__ 有別於只顯示金流主標題，您可以選擇是否要更新顧客所選擇的付款方式細項標題，讓您了解更詳細的付款方式
* __自動取消訂單__ ATM付款、超商條碼、超商代收之訂單如果在期限內尚未付款，訂單自動取消，讓您不必煩惱是否需要時常檢查訂單期限
* __自訂繳費期限__ 可讓您找到跟顧客之間收付期限的平衡點
* __排除付款方式__ 您可設定需要排除哪些付款方式，讓您的收款方式更加簡單

觀看更多[特色介紹](http://www.innovext.com/tw/woocommerce-allpay-aio/)

= 版本需求 =
WooCommerce 2.2 以上

= 意見回鐀 =
如果您有任何意見回饋的話，請到因創科技官方網站[聯絡我們](http://www.innovext.com/tw/contact-us/)

您也可以到我們的**[FACEBOOK粉絲頁](https://www.facebook.com/innovext)**來幫我們按個讚

== Installation ==

= 自動安裝 =
* 	登入您的WordPress Admin
* 	點選左手邊選單的 "外掛 > 安裝外掛"
* 	在搜尋框裡輸入 "Allpay AIO for WooCommerce"
*	在搜尋結果您可以看到 "Allpay AIO for WooCommerce" 按下 "立刻安裝" 來安裝外掛
*	會跳出一個訊息框來讓您確認是否要安裝外掛
*	按下"確定"來繼續安裝外掛，如果成功的話會顯示成功訊息，如果有問題的話也會通知您
*	如果成功安裝，按下"啟用"來啟用外掛
* 	到 WooCommerce->設定->結帳
* 	按下子設定頁 "歐付寶/綠界全方位金流"
*	開始進行設定

= Manual Installation =
1. 	下載外掛壓縮檔
2. 	登入您的WordPress Admin，點選左手邊選單的 "外掛 > 安裝外掛"
3.  按下上傳，然後選擇要上傳的壓縮檔案，按下 OK 然後 立即安裝
4.  啟用外掛
5. 	到 WooCommerce->設定->結帳
6. 	按下子設定頁 "歐付寶/綠界全方位金流"
7.	開始進行設定

== Frequently Asked Questions ==

= 設定測試商家 =
到WooCommerce->設定->結帳->歐付寶/綠界全方位金流，填入測試的**商店代號、HashKey、HashIV**,

= 測試後台 =
歐付寶
http://vendor-stage.allpay.com.tw/
帳號 StageTest
密碼 test1234

綠界
http://vendor-stage.ecpay.com.tw/
帳號 StageTest
密碼 test1234

= 信用卡測試 =
測試卡號 4311-9522-2222-2222 
信用卡測試安全碼 222 
信用卡測試有效年月: 請設定大於測試時間。假如您的測試時間在 2013 年 11 月 26 號，該筆交易的信用卡有效年月請設定 2013 年 11 月以後，因為系統會判斷有效年月是否已過期，已過期則會回應刷卡失敗。

= 更多詳細金流資訊 =
請至 [歐付寶](https://www.allpay.com.tw/) 或 [綠界](https://www.ecpay.com.tw/) 查詢

= WebATM測試 =
請選擇台新銀行，有模擬付款

== Screenshots ==
1. 設定畫面

== Changelog ==
v1.0
Official release

v1.0.2
remove - unnecessary codes
tweak - refine codes in get_allpay_args()
fix - wrong return value in thankyou_order_received_text()

v1.0.3
fix - wrong thankyou page message when choose CVS and return to shop

v1.0.4
add - reduce order stock timing
add - support allpay aio English language
add - new filter 'inno_allpay_get_payment_type_args'

v1.1
add - support for ECpay
update - new coding structure
add filter - innovext_allpay_cancel_order_message
add hook - innovext_allpay_before_process_rtn_code

v1.1.1
fixed - missing ECpay logo

v1.1.2
fixed - static function call issue

v1.1.3
fix - fix the duplicate order id issue using timestamp
update - save payment data in the database as woocommerce 3.0.0 uses cron for email
update - graceful use wc_reduce_stock_levels as the old function will be deprecated 

v1.1.4
Change merchant_trade_no format to {prefix}{order_id}TS{reversed_timestamp}
make sure merchant trade no does not go over 20 characters

v1.1.5
bug fix - issue when limit is bigger than 0, cannot open wordpress menu editor
bug fix - warning on checkout/receipt page when debug is set to true

v1.1.6
update - compatibility upgrade with woocommerce 3.0
add - Translations (partial)
add - options for WPML on english interface

v1.1.7
bug fix - add_meta_box arg bug on admin panel

v1.1.8
add - add more language options
add - add currency conversion function

v1.1.9
fix - issue with using nav menu interface

v1.2.0
fix - urlencode TradeDesc to prevent error when blog name has special characters 