Class: Paya::Certification::Ppd
- Inherits:
-
Object
- Object
- Paya::Certification::Ppd
- Defined in:
- lib/paya/certification/ppd.rb
Constant Summary collapse
- TERMINAL_IDS =
[1810, 1811, 1814, 1815, 1812, 1813, 1817, 1816]
- ROUTING_NUMBERS =
[490000018, 490000018, 490000034, 490000018, 490000018]
- AMOUNTS =
[1.50, -10.50, 1.84, 16.79, 1.50]
- IDENTIFIERS =
{0 => 'R', 1 => 'R', 2 => 'R', 3 => 'V', 4 => 'F'}
Instance Method Summary collapse
- #build_options(amount, routing_number, identifier) ⇒ Object
-
#initialize ⇒ Ppd
constructor
A new instance of Ppd.
- #script ⇒ Object
Constructor Details
#initialize ⇒ Ppd
Returns a new instance of Ppd.
11 12 13 |
# File 'lib/paya/certification/ppd.rb', line 11 def initialize #ToDo end |
Instance Method Details
#build_options(amount, routing_number, identifier) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/paya/certification/ppd.rb', line 28 def amount, routing_number, identifier { request_id: '4654', transaction_id: '0a4f529d-70fd-4ddb-b909-b5598dc07579', routing_number: routing_number, account_number: '24413815', account_type: 'Checking', first_name: 'Test', last_name: 'Name', address_1: '1001 Test Drive', address_2: '#200', city: 'Destin', state: 'FL', dl_state: 'FL', dl_number: 'D12346544', dob_year: 1951, zip: '32540', phone_number: '8001231456', check_amount: amount, identifier: identifier } end |
#script ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/paya/certification/ppd.rb', line 15 def script log = [] TERMINAL_IDS.each do |terminal_id| AMOUNTS.each_with_index do |amount, index| identifier = IDENTIFIERS[index] = amount, ROUTING_NUMBERS[index], identifier paya = Paya::Base.new log << paya.process_single_certification_check(, terminal_id, identifier) end end log end |