You are here

interface PaymentProcessorInterface in Commerce Authorize.Net 8

Interface to process payments.

Hierarchy

Expanded class hierarchy of PaymentProcessorInterface

All classes that implement PaymentProcessorInterface

File

src/PaymentProcessorInterface.php, line 10

Namespace

Drupal\commerce_authnet
View source
interface PaymentProcessorInterface {

  /**
   * Gets payments to process.
   *
   * @return \Drupal\commerce_payment\Entity\PaymentInterface[]
   *   An array of payments keyed by the entity id.
   */
  public function getPayments();

  /**
   * Processes the payment.
   *
   * @param \Drupal\commerce_payment\Entity\PaymentInterface $payment
   *   The payment.
   */
  public function processPayment(PaymentInterface $payment);

}

Members

Namesort descending Modifiers Type Description Overrides
PaymentProcessorInterface::getPayments public function Gets payments to process. 1
PaymentProcessorInterface::processPayment public function Processes the payment. 1