Class: Dibs::Results::Capture
- Inherits:
-
DibsResult
- Object
- DibsResult
- Dibs::Results::Capture
- Defined in:
- lib/results/capture.rb
Instance Attribute Summary
Attributes inherited from DibsResult
Instance Method Summary collapse
Methods inherited from DibsResult
#accepted?, #declined?, #initialize, #method_missing
Constructor Details
This class inherits a constructor from Dibs::Results::DibsResult
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Dibs::Results::DibsResult
Instance Method Details
#result_text ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/results/capture.rb', line 6 def result_text case self.reason when "0" then "Accepted" when "1" then "No response from acquirer." when "2" then "Timeout" when "3" then "Credit card expired." when "4" then "Rejected by acquirer." when "5" then "Authorisation older than 7 days. " when "6" then "Transaction status on the DIBS server does not allow capture." when "7" then "Amount too high." when "8" then "Error in the parameters sent to the DIBS server. An additional parameter called \"message\" is returned, with a value that may help identifying the error." when "9" then "Order number (orderid) does not correspond to the authorisation order number." when "10" then "Re-authorisation of the transaction was rejected." when "11" then "Not able to communicate with the acquier." when "12" then "Confirm request error" when "14" then "Capture is called for a transaction which is pending for batch - i.e. capture was already called" when "15" then "Capture was blocked by DIBS." end end |