public function CompletePayment::execute in Payment 8.2
Completes a payment.
Parameters
\Drupal\payment\Entity\PaymentInterface $payment:
Return value
\Symfony\Component\HttpFoundation\Response
1 string reference to 'CompletePayment::execute'
File
- src/
Controller/ CompletePayment.php, line 19
Class
- CompletePayment
- Handles the "complete payment" route.
Namespace
Drupal\payment\ControllerCode
public function execute(PaymentInterface $payment) {
return $payment
->getPaymentMethod()
->getPaymentExecutionResult()
->getCompletionResponse()
->getResponse();
}