feat : Bridge pay
This commit is contained in:
35
app/Service/Test/Bridge/Pay/StandardPaymentService.php
Normal file
35
app/Service/Test/Bridge/Pay/StandardPaymentService.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* This service file is part of item.
|
||||
*
|
||||
* @author ctexthuang
|
||||
* @contact ctexthuang@qq.com
|
||||
* @web_site https://ctexthuang.com
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Test\Bridge\Pay;
|
||||
|
||||
class StandardPaymentService extends PaymentGateway
|
||||
{
|
||||
/**
|
||||
* @param float $amount
|
||||
* @return array
|
||||
*/
|
||||
public function processPayment(float $amount): array
|
||||
{
|
||||
$this->logger->debug('Standard payment processing');
|
||||
return $this->payment->pay($amount);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float $amount
|
||||
* @return array
|
||||
*/
|
||||
public function processRefund(float $amount): array
|
||||
{
|
||||
$this->logger->debug('Standard refund processing');
|
||||
return $this->payment->refund($amount);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user