You are here

PaymentProcessorInterface.php in Commerce Authorize.Net 8

File

src/PaymentProcessorInterface.php
View source
<?php

namespace Drupal\commerce_authnet;

use Drupal\commerce_payment\Entity\PaymentInterface;

/**
 * Interface to process payments.
 */
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);

}

Interfaces

Namesort descending Description
PaymentProcessorInterface Interface to process payments.