public function PaymentMethodInterface::executePayment in Payment 8.2
Executes the payment.
When executing a payment, it may be authorized, or authorized and captured. After calling this method, more action may be required depending on the return value of self::getPaymentExecutionResult(). This method MUST set the payment's status to "payment_pending" before it performs any payment-method-specific logic.
Return value
\Drupal\payment\OperationResultInterface
See also
self::executePaymentAccess
2 methods override PaymentMethodInterface::executePayment()
- PaymentMethodBase::executePayment in src/
Plugin/ Payment/ Method/ PaymentMethodBase.php - Executes the payment.
- Unavailable::executePayment in src/
Plugin/ Payment/ Method/ Unavailable.php - Executes the payment.
File
- src/
Plugin/ Payment/ Method/ PaymentMethodInterface.php, line 58
Class
- PaymentMethodInterface
- Defines a payment method.
Namespace
Drupal\payment\Plugin\Payment\MethodCode
public function executePayment();