Module: OgoneRails
- Extended by:
- OgoneRails
- Included in:
- OgoneRails
- Defined in:
- lib/ogone-rails/config.rb,
lib/ogone-rails/helpers.rb,
lib/ogone-rails/check-auth.rb,
lib/ogone-rails/string-to-hash.rb
Defined Under Namespace
Modules: Helpers Classes: CheckAuth, Form, StringToHash
Constant Summary collapse
- TEST_SERVICE_URL =
'https://secure.ogone.com/ncol/test/orderstandard.asp'
- LIVE_SERVICE_URL =
'https://secure.ogone.com/ncol/prod/orderstandard.asp'
- STATUS_CODES =
{ 0 => "Incomplete or invalid", 1 => "Cancelled by client", 2 => "Authorization refused", 4 => "Order stored", 40 => "Stored waitingexternal result", 41 => "Waiting client payment", 5 => "Authorized", 50 => "Authorized waiting external result", 51 => "Authorization waiting", 52 => "Authorization not known", 55 => "Stand-by", 56 => "OK with scheduled payments", 57 => "Error in scheduled payments", 59 => "Authoriz. to get manually", 6 => "Authorized and cancelled", 61 => "Author. deletion waiting", 62 => "Author. deletion uncertain", 63 => "Author. deletion refused", 64 => "Authorized and cancelled", 7 => "Payment deleted", 71 => "Payment deletion pending", 72 => "Payment deletion uncertain", 73 => "Payment deletion refused", 74 => "Payment deleted", 75 => "Deletion processed by merchant", 8 => "Refund", 81 => "Refund pending", 82 => "Refund uncertain", 83 => "Refund refused", 84 => "Payment declined by the acquirer", 85 => "Refund processed by merchant", 9 => "Payment requested", 91 => "Payment processing", 92 => "Payment uncertain", 93 => "Payment refused", 94 => "Refund declined by the acquirer", 95 => "Payment processed by merchant", 99 => "Being processed" }
Class Method Summary collapse
- .currency ⇒ Object
- .language ⇒ Object
- .mode ⇒ Object
- .pspid ⇒ Object
- .sha_in ⇒ Object
- .sha_out ⇒ Object
Instance Method Summary collapse
Class Method Details
.currency ⇒ Object
87 88 89 |
# File 'lib/ogone-rails/config.rb', line 87 def self.currency @currency end |
.language ⇒ Object
91 92 93 |
# File 'lib/ogone-rails/config.rb', line 91 def self.language @language end |
.mode ⇒ Object
95 96 97 |
# File 'lib/ogone-rails/config.rb', line 95 def self.mode @mode end |
.pspid ⇒ Object
83 84 85 |
# File 'lib/ogone-rails/config.rb', line 83 def self.pspid @pspid end |
.sha_in ⇒ Object
75 76 77 |
# File 'lib/ogone-rails/config.rb', line 75 def self.sha_in @sha_in end |
.sha_out ⇒ Object
79 80 81 |
# File 'lib/ogone-rails/config.rb', line 79 def self.sha_out @sha_out end |
Instance Method Details
#config(c = {}) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/ogone-rails/config.rb', line 54 def config c = {} c.each do |key, value| case key when :pspid @pspid = value when :sha_in @sha_in = value when :sha_out @sha_out = value when :currency @currency = value when :language @language = value when :mode @mode = value end end end |