update: support fa-IR

This commit is contained in:
tokumeikoi
2022-11-01 02:07:19 +08:00
parent 3f8382aab2
commit 99077b68f9
8 changed files with 301 additions and 290 deletions

View File

@ -32,6 +32,11 @@ class MGate {
'label' => 'AppSecret',
'description' => '',
'type' => 'input',
],
'mgate_source_currency' => [
'label' => '源货币',
'description' => '默认CNY',
'type' => 'input'
]
];
}
@ -44,6 +49,9 @@ class MGate {
'notify_url' => $order['notify_url'],
'return_url' => $order['return_url']
];
if ($this->config['mgate_source_currency']) {
$params['source_currency'] = $this->config['mgate_source_currency']
}
$params['app_id'] = $this->config['mgate_app_id'];
ksort($params);
$str = http_build_query($params) . $this->config['mgate_app_secret'];