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 +}