Class: Judopay::WebPayments::Transaction

Inherits:
Model
  • Object
show all
Defined in:
lib/judopay/models/web_payments/transaction.rb

Constant Summary

Constants inherited from Model

Model::VALID_PAGING_OPTIONS

Class Method Summary collapse

Methods inherited from Model

all, check_api_method_is_supported, #check_api_method_is_supported, #check_judo_id, #create, #resource_path, #valid_api_methods, valid_options, #validate

Class Method Details

.find(reference) ⇒ Judopay::Mash

Find a specific web payment given a valid payment reference

Parameters:

  • reference (String)

    Payment reference

Returns:



13
14
15
16
# File 'lib/judopay/models/web_payments/transaction.rb', line 13

def self.find(reference)
  api = Judopay::API.new
  api.get(@resource_path + '/' + reference.to_s)
end