source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
fs_overlay/opt/certs_manager/lib/commands.rb
Ruby
mit
4,705
master
1,448
require 'open-uri' require 'fileutils' module Commands def chain_certs(domain) # Keeping it for backward compatibility unless File.exist?(domain.chained_cert_path) FileUtils.ln_s(domain.signed_cert_path, domain.chained_cert_path) end end def mkdir(domain) system "mkdir -p #{domain.dir}" ...
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
fs_overlay/opt/certs_manager/models/domain.rb
Ruby
mit
4,705
master
4,989
require 'fileutils' class Domain STAGES = %w(production staging local).freeze attr_reader :descriptor def initialize(descriptor) @descriptor = descriptor create_dir end def csr_path File.join(dir, 'domain.csr') end def signed_cert_path File.join(dir, 'signed.crt') end # For back...
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
spec/spec_helper.rb
Ruby
mit
4,705
master
5,314
# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause # this file to always be loaded, without a need to explicitly require it in any # file...
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
spec/models/domain_spec.rb
Ruby
mit
4,705
master
7,386
require 'spec_helper' require_relative '../../fs_overlay/opt/certs_manager/certs_manager' RSpec.describe Domain do before do allow(NAConfig).to receive(:stage).and_return('local') allow(FileUtils).to receive(:mkdir_p) end it 'returns correct names, upstream. redirect_target_url, stage etc.' do keys ...
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
spec/support/portal_helpers.rb
Ruby
mit
4,705
master
656
require 'open-uri' require 'openssl' module PortalHelpers extend self def docker_compose(command, env: {}) case command.to_sym when :up command = 'up -d' end system(env, "docker-compose --project-name portalspec #{command}") end def purge_existing_containers system 'docker rm --for...
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
spec/features/linked_containers_spec.rb
Ruby
mit
4,705
master
616
require 'spec_helper' RSpec.describe 'Linked containers', composition: 'linked-containers', type: :feature do context 'when no certificates are stored' do it 'should forward request to linked WordPress container' do docker_compose :up, env: { 'FORCE_RENEW' => 'true' } page = read_https_content ...
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
spec/features/auto_discovery_spec.rb
Ruby
mit
4,705
master
628
require 'spec_helper' RSpec.describe 'Auto discovery', composition: 'auto-discovery', type: :feature do context 'when no certificates are stored' do it 'should forward request to auto discovered WordPress container' do docker_compose :up, env: { 'FORCE_RENEW' => 'true' } page = read_https_content ...
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
spec/features/renewal_spec.rb
Ruby
mit
4,705
master
1,107
require 'spec_helper' # This spec intentionally reuse containers created by previous example group. # Since we don't retry the docker command here, to ensure it success, an # already initialized https-portal instance is required. RSpec.describe 'Renewal', :reuse_container, composition: 'minimal-setup', type: :feature ...
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
spec/features/minimal_setup_spec.rb
Ruby
mit
4,705
master
588
require 'spec_helper' RSpec.describe 'Minimal setup', composition: 'minimal-setup', type: :feature do context 'when no certificates are stored' do it 'should serve a welcome page' do docker_compose :up, env: { 'FORCE_RENEW' => 'true' } page = read_https_content expect(page).to include 'Welcome...
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
spec/features/static_site_spec.rb
Ruby
mit
4,705
master
837
require 'spec_helper' RSpec.describe 'Serving static site', composition: 'static-site', type: :feature do before :all do system 'docker-machine ssh $DOCKER_MACHINE_NAME rm -rf /data/https-portal' end it 'should serve a custom index page' do docker_compose :up system "docker-machine scp index.html $D...
github
SteveLTN/https-portal
https://github.com/SteveLTN/https-portal
spec/features/local_stage_spec.rb
Ruby
mit
4,705
master
627
require 'spec_helper' RSpec.describe 'Local stage', composition: 'local', type: :feature do context 'when no certificates are stored' do it 'should serve a welcome page' do docker_compose :up, env: { 'FORCE_RENEW' => 'true', 'STAGE' => 'local' } page = read_https_content expect(page).to includ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
activemerchant.gemspec
Ruby
mit
4,597
master
1,572
$LOAD_PATH.push File.expand_path('../lib', __FILE__) require 'active_merchant/version' Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'activemerchant' s.version = ActiveMerchant::VERSION s.summary = 'Framework and tools for dealing with credit card transactions.' ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
Rakefile
Ruby
mit
4,597
master
2,508
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) require 'active_merchant/version' begin require 'bundler' Bundler.setup rescue LoadError => e puts "Error loading bundler (#{e.message}): \"gem install bundler\" for bundler support." require 'rubygems' end require 'rake' require 'rake/testtask' require ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
Gemfile
Ruby
mit
4,597
master
363
source 'https://rubygems.org' gemspec gem 'jruby-openssl', platforms: :jruby gem 'rubocop', '~> 1.26.0', require: false group :test, :remote_test do # gateway-specific dependencies, keeping these gems out of the gemspec gem 'braintree', '>= 4.26.0' gem 'concurrent-ruby', '1.3.4' gem 'jose', '~> 1.2.0' gem '...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
generators/active_merchant_generator.rb
Ruby
mit
4,597
master
673
require "thor/group" class ActiveMerchantGenerator < Thor::Group include Thor::Actions argument :name class_option :destroy, :type => :boolean, :desc => "Destroys rather than generates the gateway" def initialize(*args) super rescue Thor::InvocationError at_exit{print self.class.help(shell)} ra...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
generators/gateway/gateway_generator.rb
Ruby
mit
4,597
master
1,129
require "thor/group" require "yaml" class GatewayGenerator < ActiveMerchantGenerator source_root File.expand_path("..", __FILE__) def generate template "templates/gateway.rb", gateway_file template "templates/gateway_test.rb", gateway_test_file template "templates/remote_gateway_test.rb", remote_gatew...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
generators/gateway/templates/gateway_test.rb
Ruby
mit
4,597
master
2,464
require 'test_helper' class <%= class_name %>Test < Test::Unit::TestCase def setup @gateway = <%= class_name %>Gateway.new(some_credential: 'login', another_credential: 'password') @credit_card = credit_card @amount = 100 @options = { order_id: '1', billing_address: address, descri...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
generators/gateway/templates/gateway.rb
Ruby
mit
4,597
master
3,067
module ActiveMerchant # :nodoc: module Billing # :nodoc: class <%= class_name %>Gateway < Gateway self.test_url = 'https://example.com/test' self.live_url = 'https://example.com/live' self.supported_countries = ['US'] self.default_currency = 'USD' self.supported_cardtypes = %i[visa ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
generators/gateway/templates/remote_gateway_test.rb
Ruby
mit
4,597
master
4,570
require 'test_helper' class Remote<%= class_name %>Test < Test::Unit::TestCase def setup @gateway = <%= class_name %>Gateway.new(fixtures(:<%= identifier %>)) @amount = 100 @credit_card = credit_card('4000100011112224') @declined_card = credit_card('4000300011112220') @options = { billing_...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant.rb
Ruby
mit
4,597
master
2,252
#-- # Copyright (c) 2005-2010 Tobias Luetke # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publi...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing.rb
Ruby
mit
4,597
master
759
require 'active_merchant/errors' require 'active_merchant/versionable' require 'active_merchant/billing/avs_result' require 'active_merchant/billing/cvv_result' require 'active_merchant/billing/credit_card_methods' require 'active_merchant/billing/credit_card_formatting' require 'active_merchant/billing/credit_card' r...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/network_connection_retries.rb
Ruby
mit
4,597
master
3,466
require 'openssl' module ActiveMerchant module NetworkConnectionRetries DEFAULT_RETRIES = 3 DEFAULT_CONNECTION_ERRORS = { EOFError => 'The remote server dropped the connection', Errno::ECONNRESET => 'The remote server reset the connection', Timeout::Error => 'The ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/net_http_ssl_connection.rb
Ruby
mit
4,597
master
1,583
require 'net/http' module NetHttpSslConnection module InnocuousCapitalize def capitalize(name) = name private :capitalize end class CaseSensitivePost < Net::HTTP::Post; prepend InnocuousCapitalize; end class CaseSensitivePatch < Net::HTTP::Patch; prepend InnocuousCapitalize; end class CaseSensitiv...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/posts_data.rb
Ruby
mit
4,597
master
3,354
module ActiveMerchant # :nodoc: module PostsData # :nodoc: def self.included(base) base.class_attribute :ssl_strict base.ssl_strict = true base.class_attribute :ssl_version base.ssl_version = nil base.class_attribute :min_version base.min_version = Connection::MIN_VERSION ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/post_data.rb
Ruby
mit
4,597
master
472
require 'cgi' module ActiveMerchant class PostData < Hash class_attribute :required_fields, instance_writer: false self.required_fields = [] def []=(key, value) return if value.blank? && !required?(key) super end def to_post_data collect { |key, value| "#{key}=#{CGI.escape(va...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/versionable.rb
Ruby
mit
4,597
master
609
module ActiveMerchant module Versionable def self.included(base) if base.respond_to?(:class_attribute) base.class_attribute :versions, default: {} base.extend(ClassMethods) end end module ClassMethods def inherited(subclass) super subclass.versions = {} ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/errors.rb
Ruby
mit
4,597
master
1,218
module ActiveMerchant # :nodoc: class ActiveMerchantError < StandardError # :nodoc: end class ConnectionError < ActiveMerchantError # :nodoc: attr_reader :triggering_exception def initialize(message, triggering_exception) super(message) @triggering_exception = triggering_exception end ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/country.rb
Ruby
mit
4,597
master
21,005
# encoding: utf-8 module ActiveMerchant # :nodoc: class InvalidCountryCodeError < StandardError end class CountryCodeFormatError < StandardError end class CountryCode attr_reader :value, :format def initialize(value) @value = value.to_s.upcase detect_format end def to_s ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/connection.rb
Ruby
mit
4,597
master
5,511
require 'uri' require 'net/http' require 'net/https' require 'benchmark' module ActiveMerchant class Connection using NetHttpSslConnection include NetworkConnectionRetries MAX_RETRIES = 3 OPEN_TIMEOUT = 60 READ_TIMEOUT = 60 VERIFY_PEER = true CA_FILE = File.expand_path('../certs/cacert.p...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/empty.rb
Ruby
mit
4,597
master
299
module ActiveMerchant module Empty private def empty?(value) case value when nil true when Array, Hash value.empty? when String value.strip.empty? when Numeric (value == 0) else false end end end end
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/credit_card.rb
Ruby
mit
4,597
master
13,539
require 'time' require 'date' require 'active_merchant/billing/model' module ActiveMerchant # :nodoc: module Billing # :nodoc: # A +CreditCard+ object represents a physical credit card, and is capable of validating the various # data associated with these. # # At the moment, the following credit card...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/check.rb
Ruby
mit
4,597
master
4,143
module ActiveMerchant # :nodoc: module Billing # :nodoc: # The Check object is a plain old Ruby object, similar to CreditCard. It supports validation # of necessary attributes such as checkholder's name, routing and account numbers, but it is # not backed by any database. # # You may use Check in ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/compatibility.rb
Ruby
mit
4,597
master
2,622
module ActiveMerchant module Billing module Compatibility module Model def valid? Compatibility.deprecated super end def errors Compatibility.deprecated internal_errors end end @rails_required = false def self.rails_...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/cvv_result.rb
Ruby
mit
4,597
master
982
module ActiveMerchant module Billing # Result of the Card Verification Value check # http://www.bbbonline.org/eExport/doc/MerchantGuide_cvv2.pdf # Check additional codes from cybersource website class CVVResult MESSAGES = { 'D' => 'CVV check flagged transaction as suspicious', ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/avs_result.rb
Ruby
mit
4,597
master
4,084
# encoding: utf-8 module ActiveMerchant module Billing # Implements the Address Verification System # https://www.cybersource.com/developers/other_resources/quick_references/avs_results/. # http://en.wikipedia.org/wiki/Address_Verification_System # http://www.emsecommerce.net/avs_cvv2_response_codes....
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/credit_card_formatting.rb
Ruby
mit
4,597
master
1,236
module ActiveMerchant # :nodoc: module Billing # :nodoc: module CreditCardFormatting def expdate(credit_card) "#{format(credit_card.month, :two_digits)}#{format(credit_card.year, :two_digits)}" end def strftime_yyyymm(credit_card) format(credit_card.year, :four_digits) + format(...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways.rb
Ruby
mit
4,597
master
465
require 'pathname' module ActiveMerchant module Billing load_path = Pathname.new(__FILE__ + '/../../..') Dir[File.dirname(__FILE__) + '/gateways/**/*.rb'].each do |filename| gateway_name = File.basename(filename, '.rb') gateway_classname = "#{gateway_name}_gateway".camelize gateway_fil...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/model.rb
Ruby
mit
4,597
master
565
require 'active_merchant/billing/compatibility' require 'active_merchant/empty' module ActiveMerchant module Billing class Model include Compatibility::Model include Empty def initialize(attributes = {}) attributes.each do |key, value| send("#{key}=", value) end ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/payment_token.rb
Ruby
mit
4,597
master
883
module ActiveMerchant # :nodoc: module Billing # :nodoc: # Base class representation of cryptographic payment data tokens that may be used for EMV-style transactions # like Apple Pay. Payment data may be transmitted via any data type, and may also be padded # with metadata specific to the cryptographer. T...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/apple_pay_payment_token.rb
Ruby
mit
4,597
master
764
module ActiveMerchant # :nodoc: module Billing # :nodoc: class ApplePayPaymentToken < PaymentToken # This is a representation of the token object specified here: # https://developer.apple.com/library/ios/documentation/PassKit/Reference/PKPaymentToken_Ref/ # https://developer.apple.com/library/IO...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/credit_card_methods.rb
Ruby
mit
4,597
master
20,305
require 'set' module ActiveMerchant # :nodoc: module Billing # :nodoc: # Convenience methods that can be included into a custom Credit Card object, such as an ActiveRecord based Credit Card object. module CreditCardMethods CARD_COMPANY_DETECTORS = { 'visa' => ->(num) { num =~ /^4\...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/network_tokenization_credit_card.rb
Ruby
mit
4,597
master
1,565
module ActiveMerchant # :nodoc: module Billing # :nodoc: class NetworkTokenizationCreditCard < CreditCard # A +NetworkTokenizationCreditCard+ object represents a tokenized credit card # using the EMV Network Tokenization specification, http://www.emvco.com/specifications.aspx?id=263. # # I...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/response.rb
Ruby
mit
4,597
master
3,255
module ActiveMerchant # :nodoc: module Billing # :nodoc: class Error < ActiveMerchantError # :nodoc: end class Response attr_reader :params, :message, :test, :authorization, :avs_result, :cvv_result, :error_code, :emv_authorization, :network_transaction_id, :pending def success? @suc...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/three_d_secure_eci_mapper.rb
Ruby
mit
4,597
master
1,083
module ActiveMerchant module Billing module ThreeDSecureEciMapper NON_THREE_D_SECURE_TRANSACTION = :non_three_d_secure_transaction ATTEMPTED_AUTHENTICATION_TRANSACTION = :attempted_authentication_transaction FULLY_AUTHENTICATED_TRANSACTION = :fully_authenticated_transaction ECI_00_01_02_M...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/base.rb
Ruby
mit
4,597
master
1,459
module ActiveMerchant # :nodoc: module Billing # :nodoc: module Base GATEWAY_MODE_DEPRECATION_MESSAGE = 'Base#gateway_mode is deprecated in favor of Base#mode and will be removed in a future version' # Set ActiveMerchant gateways in test mode. # # ActiveMerchant::Billing::Base.mode = :t...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateway.rb
Ruby
mit
4,597
master
13,056
require 'net/http' require 'net/https' require 'active_merchant/billing/response' module ActiveMerchant # :nodoc: module Billing # :nodoc: # # == Description # The Gateway class is the base class for all ActiveMerchant gateway implementations. # # The standard list of gateway functions that most ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/sage_pay.rb
Ruby
mit
4,597
master
17,659
module ActiveMerchant # :nodoc: module Billing # :nodoc: class SagePayGateway < Gateway cattr_accessor :simulate self.simulate = false class_attribute :simulator_url self.test_url = 'https://sandbox.opayo.eu.elavon.com/gateway/service' self.live_url = 'https://live.opayo.eu.elavon....
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/d_local.rb
Ruby
mit
4,597
master
13,643
module ActiveMerchant # :nodoc: module Billing # :nodoc: class DLocalGateway < Gateway self.test_url = 'https://sandbox.dlocal.com' self.live_url = 'https://api.dlocal.com' self.supported_countries = %w[AR BD BO BR CL CM CN CO CR DO EC EG GH GT IN ID JP KE MY MX MA NG PA PY PE PH SN SV TH TR TZ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/culqi.rb
Ruby
mit
4,597
master
9,068
require 'digest/md5' module ActiveMerchant # :nodoc: module Billing # :nodoc: # Important note: # === # Culqi merchant accounts are configured for either purchase or auth/capture # modes. This is configured by Culqi when setting up a merchant account and # largely depends on the transaction acqui...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/paypal.rb
Ruby
mit
4,597
master
5,788
require 'active_merchant/billing/gateways/paypal/paypal_common_api' require 'active_merchant/billing/gateways/paypal/paypal_recurring_api' require 'active_merchant/billing/gateways/paypal_express' module ActiveMerchant # :nodoc: module Billing # :nodoc: class PaypalGateway < Gateway version '2.0' in...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/mercado_pago.rb
Ruby
mit
4,597
master
12,523
module ActiveMerchant # :nodoc: module Billing # :nodoc: class MercadoPagoGateway < Gateway version 'v1' self.live_url = self.test_url = "https://api.mercadopago.com/#{fetch_version}" self.supported_countries = %w[AR BR CL CO MX PE UY] self.supported_cardtypes = %i[visa master american_e...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/pagarme.rb
Ruby
mit
4,597
master
7,438
module ActiveMerchant # :nodoc: module Billing # :nodoc: class PagarmeGateway < Gateway self.live_url = 'https://api.pagar.me/1/' self.supported_countries = ['BR'] self.default_currency = 'BRL' self.money_format = :cents self.supported_cardtypes = %i[visa master american_express dis...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/bpoint.rb
Ruby
mit
4,597
master
8,342
require 'nokogiri' module ActiveMerchant # :nodoc: module Billing # :nodoc: class BpointGateway < Gateway self.live_url = 'https://www.bpoint.com.au/evolve/service_1_4_4.asmx' self.supported_countries = ['AU'] self.default_currency = 'AUD' self.supported_cardtypes = %i[visa master americ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/cyber_source_rest.rb
Ruby
mit
4,597
master
21,278
require 'active_merchant/billing/gateways/cyber_source/cyber_source_common' module ActiveMerchant # :nodoc: module Billing # :nodoc: class CyberSourceRestGateway < Gateway include ActiveMerchant::Billing::CyberSourceCommon version 'v2' self.test_url = 'https://apitest.cybersource.com' s...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/cecabank.rb
Ruby
mit
4,597
master
437
require 'active_merchant/billing/gateways/cecabank/cecabank_xml' require 'active_merchant/billing/gateways/cecabank/cecabank_json' module ActiveMerchant # :nodoc: module Billing # :nodoc: class CecabankGateway < Gateway self.abstract_class = true def self.new(options = {}) return CecabankJso...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/so_easy_pay.rb
Ruby
mit
4,597
master
7,242
module ActiveMerchant # :nodoc: module Billing # :nodoc: class SoEasyPayGateway < Gateway self.live_url = self.test_url = 'https://secure.soeasypay.com/gateway.asmx' self.money_format = :cents self.supported_countries = %w[ US CA AT BE BG HR CY CZ DK EE FI FR DE GR HU IE IT LV L...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/multi_pay.rb
Ruby
mit
4,597
master
8,081
module ActiveMerchant module Billing class MultiPayGateway < Gateway self.test_url = 'https://ic2.multipay.mx:38263' self.live_url = 'https://ic2.multipay.mx:38263' self.supported_countries = ['CL'] self.default_currency = 'CLP' self.supported_cardtypes = %i[visa master american_exp...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/linkpoint.rb
Ruby
mit
4,597
master
17,131
require 'rexml/document' module ActiveMerchant # :nodoc: module Billing # :nodoc: # Initialization Options # :login Your store number # :pem The text of your linkpoint PEM file. Note # this is not the path to file, but its # ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/iridium.rb
Ruby
mit
4,597
master
15,627
module ActiveMerchant # :nodoc: module Billing # :nodoc: # For more information on the Iridium Gateway please download the # documentation from their Merchant Management System. # # The login and password are not the username and password you use to # login to the Iridium Merchant Management Syste...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/nab_transact.rb
Ruby
mit
4,597
master
9,939
require 'rexml/document' module ActiveMerchant # :nodoc: module Billing # :nodoc: # The National Australia Bank provide a payment gateway that seems to # be a rebadged Securepay Australia service, though some differences exist. class NabTransactGateway < Gateway version 'xml-4.2' version 'spx...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/world_net.rb
Ruby
mit
4,597
master
10,564
require 'nokogiri' module ActiveMerchant # :nodoc: module Billing # :nodoc: # See https://helpdesk.worldnettps.com/support/solutions/articles/1000167298-integrator-guide class WorldNetGateway < Gateway self.test_url = 'https://testpayments.worldnettps.com/merchant/xmlpayment' self.live_url = 'htt...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/global_transport.rb
Ruby
mit
4,597
master
5,448
require 'nokogiri' module ActiveMerchant # :nodoc: module Billing # :nodoc: class GlobalTransportGateway < Gateway self.test_url = 'https://certapia.globalpay.com/GlobalPay/transact.asmx/ProcessCreditCard' self.live_url = 'https://api.globalpay.com/GlobalPay/transact.asmx/ProcessCreditCard' se...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/deepstack.rb
Ruby
mit
4,597
master
15,261
module ActiveMerchant # :nodoc: module Billing # :nodoc: class DeepstackGateway < Gateway self.test_url = 'https://api.sandbox.deepstack.io' self.live_url = 'https://api.deepstack.io' self.supported_countries = ['US'] self.default_currency = 'USD' self.supported_cardtypes = %i[visa ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/clearhaus.rb
Ruby
mit
4,597
master
6,796
module ActiveMerchant # :nodoc: module Billing # :nodoc: class ClearhausGateway < Gateway self.test_url = 'https://gateway.test.clearhaus.com' self.live_url = 'https://gateway.clearhaus.com' self.supported_countries = %w[DK NO SE FI DE CH NL AD AT BE BG HR CY CZ FO GL EE FR GR ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/verifi.rb
Ruby
mit
4,597
master
8,501
require 'rexml/document' module ActiveMerchant # :nodoc: module Billing # :nodoc: class VerifiGateway < Gateway class VerifiPostData < PostData # Fields that will be sent even if they are blank self.required_fields = %i[amount type ccnumber ccexp firstname lastname ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/secure_pay_au.rb
Ruby
mit
4,597
master
9,273
require 'rexml/document' module ActiveMerchant # :nodoc: module Billing # :nodoc: class SecurePayAuGateway < Gateway version 'xml-4.2' version 'spxml-3.0', :periodic_api class_attribute :test_periodic_url, :live_periodic_url self.test_url = 'https://test.api.securepay.com.au/xmlapi/paym...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/psl_card.rb
Ruby
mit
4,597
master
9,703
module ActiveMerchant module Billing # # ActiveMerchant PSL Card Gateway # # Notes: # -To be able to use the capture function, the IP address of the machine must be # registered with PSL # -ESALE_KEYED should only be used in situations where the cardholder perceives the # tra...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/garanti.rb
Ruby
mit
4,597
master
8,219
module ActiveMerchant # :nodoc: module Billing # :nodoc: class GarantiGateway < Gateway self.live_url = 'https://sanalposprov.garanti.com.tr/VPServlet' self.test_url = 'https://sanalposprovtest.garanti.com.tr/VPServlet' # The countries the gateway supports merchants from as 2 digit ISO country ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/mercury.rb
Ruby
mit
4,597
master
12,696
module ActiveMerchant # :nodoc: module Billing # :nodoc: # The Mercury gateway integration by default requires that the Mercury # account being used has tokenization turned. This enables the use of # capture/refund/void without having to pass the credit card back in each # time. Only the "OneTime" tok...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/moneris.rb
Ruby
mit
4,597
master
20,414
require 'rexml/document' module ActiveMerchant # :nodoc: module Billing # :nodoc: # To learn more about the Moneris gateway, please contact # eselectplus@moneris.com for a copy of their integration guide. For # information on remote testing, please see "Test Environment Penny Value # Response Table",...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/litle.rb
Ruby
mit
4,597
master
24,128
require 'nokogiri' module ActiveMerchant # :nodoc: module Billing # :nodoc: class LitleGateway < Gateway version '9.14' class_attribute :postlive_url, :prelive_url self.test_url = 'https://www.testvantivcnp.com/sandbox/communicator/online' self.prelive_url = 'https://payments.vantivprel...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/tns.rb
Ruby
mit
4,597
master
895
module ActiveMerchant module Billing class TnsGateway < Gateway include MastercardGateway class_attribute :live_na_url, :live_ap_url, :live_eu_url, :test_na_url, :test_ap_url, :test_eu_url VERSION = '52' self.live_na_url = "https://secure.na.tnspayments.com/api/rest/version/#{VERSION}/"...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/monei.rb
Ruby
mit
4,597
master
16,834
require 'nokogiri' module ActiveMerchant # :nodoc: module Billing # :nodoc: # # == Monei gateway # This class implements Monei gateway for Active Merchant. For more information about Monei # gateway please go to http://www.monei.com # # === Setup # In order to set-up the gateway you need ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/evo_ca.rb
Ruby
mit
4,597
master
12,135
module ActiveMerchant # :nodoc: module Billing # :nodoc: # === EVO Canada payment gateway. # # EVO returns two different identifiers for most transactions, the # +authcode+ and the +transactionid+. Since +transactionid+ is used more # often (i.e. for {#capture}, {#refund}, {#void} and {#update}) ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/worldpay_online_payments.rb
Ruby
mit
4,597
master
7,777
module ActiveMerchant # :nodoc: module Billing # :nodoc: class WorldpayOnlinePaymentsGateway < Gateway self.live_url = 'https://api.worldpay.com/v1/' self.default_currency = 'GBP' self.money_format = :cents self.supported_countries = %w(HK US GB BE CH CZ DE DK ES FI FR GR HU IE IT LU MT...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/sallie_mae.rb
Ruby
mit
4,597
master
4,652
module ActiveMerchant # :nodoc: module Billing # :nodoc: class SallieMaeGateway < Gateway self.live_url = self.test_url = 'https://trans.salliemae.com/cgi-bin/process.cgi' # The countries the gateway supports merchants from as 2 digit ISO country codes self.supported_countries = ['US'] #...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/cardknox.rb
Ruby
mit
4,597
master
10,931
module ActiveMerchant # :nodoc: module Billing # :nodoc: class CardknoxGateway < Gateway self.live_url = 'https://x1.cardknox.com/gateway' self.supported_countries = %w[US CA GB] self.default_currency = 'USD' self.supported_cardtypes = %i[visa master american_express discover diners_club ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/pac_net_raven.rb
Ruby
mit
4,597
master
6,483
module ActiveMerchant # :nodoc: module Billing # :nodoc: class PacNetRavenGateway < Gateway AVS_ADDRESS_CODES = { 'avs_address_unavailable' => 'X', 'avs_address_not_checked' => 'X', 'avs_address_matched' => 'Y', 'avs_address_not_matched' => 'N', 'avs_addre...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/usa_epay_transaction.rb
Ruby
mit
4,597
master
13,719
module ActiveMerchant # :nodoc: module Billing # :nodoc: class UsaEpayTransactionGateway < Gateway self.live_url = 'https://www.usaepay.com/gate' self.test_url = 'https://sandbox.usaepay.com/gate' self.supported_cardtypes = %i[visa master american_express] self.supported_countries = ['U...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/paymill.rb
Ruby
mit
4,597
master
13,322
module ActiveMerchant # :nodoc: module Billing # :nodoc: class PaymillGateway < Gateway version 'v2' self.supported_countries = %w(AD AT BE BG CH CY CZ DE DK EE ES FI FO FR GB GI GR HR HU IE IL IM IS IT LI LT LU LV MC MT NL NO PL...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/decidir_plus.rb
Ruby
mit
4,597
master
12,492
module ActiveMerchant # :nodoc: module Billing # :nodoc: class DecidirPlusGateway < Gateway self.test_url = 'https://developers.decidir.com/api/v2' self.live_url = 'https://live.decidir.com/api/v2' self.supported_countries = ['AR'] self.default_currency = 'ARS' self.supported_cardty...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/payment_express.rb
Ruby
mit
4,597
master
15,099
require 'rexml/document' module ActiveMerchant # :nodoc: module Billing # :nodoc: # In NZ DPS supports ANZ, Westpac, National Bank, ASB and BNZ. # In Australia DPS supports ANZ, NAB, Westpac, CBA, St George and Bank of South Australia. # The Maybank in Malaysia is supported and the Citibank for Singapore...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/realex.rb
Ruby
mit
4,597
master
14,616
require 'nokogiri' require 'digest/sha1' module ActiveMerchant module Billing # Realex is the leading CC gateway in Ireland # see http://www.realexpayments.com # Contributed by John Ward (john@ward.name) # see http://thinedgeofthewedge.blogspot.com # # Realex works using the following # l...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/usa_epay.rb
Ruby
mit
4,597
master
736
module ActiveMerchant # :nodoc: module Billing # :nodoc: ## # Delegates to the appropriate gateway, either the Transaction or Advanced # depending on options passed to new. # class UsaEpayGateway < Gateway self.abstract_class = true ## # Creates an instance of UsaEpayTransaction...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/merchant_ware.rb
Ruby
mit
4,597
master
11,079
module ActiveMerchant # :nodoc: module Billing # :nodoc: class MerchantWareGateway < Gateway class_attribute :v4_live_url self.live_url = self.test_url = 'https://ps1.merchantware.net/MerchantWARE/ws/RetailTransaction/TXRetail.asmx' self.v4_live_url = 'https://ps1.merchantware.net/Merchantware/...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/payscout.rb
Ruby
mit
4,597
master
5,130
module ActiveMerchant # :nodoc: module Billing # :nodoc: class PayscoutGateway < Gateway self.live_url = self.test_url = 'https://secure.payscout.com/api/transact.php' self.supported_countries = ['US'] self.supported_cardtypes = %i[visa master american_express discover] self.default_curre...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/pay_conex.rb
Ruby
mit
4,597
master
8,457
module ActiveMerchant # :nodoc: module Billing # :nodoc: class PayConexGateway < Gateway include Empty version '3.8' self.test_url = "https://cert.payconex.net/api/qsapi/#{fetch_version}/" self.live_url = "https://secure.payconex.net/api/qsapi/#{fetch_version}/" self.supported_cou...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/airwallex.rb
Ruby
mit
4,597
master
13,376
module ActiveMerchant # :nodoc: module Billing # :nodoc: class AirwallexGateway < Gateway self.test_url = 'https://api-demo.airwallex.com/api/v1' self.live_url = 'https://pci-api.airwallex.com/api/v1' # per https://www.airwallex.com/docs/online-payments__overview, cards are accepted in all EU c...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/card_save.rb
Ruby
mit
4,597
master
860
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/...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/pay_hub.rb
Ruby
mit
4,597
master
8,043
module ActiveMerchant # :nodoc: module Billing # :nodoc: class PayHubGateway < Gateway self.live_url = 'https://checkout.payhub.com/transaction/api' self.supported_countries = ['US'] self.default_currency = 'USD' self.supported_cardtypes = %i[visa master american_express discover] ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/commercegate.rb
Ruby
mit
4,597
master
4,484
module ActiveMerchant # :nodoc: module Billing # :nodoc: class CommercegateGateway < Gateway self.test_url = self.live_url = 'https://secure.commercegate.com/gateway/nvp' self.supported_countries = %w( AD AT AX BE BG CH CY CZ DE DK ES FI FR GB GG GI GR HR HU IE IM IS IT JE LI LT LU LV...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/maxipago.rb
Ruby
mit
4,597
master
6,395
require 'nokogiri' module ActiveMerchant # :nodoc: module Billing # :nodoc: class MaxipagoGateway < Gateway API_VERSION = '3.1.1.15' self.live_url = 'https://api.maxipago.net/UniversalAPI/postXML' self.test_url = 'https://testapi.maxipago.net/UniversalAPI/postXML' self.supported_countri...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/worldpay_us.rb
Ruby
mit
4,597
master
6,900
require 'nokogiri' module ActiveMerchant # :nodoc: module Billing # :nodoc: class WorldpayUsGateway < Gateway class_attribute :backup_url self.display_name = 'Worldpay US' self.homepage_url = 'http://www.worldpay.com/us' # No sandbox, just use test cards. self.live_url = 'https:...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/decidir.rb
Ruby
mit
4,597
master
16,900
module ActiveMerchant # :nodoc: module Billing # :nodoc: class DecidirGateway < Gateway self.test_url = 'https://developers.decidir.com/api/v2' self.live_url = 'https://live.decidir.com/api/v2' self.supported_countries = ['AR'] self.money_format = :cents self.default_currency = 'ARS...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/paymentez.rb
Ruby
mit
4,597
master
12,233
require 'base64' require 'digest' module ActiveMerchant # :nodoc: module Billing # :nodoc: class PaymentezGateway < Gateway # :nodoc: version 'v2' self.test_url = "https://ccapi-stg.paymentez.com/#{fetch_version}/" self.live_url = "https://ccapi.paymentez.com/#{fetch_version}/" self.sup...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/spreedly_core.rb
Ruby
mit
4,597
master
12,041
require 'nokogiri' module ActiveMerchant # :nodoc: module Billing # :nodoc: # Public: This gateway allows you to interact with any gateway you've # created in Spreedly (https://spreedly.com). It's an adapter which can be # particularly useful if you already have code interacting with # ActiveMerchan...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/trust_commerce.rb
Ruby
mit
4,597
master
19,966
begin require 'tclink' rescue LoadError # Falls back to an SSL post to TrustCommerce end module ActiveMerchant # :nodoc: module Billing # :nodoc: # TO USE: # First, make sure you have everything setup correctly and all of your dependencies in place with: # # require 'rubygems' # require '...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/quickbooks.rb
Ruby
mit
4,597
master
14,620
module ActiveMerchant # :nodoc: module Billing # :nodoc: class QuickbooksGateway < Gateway version 'v4' self.test_url = 'https://sandbox.api.intuit.com' self.live_url = 'https://api.intuit.com' self.supported_countries = ['US'] self.default_currency = 'USD' self.supported_card...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/optimal_payment.rb
Ruby
mit
4,597
master
11,405
module ActiveMerchant # :nodoc: module Billing # :nodoc: class OptimalPaymentGateway < Gateway version 'v1' self.test_url = "https://webservices.test.optimalpayments.com/creditcardWS/CreditCardServlet/#{fetch_version}" self.live_url = "https://webservices.optimalpayments.com/creditcardWS/Credit...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
lib/active_merchant/billing/gateways/braintree_orange.rb
Ruby
mit
4,597
master
603
require 'active_merchant/billing/gateways/smart_ps' require 'active_merchant/billing/gateways/braintree/braintree_common' module ActiveMerchant # :nodoc: module Billing # :nodoc: class BraintreeOrangeGateway < SmartPs include BraintreeCommon self.display_name = 'Braintree (Orange Platform)' se...