PaymentStorageInterface.php in Commerce Core 8.2
Namespace
Drupal\commerce_paymentFile
modules/payment/src/PaymentStorageInterface.phpView source
<?php
namespace Drupal\commerce_payment;
use Drupal\commerce_order\Entity\OrderInterface;
use Drupal\Core\Entity\ContentEntityStorageInterface;
/**
* Defines the interface for payment storage.
*/
interface PaymentStorageInterface extends ContentEntityStorageInterface {
/**
* Loads the payment for the given remote ID.
*
* @param string $remote_id
* The remote ID.
*
* @return \Drupal\commerce_payment\Entity\PaymentInterface|null
* The payment, or NULL if none found.
*/
public function loadByRemoteId($remote_id);
/**
* Loads all payments for the given order.
*
* @param \Drupal\commerce_order\Entity\OrderInterface $order
* The order.
*
* @return \Drupal\commerce_payment\Entity\PaymentInterface[]
* The payments.
*/
public function loadMultipleByOrder(OrderInterface $order);
}
Interfaces
Name![]() |
Description |
---|---|
PaymentStorageInterface | Defines the interface for payment storage. |