Class: Bygpay::Deposit::Paystack
- Inherits:
-
Bygpay::Deposits
- Object
- Bygpay::Deposits
- Bygpay::Deposit::Paystack
- Defined in:
- lib/bygpay/deposit/paystack.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” } Perform ExpressPay 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"
Perform ExpressPay Checkout Transaction
15 16 17 |
# File 'lib/bygpay/deposit/paystack.rb', line 15 def charge(amount, payload = {}) post(paystack_deposit_endpoint, payload.merge(amount: amount)) end |