Class: LazerPayModule::Payment
- Defined in:
- lib/lazerpay/main_module.rb
Instance Method Summary collapse
- #get_donation_link(payload) ⇒ Object
- #get_standard_link(payload) ⇒ Object
- #init(payload) ⇒ Object
-
#initialize ⇒ Payment
constructor
A new instance of Payment.
- #verify(reference) ⇒ Object
Constructor Details
#initialize ⇒ Payment
Returns a new instance of Payment.
18 |
# File 'lib/lazerpay/main_module.rb', line 18 def initialize; end |
Instance Method Details
#get_donation_link(payload) ⇒ Object
38 39 40 41 42 |
# File 'lib/lazerpay/main_module.rb', line 38 def get_donation_link payload response = Agent.post( "/payment_links/donation", { secret_key: @@sk, public_key: @@pk, data: payload } ); return response.to_h; end |
#get_standard_link(payload) ⇒ Object
32 33 34 35 36 |
# File 'lib/lazerpay/main_module.rb', line 32 def get_standard_link payload response = Agent.post( "/payment_links/standard", { secret_key: @@sk, public_key: @@pk, data: payload } ); return response.to_h; end |