|
|
@@ -75,34 +75,6 @@ readonly class PaymentManager
|
|
|
return $this->getPaymentProvider($paymentID)->refundQuery($refundID);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取指定支付方式
|
|
|
- */
|
|
|
- public function getPayment($paymentID): array
|
|
|
- {
|
|
|
- return [
|
|
|
- // todo
|
|
|
- ];
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 开启支付方式
|
|
|
- */
|
|
|
- public function enablePayment($paymentID): bool
|
|
|
- {
|
|
|
- // todo
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 关闭支付方式
|
|
|
- */
|
|
|
- public function disablePayment($paymentID): bool
|
|
|
- {
|
|
|
- // todo
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
public function getPaymentProvider(string $paymentID): PaymentProviderInterface
|
|
|
{
|
|
|
$extension = $this->extensionManager->getExtension($paymentID);
|