Class: ActiveMerchant::Billing::VerifiGateway
- Defined in:
- lib/active_merchant/billing/gateways/verifi.rb
Defined Under Namespace
Classes: VerifiPostData
Constant Summary collapse
- URL =
'https://secure.verifi.com/gw/api/transact.php'
- RESPONSE_CODE_MESSAGES =
{ "100" => "Transaction was Approved", "200" => "Transaction was Declined by Processor", "201" => "Do Not Honor", "202" => "Insufficient Funds", "203" => "Over Limit", "204" => "Transaction not allowed", "220" => "Incorrect payment Data", "221" => "No Such Card Issuer", "222" => "No Card Number on file with Issuer", "223" => "Expired Card", "224" => "Invalid Expiration Date", "225" => "Invalid Card Security Code", "240" => "Call Issuer for Further Information", "250" => "Pick Up Card", "251" => "Lost Card", "252" => "Stolen Card", "253" => "Fraudulent Card", "260" => "Declined With further Instructions Available (see response text)", "261" => "Declined - Stop All Recurring Payments", "262" => "Declined - Stop this Recurring Program", "263" => "Declined - Update Cardholder Data Available", "264" => "Declined - Retry in a few days", "300" => "Transaction was Rejected by Gateway", "400" => "Transaction Error Returned by Processor", "410" => "Invalid Merchant Configuration", "411" => "Merchant Account is Inactive", "420" => "Communication Error", "421" => "Communication Error with Issuer", "430" => "Duplicate Transaction at Processor", "440" => "Processor Format Error", "441" => "Invalid Transaction Information", "460" => "Processor Feature Not Available", "461" => "Unsupported Card Type" }
- SUCCESS =
1
- TRANSACTIONS =
{ :authorization => 'auth', :purchase => 'sale', :capture => 'capture', :void => 'void', :credit => 'credit', :refund => 'refund' }
Constants inherited from Gateway
Gateway::CREDIT_DEPRECATION_MESSAGE, Gateway::CURRENCIES_WITHOUT_FRACTIONS, Gateway::DEBIT_CARDS
Instance Attribute Summary
Attributes inherited from Gateway
Instance Method Summary collapse
- #authorize(money, credit_card, options = {}) ⇒ Object
- #capture(money, authorization, options = {}) ⇒ Object
- #credit(money, credit_card_or_authorization, options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ VerifiGateway
constructor
A new instance of VerifiGateway.
- #purchase(money, credit_card, options = {}) ⇒ Object
- #refund(money, reference, options = {}) ⇒ Object
- #void(authorization, options = {}) ⇒ Object
Methods inherited from Gateway
#card_brand, card_brand, inherited, supports?, #test?
Methods included from Utils
#deprecated, generate_unique_id
Methods included from CreditCardFormatting
Methods included from RequiresParameters
Methods included from PostsData
included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request
Constructor Details
#initialize(options = {}) ⇒ VerifiGateway
Returns a new instance of VerifiGateway.
66 67 68 69 70 |
# File 'lib/active_merchant/billing/gateways/verifi.rb', line 66 def initialize( = {}) requires!(, :login, :password) @options = super end |
Instance Method Details
#authorize(money, credit_card, options = {}) ⇒ Object
76 77 78 |
# File 'lib/active_merchant/billing/gateways/verifi.rb', line 76 def (money, credit_card, = {}) (:authorization, money, credit_card, ) end |
#capture(money, authorization, options = {}) ⇒ Object
80 81 82 |
# File 'lib/active_merchant/billing/gateways/verifi.rb', line 80 def capture(money, , = {}) capture_void_or_refund_template(:capture, money, , ) end |
#credit(money, credit_card_or_authorization, options = {}) ⇒ Object
88 89 90 91 92 93 94 95 |
# File 'lib/active_merchant/billing/gateways/verifi.rb', line 88 def credit(money, , = {}) if .is_a?(String) deprecated CREDIT_DEPRECATION_MESSAGE refund(money, , ) else (:credit, money, , ) end end |
#purchase(money, credit_card, options = {}) ⇒ Object
72 73 74 |
# File 'lib/active_merchant/billing/gateways/verifi.rb', line 72 def purchase(money, credit_card, = {}) (:purchase, money, credit_card, ) end |
#refund(money, reference, options = {}) ⇒ Object
97 98 99 |
# File 'lib/active_merchant/billing/gateways/verifi.rb', line 97 def refund(money, reference, = {}) capture_void_or_refund_template(:refund, money, reference, ) end |
#void(authorization, options = {}) ⇒ Object
84 85 86 |
# File 'lib/active_merchant/billing/gateways/verifi.rb', line 84 def void(, = {}) capture_void_or_refund_template(:void, 0, , ) end |