Class: Oyi::Acceptance
- Inherits:
-
Object
- Object
- Oyi::Acceptance
- Defined in:
- lib/oyi/acceptance.rb
Overview
Accept fund from yoru customers
Class Method Summary collapse
-
.create_invoice(params) ⇒ Object
Create a payment checkout URL with addtional details for invoicing.
-
.delete(params) ⇒ Object
Delete a payment/invoice link.
-
.get(params) ⇒ Object
Get the details of a payment/invoice link.
-
.payment_checkout(params) ⇒ Object
Create a payment checkout URL.
-
.status(params) ⇒ Object
Get the status of a transaction.
Class Method Details
.create_invoice(params) ⇒ Object
Create a payment checkout URL with addtional details for invoicing
13 14 15 |
# File 'lib/oyi/acceptance.rb', line 13 def create_invoice(params) Client.request http_method: :post, endpoint: '/api/payment-checkout/create-invoice', params: params end |
.delete(params) ⇒ Object
Delete a payment/invoice link
23 24 25 |
# File 'lib/oyi/acceptance.rb', line 23 def delete(params) Client.request http_method: :delete, endpoint: "/api/payment-checkout/#{params[:payment_link_id_or_partner_tx_id]}" end |
.get(params) ⇒ Object
Get the details of a payment/invoice link
28 29 30 |
# File 'lib/oyi/acceptance.rb', line 28 def get(params) Client.request http_method: :get, endpoint: "/api/payment-checkout/#{params[:payment_link_id_or_partner_tx_id]}" end |