Fix metadata in triplea.xml and double quote errors

This commit is contained in:
Enrique Barcelli 2021-07-14 15:44:47 +08:00
parent 3e7bafa21f
commit 26185c90a7
2 changed files with 10 additions and 10 deletions

View file

@ -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.'
}',

View file

@ -10,7 +10,7 @@
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<description>This plugin enables you to setup your TripleA payment system</description>
<files>
<filename plugin="okpay">triplea.php</filename>
<filename plugin="triplea">triplea.php</filename>
<filename>triplea_end.php</filename>
<filename>index.html</filename>
</files>