Dumplie\CustomerService\Application\Command\PayPaymentHandler::handle PHP Method

handle() public method

public handle ( PayPayment $command )
$command PayPayment
    public function handle(PayPayment $command)
    {
        $payment = $this->payments->getById(new PaymentId($command->paymentId()));
        $payment->pay();
    }
PayPaymentHandler