Class: Paymaster::GetTransaction

Inherits:
BaseRequest show all
Defined in:
lib/paymaster/get_transaction.rb

Defined Under Namespace

Classes: Response

Instance Attribute Summary collapse

Attributes inherited from BaseRequest

#client

Instance Method Summary collapse

Methods inherited from BaseRequest

#initialize, #perform, #sign

Constructor Details

This class inherits a constructor from Paymaster::BaseRequest

Instance Attribute Details

#paymaster_idObject

Returns the value of attribute paymaster_id.



24
25
26
# File 'lib/paymaster/get_transaction.rb', line 24

def paymaster_id
  @paymaster_id
end

#payment_idObject

Returns the value of attribute payment_id.



23
24
25
# File 'lib/paymaster/get_transaction.rb', line 23

def payment_id
  @payment_id
end

Instance Method Details

#endpointObject



26
27
28
# File 'lib/paymaster/get_transaction.rb', line 26

def endpoint
  "https://api.paymaster.ua/merchants/get-transaction"
end

#paramsObject



30
31
32
33
34
35
36
37
# File 'lib/paymaster/get_transaction.rb', line 30

def params
  {
    LMI_MERCHANT_ID: client.merchant_id,
    LMI_PAYMENT_NO: payment_id,
    LMI_SYS_PAYMENT_ID: paymaster_id,
    LMI_HASH: "",
  }.compact
end