Skip to content
Oleg Fetisov edited this page Sep 27, 2016 · 3 revisions

Before you make a payment please check if your SDK is initialized.

To list some kind of transaction you should to call all function on needed model. It has 3 parameters:

  • :offset - The start point in the sorted list of records from which the results set will start
  • :page_size - The number of records to display per page
  • :sort - Determines how the list is sorted (time-descending or time-ascending)

Models that has listing available are:

  • Transaction
  • Payment
  • Preauth
  • Refund
Example: list payments
result_last_ten = Judopay::Payment.all
result_first_twenty= Judopay::Payment.all(:offset => 0, :page_size => 20, :sort => 'time-ascending')

Clone this wiki locally