|
|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|