Exception: PaystackGateway::Transfers::VerifyTransferError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/paystack_gateway/transfers.rb

Overview

Raised when an error occurs while calling GET /transfer/verify/:reference

Constant Summary

Constants inherited from ApiError

ApiError::CONNECTION_ERROR_CLASSES

Instance Attribute Summary

Attributes inherited from ApiError

#cancellable, #original_error

Instance Method Summary collapse

Methods inherited from ApiError

#initialize, #method_missing, #network_error?, #respond_to_missing?

Constructor Details

This class inherits a constructor from PaystackGateway::ApiError

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PaystackGateway::ApiError

Instance Method Details

#transaction_not_found?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/paystack_gateway/transfers.rb', line 48

def transaction_not_found?
  response_body[:status] == false && response_body[:message].match?(/transfer not found/i)
end