Class: Paya::Certification::Web
- Inherits:
-
Object
- Object
- Paya::Certification::Web
- Defined in:
- lib/paya/certification/web.rb
Constant Summary collapse
- ROUTING_NUMBERS =
[490000018, 490000034, 490000018, 490000018]
- TERMINAL_IDS =
[2310, 2311, 2314, 2315, 2312, 2313, 2317, 2316]
- AMOUNTS =
[1.50, 1.84, 16.79, 1.50]
- IDENTIFIERS =
{0 => 'R', 1 => 'R', 2 => 'V', 3 => 'F'}
Instance Method Summary collapse
- #build_options(amount, routing_number, identifier) ⇒ Object
-
#initialize ⇒ Web
constructor
A new instance of Web.
- #script ⇒ Object
Constructor Details
#initialize ⇒ Web
Returns a new instance of Web.
10 11 12 |
# File 'lib/paya/certification/web.rb', line 10 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/web.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: '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 26 |
# File 'lib/paya/certification/web.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 pscc = paya.process_single_certification_check , terminal_id, identifier log << pscc end end log end |