From 56ebf759efbc88702f2b4b11f8de9aa8bef03412 Mon Sep 17 00:00:00 2001 From: tomatofishball <50076952+tomatofishball@users.noreply.github.com> Date: Mon, 29 Apr 2019 23:48:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=95=AA=E8=8C=84=E4=BA=91?= =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增番茄云支付 --- app/Services/Payment.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Services/Payment.php b/app/Services/Payment.php index 2c916b6f..035f003a 100644 --- a/app/Services/Payment.php +++ b/app/Services/Payment.php @@ -10,7 +10,7 @@ namespace App\Services; use App\Services\Config; use App\Services\Gateway\{ - AopF2F, Codepay, DoiAMPay, PaymentWall, ChenPay, SPay, TrimePay, YftPay + AopF2F, Codepay, DoiAMPay, PaymentWall, ChenPay, SPay, TrimePay, YftPay, TomatoPay }; class Payment @@ -20,6 +20,8 @@ class Payment switch($method){ case("codepay"): return new Codepay(); + case("tomatopay"): + return new TomatoPay(); case("doiampay"): return new DoiAMPay(); case("paymentwall"): @@ -62,4 +64,4 @@ class Payment public static function purchase($request, $response, $args){ return self::getClient()->purchase($request, $response, $args); } -} \ No newline at end of file +}