Class: Iugu::HandleCallbacks::Referrals::BankVerification
- Defined in:
- lib/jera_payment/services/iugu/handle_callbacks/referrals/bank_verification.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Iugu::HandleCallbacks::Referrals::Base
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/jera_payment/services/iugu/handle_callbacks/referrals/bank_verification.rb', line 5 def call super @sub_account = SubAccount.find_by(account_id: @params["data"]["account_id"]) return 404 unless @sub_account.present? if @params["data"]["status"] == "accepted" change_current_household else delete_household(@sub_account.households.last) end return 200 end |