Class: Ogone::OrderDirect
Constant Summary collapse
- MANDATORY_PARAMETERS =
%w[ PSPID ORDERID AMOUNT CURRENCY ALIAS USERID PSWD OPERATION ].freeze
Constants inherited from Base
Base::SIGNING_ALGORITHMS, Base::VALID_ENVIRONMENTS
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#add_parameters, #add_single_return_url, #check_shasign_out!, #environment=, #fields_for_payment, #initialize, #sha_algo=, #upcase_keys
Constructor Details
This class inherits a constructor from Ogone::Base
Instance Method Details
#perform_order ⇒ Object
21 22 23 24 25 |
# File 'lib/ogone/order_direct.rb', line 21 def perform_order url = "https://#{ogone_host}/ncol/#{@environment}/orderdirect.asp" res = HTTParty.get("#{url}?#{URI.encode_www_form(fields_for_payment)}") res.body end |
#pspid=(pspid) ⇒ Object
16 17 18 19 |
# File 'lib/ogone/order_direct.rb', line 16 def pspid=(pspid) super(pspid) @parameters[:PSPID] = pspid end |