public function AcceptJsInterface::declinePayment in Commerce Authorize.Net 8
Declines the given payment under review.
Only payments in the 'unauthorized_review' and 'authorization_review' states can be declined.
Parameters
\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.
Throws
\Drupal\commerce_payment\Exception\PaymentGatewayException Thrown when the transaction fails for any reason.
1 method overrides AcceptJsInterface::declinePayment()
- AcceptJs::declinePayment in src/
Plugin/ Commerce/ PaymentGateway/ AcceptJs.php - Declines the given payment under review.
File
- src/
Plugin/ Commerce/ PaymentGateway/ AcceptJsInterface.php, line 42
Class
- AcceptJsInterface
- Provides the Authorize.net Accept.js payment gateway interface.
Namespace
Drupal\commerce_authnet\Plugin\Commerce\PaymentGatewayCode
public function declinePayment(PaymentInterface $payment);