zai_payment 2.7.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -164,7 +164,7 @@ bank_accounts = ZaiPayment::Resources::BankAccount.new
164
164
  response = bank_accounts.validate_routing_number('122235821')
165
165
 
166
166
  if response.success?
167
- routing_info = response.data
167
+ routing_info = response.data['routing_number']
168
168
 
169
169
  puts "Routing Number Validation Results:"
170
170
  puts " Routing Number: #{routing_info['routing_number']}"
@@ -197,7 +197,7 @@ begin
197
197
  validation_response = bank_accounts.validate_routing_number(routing_number)
198
198
 
199
199
  if validation_response.success?
200
- bank_info = validation_response.data
200
+ bank_info = validation_response.data['routing_number']
201
201
 
202
202
  # Show user the bank information for confirmation
203
203
  puts "You are creating an account with:"
@@ -246,7 +246,7 @@ class BankAccountsController < ApplicationController
246
246
  response = bank_accounts.validate_routing_number(routing_number)
247
247
 
248
248
  if response.success?
249
- bank_info = response.data
249
+ bank_info = response.data['routing_number']
250
250
 
251
251
  # Return bank info to display in the form
252
252
  render json: {