public function ManualPaymentGatewayInterface::receivePayment in Commerce Core 8.2
Receives the given payment.
Parameters
\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.
\Drupal\commerce_price\Price $amount: The received amount. If NULL, defaults to the entire payment amount.
1 method overrides ManualPaymentGatewayInterface::receivePayment()
- Manual::receivePayment in modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ Manual.php - Receives the given payment.
File
- modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ ManualPaymentGatewayInterface.php, line 37
Class
- ManualPaymentGatewayInterface
- Provides the base interface for manual payment gateways.
Namespace
Drupal\commerce_payment\Plugin\Commerce\PaymentGatewayCode
public function receivePayment(PaymentInterface $payment, Price $amount = NULL);