Class: KiriminAja::Services::PaymentService
- Inherits:
-
Object
- Object
- KiriminAja::Services::PaymentService
- Defined in:
- lib/kiriminaja/services/payment/payment.rb
Instance Method Summary collapse
- #get_payment(payment_id) ⇒ Object
-
#initialize(http) ⇒ PaymentService
constructor
A new instance of PaymentService.
Constructor Details
#initialize(http) ⇒ PaymentService
Returns a new instance of PaymentService.
6 7 8 |
# File 'lib/kiriminaja/services/payment/payment.rb', line 6 def initialize(http) @http = http end |
Instance Method Details
#get_payment(payment_id) ⇒ Object
10 11 12 |
# File 'lib/kiriminaja/services/payment/payment.rb', line 10 def get_payment(payment_id) @http.post_json("/api/mitra/v2/get_payment", { payment_id: payment_id }) end |