Class: Pay::BuyGoods

Inherits:
Payment show all
Defined in:
lib/ruby/pay.rb

Overview

MPESA Buy Goods Online (C2B / B2C)

Constant Summary

Constants inherited from Payment

Payment::B2C, Payment::C2B

Instance Attribute Summary

Attributes inherited from Payment

#config, #pass_key, #payment_credentials, #push_type

Instance Method Summary collapse

Methods inherited from Payment

#initiate_b2c, #initiate_balance_request, #initiate_stk_push

Constructor Details

#initialize(config: AppConfig.new, pass_key: nil) ⇒ BuyGoods

Returns a new instance of BuyGoods.



100
101
102
# File 'lib/ruby/pay.rb', line 100

def initialize(config: AppConfig.new, pass_key: nil)
  super(config: config, pass_key: pass_key, push_type: 1)
end