Class: Bygpay::Deposit::Hubtel
- Inherits:
-
Bygpay::Deposits
- Object
- Bygpay::Deposits
- Bygpay::Deposit::Hubtel
- Defined in:
- lib/bygpay/deposit/hubtel.rb
Instance Attribute Summary
Attributes included from Utils
#amount, #meta_data, #response, #response_text, #result, #status, #transaction_id, #uuid
Instance Method Summary collapse
-
#charge(amount, payload = {}) ⇒ Object
{ “customer_email” : “[email protected]”, “customer_phone”: null, “customer_firstname”: null, “customer_lastname”: null, “custom_logo”: null, “country”: “GH”, “currency”: “GHS”, “redirect_url”: “URL” “description”: “Payment info” } Perform Hubtel Checkout Transaction.
Methods inherited from Bygpay::Deposits
Methods included from Utils
#card_deposit_endpoint, #deposit_status_endpoint, #expresspay_deposit_endpoint, #get_status, #http_connect, #hubtel_deposit_endpoint, #mobile_deposit_endpoint, #mobile_withdraw_endpoint, #parse_response, #paystack_deposit_endpoint, #post, #rave_deposit_endpoint, #withdraw_status_endpoint
Instance Method Details
#charge(amount, payload = {}) ⇒ Object
"customer_email" : "[email protected]",
"customer_phone": null,
"customer_firstname": null,
"customer_lastname": null,
"custom_logo": null,
"country": "GH",
"currency": "GHS",
"redirect_url": "URL"
"description": "Payment info"
Perform Hubtel Checkout Transaction
16 17 18 |
# File 'lib/bygpay/deposit/hubtel.rb', line 16 def charge(amount, payload = {}) post(hubtel_deposit_endpoint, payload.merge(amount: amount)) end |