新增番茄云支付

新增番茄云支付
A-dev
tomatofishball 8 years ago committed by GitHub
parent fc8319b9db
commit 56ebf759ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save