Exception: OnlinePayments::SDK::DeclinedPaymentException
- Inherits:
-
DeclinedTransactionException
- Object
- RuntimeError
- ApiException
- DeclinedTransactionException
- OnlinePayments::SDK::DeclinedPaymentException
- Defined in:
- lib/onlinepayments/sdk/declined_payment_exception.rb
Overview
Indicates that a payment is declined by the Online Payments platform or one of its downstream partners/acquirers.
Instance Attribute Summary
Attributes inherited from ApiException
#error_id, #errors, #response_body, #status_code
Instance Method Summary collapse
-
#initialize(status_code, response_body, errors) ⇒ DeclinedPaymentException
constructor
Create a new DeclinedPaymentException.
-
#payment_result ⇒ OnlinePayments::SDK::Domain::CreatePaymentResult?
The declined payment result returned by the Online Payments platform.
Methods inherited from ApiException
Constructor Details
#initialize(status_code, response_body, errors) ⇒ DeclinedPaymentException
Create a new DeclinedPaymentException.
8 9 10 11 |
# File 'lib/onlinepayments/sdk/declined_payment_exception.rb', line 8 def initialize(status_code, response_body, errors) super(status_code, response_body, errors&.error_id, errors&.errors, (errors)) @errors = errors end |
Instance Method Details
#payment_result ⇒ OnlinePayments::SDK::Domain::CreatePaymentResult?
The declined payment result returned by the Online Payments platform.
15 16 17 |
# File 'lib/onlinepayments/sdk/declined_payment_exception.rb', line 15 def payment_result @errors&.payment_result end |