You are here

public function ManualPaymentGatewayInterface::createPayment in Commerce Core 8.2

Creates a payment.

Parameters

\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.

bool $received: Whether the payment was already received.

1 method overrides ManualPaymentGatewayInterface::createPayment()
Manual::createPayment in modules/payment/src/Plugin/Commerce/PaymentGateway/Manual.php
Creates a payment.

File

modules/payment/src/Plugin/Commerce/PaymentGateway/ManualPaymentGatewayInterface.php, line 27

Class

ManualPaymentGatewayInterface
Provides the base interface for manual payment gateways.

Namespace

Drupal\commerce_payment\Plugin\Commerce\PaymentGateway

Code

public function createPayment(PaymentInterface $payment, $received = FALSE);