module StarkitBanking::Payment

Public Instance Methods

is_eft() click to toggle source
# File lib/starkit_banking/concerns/payment.rb, line 12
def is_eft
  self.transfer_type != 'IMT'
end
is_imt() click to toggle source
# File lib/starkit_banking/concerns/payment.rb, line 8
def is_imt
  self.transfer_type == 'IMT'
end
release(opts = {}) click to toggle source
# File lib/starkit_banking/concerns/payment.rb, line 16
def release(opts = {})
  self.payment_account.instance_variable_set(:@password, opts[:api_password])
  self.environment = self.payment_account.environment
  self.updated_by = opts[:current_user_id]
  self.approve
  self.reference_no = self.id
  self.response = StarkitBanking::API::Factory.get_client(self).exec(self)
end
sync_status(opts = {}) click to toggle source
# File lib/starkit_banking/concerns/payment.rb, line 25
def sync_status(opts = {})
  self.payment_account.instance_variable_set(:@password, opts[:api_password])
  self.response = StarkitBanking::API::Factory.get_client(self, 'GetStatus').exec(self)
end