From 26185c90a7df5fe841b4d639ad7bac40d7a00a53 Mon Sep 17 00:00:00 2001 From: Enrique Barcelli Date: Wed, 14 Jul 2021 15:44:47 +0800 Subject: [PATCH] Fix metadata in triplea.xml and double quote errors --- plg_hikashoppayment_triplea/triplea.php | 18 +++++++++--------- plg_hikashoppayment_triplea/triplea.xml | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/plg_hikashoppayment_triplea/triplea.php b/plg_hikashoppayment_triplea/triplea.php index 4af4a3d..3429fd9 100644 --- a/plg_hikashoppayment_triplea/triplea.php +++ b/plg_hikashoppayment_triplea/triplea.php @@ -51,18 +51,18 @@ class plgHikashoppaymentTriplea extends hikashopPaymentPlugin{ CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'{ - "type": '.$type.', - "merchant_key": '.$merchant_key.', - "order_currency": '.$order_currency.', + "type": "'.$type.'", + "merchant_key": "'.$merchant_key.'", + "order_currency": "'.$order_currency.'", "order_amount": '.$order_amount.', - "payer_id": '.$payer_id.', - "success_url": '.$success_url.', - "cancel_url": '.$cancel_url.', - "notify_url": '.$notiry_url.', - "notify_secret": '.$notify_secret.', + "payer_id": "'.$payer_id.'", + "success_url": "'.$success_url.'", + "cancel_url": "'.$cancel_url.'", + "notify_url": "'.$notiry_url.'", + "notify_secret": "'.$notify_secret.'", "notify_txs": '.$notify_txs.', "webhook_data": { - "order_id": '.$order_id.' + "order_id": "'.$order_id.'" }, "sandbox": '.$sandbox.' }', diff --git a/plg_hikashoppayment_triplea/triplea.xml b/plg_hikashoppayment_triplea/triplea.xml index 1daa3ba..1dc1f16 100644 --- a/plg_hikashoppayment_triplea/triplea.xml +++ b/plg_hikashoppayment_triplea/triplea.xml @@ -10,7 +10,7 @@ http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL This plugin enables you to setup your TripleA payment system - triplea.php + triplea.php triplea_end.php index.html