refactor: 重构规范部分代码、邮件队列增加失败重试、去除多个支付方式、更新依赖

This commit is contained in:
xboard
2024-04-10 00:51:03 +08:00
parent ec63e05575
commit 4c6c7182e2
50 changed files with 421 additions and 1005 deletions
+7 -3
View File
@@ -1,10 +1,14 @@
<?php
namespace App\Payments;
use App\Exceptions\ApiException;
class CoinPayments {
public function __construct($config) {
class CoinPayments
{
protected $config;
public function __construct($config)
{
$this->config = $config;
}
@@ -99,7 +103,7 @@ class CoinPayments {
throw new ApiException('Payment Timed Out or Error');
} else {
//payment is pending, you can optionally add a note to the order page
return('IPN OK: pending');
return ('IPN OK: pending');
}
}
}