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
PaymentProcessingHandler.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\PaymentProcessing; |
| 7 | |
| 8 | class PaymentProcessingHandler extends PaymentHandler |
| 9 | { |
| 10 | /** |
| 11 | * @param PaymentProcessing $paymentCommand |
| 12 | */ |
| 13 | public function __construct(PaymentProcessing $paymentCommand) |
| 14 | { |
| 15 | parent::__construct($paymentCommand); |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * @return DonationStatus |
| 20 | */ |
| 21 | protected function getPaymentStatus(): DonationStatus |
| 22 | { |
| 23 | return DonationStatus::PROCESSING(); |
| 24 | } |
| 25 | } |
| 26 |