|
|
@@ -1,44 +1,10 @@
|
|
|
<?php
|
|
|
declare(strict_types=1);
|
|
|
+
|
|
|
namespace SixShop\Payment\Contracts;
|
|
|
|
|
|
use SixShop\Payment\Enum\PaymentBizEnum;
|
|
|
|
|
|
-class PaymentResponse {
|
|
|
- public function __construct(public string $orderNo, public string $type, public array $raw)
|
|
|
- {
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class PaymentNotifyResult {
|
|
|
- public string $orderNo;
|
|
|
- public string $transactionId;
|
|
|
- public float $amount;
|
|
|
- public string $status; // success/fail
|
|
|
- public array $raw;
|
|
|
-}
|
|
|
-
|
|
|
-class PaymentQueryResult {
|
|
|
- public string $orderNo;
|
|
|
- public string $status; // paid/unpaid/closed
|
|
|
- public float $amount;
|
|
|
- public array $raw;
|
|
|
-}
|
|
|
-
|
|
|
-class PaymentRefundResult {
|
|
|
- public string $refundNo;
|
|
|
- public string $orderNo;
|
|
|
- public float $refundAmount;
|
|
|
- public string $status; // success/fail
|
|
|
- public array $raw;
|
|
|
-}
|
|
|
-
|
|
|
-class PaymentRefundQueryResult {
|
|
|
- public string $refundNo;
|
|
|
- public string $status; // success/fail/processing
|
|
|
- public array $raw;
|
|
|
-}
|
|
|
-
|
|
|
interface PaymentProviderInterface
|
|
|
{
|
|
|
/**
|