You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
payment/app/Helper/Efps/Config.php

29 lines
944 B
PHTML

2 years ago
<?php
namespace App\Helper\Efps;
class Config
{
2 years ago
private static array $params = [
'dev' => [
'customerCode' => '562265003122220',
'signNo' => '562265003122220003',
'baseUrl' => 'http://test-efps.epaylinks.cn',
'privateKeyFilePath' => BASE_PATH . '/certs/dev/user.pfx',
'publicKeyFilePath' => BASE_PATH . '/certs/dev/efps.cer',
'privateKeyPassword' => '123456',
],
'prod' => [
'customerCode' => '562276004021027',
'signNo' => '562276004021027002',
'baseUrl' => 'https://efps.epaylinks.cn',
'privateKeyFilePath' => BASE_PATH . '/certs/prod/user.pfx',
'publicKeyFilePath' => BASE_PATH . '/certs/prod/efps.cer',
'privateKeyPassword' => 'iUixTxtl8N2Ntlx1LqZ',
]
2 years ago
];
2 years ago
public static function get($env): ?array {
return self::$params[$env] ?: null;
2 years ago
}
}