# SSPanel - Malio OLD

## 方法1 <a href="#fang-fa-1" id="fang-fa-1"></a>

{% hint style="success" %}
适用于`app/Services/Gateway/CustomPay.php` 存在的版本
{% endhint %}

{% file src="<https://319264069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxTLtYQ5Eb0gnd9wDhKa%2Fuploads%2FFTVWUxCeogUeIvwSvGKr%2FCustomPay.php?alt=media&token=fd467729-07e2-461c-9c7a-ba7b24d56785>" %}

1. 替换 `app/Services/Gateway/CustomPay.php`
2. 在 `config/routes.php` 内的 `$app->run();` 前添加:

```
// Jshipay
$app->post('/Jshi_notify', 'App\Services\Payment:notify');
$app->get('/Jshi_notify', 'App\Services\Payment:notify');
$app->post('/Jshi_return', 'App\Services\Payment:returnhtml');
$app->get('/Jshi_return', 'App\Services\Payment:returnhtml');
// end of Jshipay
```

3\. 在 `.config.php` 下添加:

```
$_ENV['jshipid']  = 'xxx';//Peapay 商户号    xxx代表需要手动填写
$_ENV['jshikey']  = 'xxx';//Peapay 密钥    xxx代表需要手动填写
$_ENV['jshiapi']  = 'https://peapay.top/';
$_ENV['jshiname'] = '蒜香豌豆';
$_ENV['sitename'] = 'SSPANEL';
```

## 方法2 <a href="#fang-fa-2" id="fang-fa-2"></a>

{% hint style="success" %}
适用于`app/Services/Gateway/CustomPay.php` 不存在的版本
{% endhint %}

{% file src="<https://319264069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxTLtYQ5Eb0gnd9wDhKa%2Fuploads%2Fr9o6tLOON5dwFX0v4IIZ%2Fflyfoxpay.php?alt=media&token=e5d6bb81-466b-47f6-964d-9c3cc15191cd>" %}

1. 将压缩包内文件解压至 `Services/Gateway/`
2. 在 `config/.config.php` 里面找到相关内容并替换，在 `//其他面板显示设置` 这条注释上面

```
# flyfox
$_ENV['flyfoxpay'] = [
    'config' => [
        'hid'      => 'xxx',    //Peapay商户号    xxx代表需要手动填写
        'key'      => 'xxx',    //Peapay密钥    xxx代表需要手动填写
        'name'     => '蒜香豌豆',
        'sitename' => 'SSPANEL'
        
    ]
];
```
