Sha256: 3a2377a15a85da51aac15732453432f860a6b8ae07b9ff005cdbccbd80a5d0b8

Contents?: true

Size: 423 Bytes

Versions: 1

Compression:

Stored size: 423 Bytes

Contents

module Paydunya
  class DirectPay < Paydunya::Checkout::Core
    def credit_account(account_alias, amount, withdraw_mode = nil)
      payload = {
        account_alias: account_alias,
        amount: amount,
        withdraw_mode: withdraw_mode
      }

      result = send_post_request(Paydunya::Setup.direct_pay_credit_base_url, payload)
      push_results(result)
      result['response_code'] == '00'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paydunya-1.0.6 lib/paydunya/direct_pay.rb