| 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 |
|