Class: Fonepaisa::PaymentRequestURL

Inherits:
Client
  • Object
show all
Defined in:
lib/fonepaisa/payment_request_url.rb

Constant Summary

Constants inherited from Client

Client::BASE_URL

Instance Attribute Summary

Attributes inherited from Client

#params

Instance Method Summary collapse

Methods inherited from Client

#initialize, #response_valid?

Constructor Details

This class inherits a constructor from Fonepaisa::Client

Instance Method Details

#executeObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/fonepaisa/payment_request_url.rb', line 3

def execute
  hash_key = secure_hash_key(request_params)

  response = RestClient.post(
    "#{BASE_URL}/getpaymentrequesturl",
    request_params.merge(hash: hash_key)
  )

  response.body
end