activemerchant/active_merchant

View on GitHub
lib/active_merchant/billing/gateways/card_save.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    class CardSaveGateway < IridiumGateway
      # CardSave lets you handle failovers on payments by providing 3 gateways in case one happens to be down
      # URLS = ['https://gw1.cardsaveonlinepayments.com:4430/','https://gw2.cardsaveonlinepayments.com:4430/','https://gw3.cardsaveonlinepayments.com:4430/']

      self.money_format = :cents
      self.default_currency = 'GBP'
      self.supported_cardtypes = %i[visa maestro master american_express jcb]
      self.supported_countries = ['GB']
      self.homepage_url = 'http://www.cardsave.net/'
      self.display_name = 'CardSave'

      def initialize(options = {})
        super
        @test_url = 'https://gw1.cardsaveonlinepayments.com:4430/'
        @live_url = 'https://gw1.cardsaveonlinepayments.com:4430/'
      end
    end
  end
end