AcceptJsInterface.php in Commerce Authorize.Net 8
File
src/Plugin/Commerce/PaymentGateway/AcceptJsInterface.phpView source
<?php
namespace Drupal\commerce_authnet\Plugin\Commerce\PaymentGateway;
use Drupal\commerce_payment\Entity\PaymentInterface;
use Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\OnsitePaymentGatewayInterface;
use Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\SupportsAuthorizationsInterface;
use Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\SupportsRefundsInterface;
use Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\SupportsUpdatingStoredPaymentMethodsInterface;
/**
* Provides the Authorize.net Accept.js payment gateway interface.
*/
interface AcceptJsInterface extends OnsitePaymentGatewayInterface, SupportsAuthorizationsInterface, SupportsRefundsInterface, SupportsUpdatingStoredPaymentMethodsInterface {
/**
* Approves the given payment.
*
* Only payments in the 'unauthorized_review' and 'authorization_review'
* states can be approved.
*
* @param \Drupal\commerce_payment\Entity\PaymentInterface $payment
* The payment.
*
* @throws \Drupal\commerce_payment\Exception\PaymentGatewayException
* Thrown when the transaction fails for any reason.
*/
public function approvePayment(PaymentInterface $payment);
/**
* Declines the given payment under review.
*
* Only payments in the 'unauthorized_review' and 'authorization_review'
* states can be declined.
*
* @param \Drupal\commerce_payment\Entity\PaymentInterface $payment
* The payment.
*
* @throws \Drupal\commerce_payment\Exception\PaymentGatewayException
* Thrown when the transaction fails for any reason.
*/
public function declinePayment(PaymentInterface $payment);
}
Interfaces
Name![]() |
Description |
---|---|
AcceptJsInterface | Provides the Authorize.net Accept.js payment gateway interface. |