Class: Bygpay::Deposit::Rave

Inherits:
Bygpay::Deposits show all
Defined in:
lib/bygpay/deposit/rave.rb

Instance Attribute Summary

Attributes included from Utils

#amount, #meta_data, #response, #response_text, #result, #status, #transaction_id, #uuid

Instance Method Summary collapse

Methods inherited from Bygpay::Deposits

#transaction_status

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_title": null,
"custom_logo": null,
"country": "GH",
"currency": "GHS"

Perform a RaveRedirect Transaction



15
16
17
# File 'lib/bygpay/deposit/rave.rb', line 15

def charge(amount, payload = {})
  post(rave_deposit_endpoint, payload.merge(amount: amount))
end