Class: Paya::Certification::Ccd
- Inherits:
-
Object
- Object
- Paya::Certification::Ccd
- Defined in:
- lib/paya/certification/ccd.rb
Constant Summary collapse
- TERMINAL_IDS =
[1910, 1911, 1914, 1915, 1912, 1913, 1917, 1916]
- 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 ⇒ Ccd
constructor
A new instance of Ccd.
- #script ⇒ Object
Constructor Details
#initialize ⇒ Ccd
Returns a new instance of Ccd.
10 11 12 |
# File 'lib/paya/certification/ccd.rb', line 10 def initialize #ToDo end |
Instance Method Details
#build_options(amount, routing_number, identifier) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/paya/certification/ccd.rb', line 27 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', company_name: 'Test', 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
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/paya/certification/ccd.rb', line 14 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 |