Sha256: 14324929373d6db2f60efefe95a0cd69896889d6a98482c7db8feb4ba7a713bf

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

module Paydunya
  class DirectPay < Paydunya::Checkout::Core

    def credit_account(payee_account,amount)
      payload = {
        :account_alias => payee_account,
        :amount => amount
      }

      result = http_json_request(Paydunya::Setup.direct_pay_credit_base_url,payload)
      if result["response_code"] == "00"
        push_results(result)
        true
      else
        push_results(result)
        false
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
paydunya-1.0.5 lib/paydunya/direct_pay.rb
paydunya-1.0.4 lib/paydunya/direct_pay.rb
paydunya-1.0.3 lib/paydunya/direct_pay.rb
paydunya-1.0.2 lib/paydunya/direct_pay.rb