commerce-8.x-2.8/modules/payment/src/PaymentStorageInterface.php
modules/payment/src/PaymentStorageInterface.php
<?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);
}
