You are here

class DeclineException in Commerce Core 8.2

Base exception for declined transactions.

A transaction can be declined due to an invalid payment method, fraud check, expired authorization, etc.

Good explanation for Braintree: https://articles.braintreepayments.com/control-panel/transactions/declines

Hierarchy

Expanded class hierarchy of DeclineException

See also

\Drupal\commerce_payment\Exception\HardDeclineException

\Drupal\commerce_payment\Exception\SoftDeclineException

3 files declare their use of DeclineException
PaymentMethodAddForm.php in modules/payment/src/PluginForm/PaymentMethodAddForm.php
PaymentMethodEditForm.php in modules/payment/src/PluginForm/PaymentMethodEditForm.php
PaymentProcess.php in modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentProcess.php

File

modules/payment/src/Exception/DeclineException.php, line 17

Namespace

Drupal\commerce_payment\Exception
View source
class DeclineException extends PaymentGatewayException {

}

Members