Class: Pay::BuyGoods
Overview
MPESA Buy Goods Online (C2B / B2C)
Constant Summary
Constants inherited from Payment
Instance Attribute Summary
Attributes inherited from Payment
#config, #pass_key, #payment_credentials, #push_type
Instance Method Summary collapse
-
#initialize(config: AppConfig.new, pass_key: nil) ⇒ BuyGoods
constructor
A new instance of BuyGoods.
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 |