From b33682532660522cdcd59272a4b55214696f7d95 Mon Sep 17 00:00:00 2001 From: Enrique Barcelli Date: Mon, 12 Jul 2021 20:44:25 +0800 Subject: [PATCH] Incorporate TripleA parameters --- README.md | 2 +- plg_hikashoppayment_triplea/triplea.php | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a1c7586..3c9af40 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Smart Accounts ( http://www.smt-acc.com ) Smart Accounts ( http://www.smt-acc.com ) ## More details - +This version of the code is work-in-progress and should not be use in any production site. ## License GNU/GPL v2 ( http://www.gnu.org/licenses/gpl-2.0.html ) diff --git a/plg_hikashoppayment_triplea/triplea.php b/plg_hikashoppayment_triplea/triplea.php index 3d56ed0..085ba7e 100644 --- a/plg_hikashoppayment_triplea/triplea.php +++ b/plg_hikashoppayment_triplea/triplea.php @@ -5,8 +5,8 @@ class plgHikashoppaymentTriplea extends hikashopPaymentPlugin{ var $accepted_currencies = array( 'AUD','CAD','EUR','GBP','JPY','USD','NZD','CHF','SGD', - 'DKK','PLN','NOK','CZK','MXN','MYR','PHP','TWD','ILS', - 'RUB','CNY','NGN' + 'NOK','MYR','PHP','TWD', + 'HKD','IDR','KRW','SEK','THB','VND' ); var $debugData = array(); var $multiple = true; @@ -14,6 +14,9 @@ class plgHikashoppaymentTriplea extends hikashopPaymentPlugin{ var $pluginConfig = array( 'url' => array('URL', 'input'), 'walletid' => array('TripleA Wallet ID', 'input'), + 'merchant_key'=>array('TripleA Merchant Key', 'input'), + 'client_id'=>array('TripleA Client ID','input'), + 'notify_secret'=>array('TripleA Client secret','input'), 'invalid_status' => array('INVALID_STATUS', 'orderstatus'), 'pending_status' => array('PENDING_STATUS', 'orderstatus'), 'verified_status' => array('VERIFIED_STATUS', 'orderstatus') @@ -27,8 +30,9 @@ class plgHikashoppaymentTriplea extends hikashopPaymentPlugin{ $cancel_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=order&task=cancel_order&order_id='.$order->order_id.$this->url_itemid; $vars = array( + "type" => 'triplea', "ok_receiver" => $this->payment_params->walletid, - "ok_currency" => $this->currency->currency_code, + "order_currency" => $this->currency->currency_code, "invoice" => $order->order_id, "ok_return_success" => $return_url, "ok_ipn" => $notify_url,