module Privatbank::P24
Public Class Methods
account_statement(card_number, options)
click to toggle source
# File lib/privatbank/p24.rb, line 10 def self.account_statement card_number, options options.merge!(merchant_id: Privatbank.configuration.merchant_id, merchant_password: Privatbank.configuration.merchant_password) AccountStatement.new(card_number, options).request end
info(card_number, country = 'UA', options = {})
click to toggle source
# File lib/privatbank/p24.rb, line 28 def self.info card_number, country = 'UA', options = {} options.merge!(merchant_id: Privatbank.configuration.merchant_id, merchant_password: Privatbank.configuration.merchant_password) Info.new(card_number, country, options).request end
payment_status(payment_id, ref, options = {})
click to toggle source
# File lib/privatbank/p24.rb, line 34 def self.payment_status payment_id, ref, options = {} options.merge!(merchant_id: Privatbank.configuration.merchant_id, merchant_password: Privatbank.configuration.merchant_password) PaymentStatus.new(payment_id, ref, options).request end
send_money_pb(receiver, payment_id, amount, details, currency = 'UAH', options = {})
click to toggle source
# File lib/privatbank/p24.rb, line 16 def self.send_money_pb receiver, payment_id, amount, details, currency = 'UAH', options = {} options.merge!(merchant_id: Privatbank.configuration.merchant_id, merchant_password: Privatbank.configuration.merchant_password) SendMoneyPB.new(receiver, payment_id, amount, currency, details, options).request end
send_money_visa(receiver, full_name, payment_id, amount, details, currency = 'UAH', options = {})
click to toggle source
# File lib/privatbank/p24.rb, line 22 def self.send_money_visa receiver, full_name, payment_id, amount, details, currency = 'UAH', options = {} options.merge!(merchant_id: Privatbank.configuration.merchant_id, merchant_password: Privatbank.configuration.merchant_password) SendMoneyVisa.new(receiver, full_name, payment_id, amount, currency, details, options).request end