Class: PaypalServerSdk::PaResStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal_server_sdk/models/pa_res_status.rb

Overview

Transactions status result identifier. The outcome of the issuer’s authentication.

Constant Summary collapse

PA_RES_STATUS =
[
  # Successful authentication.

  SUCCESSFULAUTHENTICATION = 'Y'.freeze,

  # Failed authentication / account not verified / transaction denied.

  FAILEDAUTHENTICATION = 'N'.freeze,

  # Unable to complete authentication.

  UNABLETOCOMPLETEAUTHENTICATION = 'U'.freeze,

  # Successful attempts transaction.

  SUCCESSFULATTEMPTSTRANSACTION = 'A'.freeze,

  # Challenge required for authentication.

  CHALLENGEREQUIRED = 'C'.freeze,

  # Authentication rejected (merchant must not submit for authorization).

  AUTHENTICATIONREJECTED = 'R'.freeze,

  # Challenge required; decoupled authentication confirmed.

  DECOUPLEDAUTHENTICATION = 'D'.freeze,

  # Informational only; 3DS requestor challenge preference acknowledged.

  INFORMATIONALONLY = 'I'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



36
37
38
39
40
# File 'lib/paypal_server_sdk/models/pa_res_status.rb', line 36

def self.validate(value)
  return false if value.nil?

  true
end