PaymentAbandonedHandler.php
4 years ago
PaymentCompleteHandler.php
4 years ago
PaymentHandler.php
4 years ago
PaymentProcessingHandler.php
4 years ago
PaymentRefundedHandler.php
4 years ago
RedirectOffsiteHandler.php
4 years ago
RespondToBrowserHandler.php
4 years ago
SubscriptionCompleteHandler.php
4 years ago
SubscriptionProcessingHandler.php
3 years ago
PaymentRefundedHandler.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\PaymentGateways\CommandHandlers; |
| 4 | |
| 5 | use Give\Donations\ValueObjects\DonationStatus; |
| 6 | use Give\Framework\PaymentGateways\Commands\PaymentRefunded; |
| 7 | |
| 8 | class PaymentRefundedHandler extends PaymentHandler |
| 9 | { |
| 10 | /** |
| 11 | * @param PaymentRefunded $paymentCommand |
| 12 | */ |
| 13 | public function __construct(PaymentRefunded $paymentCommand) |
| 14 | { |
| 15 | parent::__construct($paymentCommand); |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * @inheritdoc |
| 20 | */ |
| 21 | protected function getPaymentStatus(): DonationStatus |
| 22 | { |
| 23 | return DonationStatus::REFUNDED(); |
| 24 | } |
| 25 | } |
| 26 |