repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/posts_data.rb | lib/active_merchant/posts_data.rb | 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
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/version.rb | lib/active_merchant/version.rb | module ActiveMerchant
VERSION = '1.137.0'
end
| ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/empty.rb | lib/active_merchant/empty.rb | 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
| ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/errors.rb | lib/active_merchant/errors.rb | 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
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/country.rb | lib/active_merchant/country.rb | # 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
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/post_data.rb | lib/active_merchant/post_data.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/connection.rb | lib/active_merchant/connection.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/versionable.rb | lib/active_merchant/versionable.rb | 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 = {}
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing.rb | lib/active_merchant/billing.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/net_http_ssl_connection.rb | lib/active_merchant/net_http_ssl_connection.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/credit_card_formatting.rb | lib/active_merchant/billing/credit_card_formatting.rb | 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(... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/rails.rb | lib/active_merchant/billing/rails.rb | require 'active_merchant/billing/compatibility'
ActiveMerchant::Billing::Compatibility.rails_required!
| ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/payment_token.rb | lib/active_merchant/billing/payment_token.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/three_d_secure_eci_mapper.rb | lib/active_merchant/billing/three_d_secure_eci_mapper.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways.rb | lib/active_merchant/billing/gateways.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateway.rb | lib/active_merchant/billing/gateway.rb | 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 ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/apple_pay_payment_token.rb | lib/active_merchant/billing/apple_pay_payment_token.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/credit_card.rb | lib/active_merchant/billing/credit_card.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/avs_result.rb | lib/active_merchant/billing/avs_result.rb | # 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.... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/response.rb | lib/active_merchant/billing/response.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/cvv_result.rb | lib/active_merchant/billing/cvv_result.rb | 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',
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/base.rb | lib/active_merchant/billing/base.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/compatibility.rb | lib/active_merchant/billing/compatibility.rb | 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_... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/check.rb | lib/active_merchant/billing/check.rb | 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 ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/network_tokenization_credit_card.rb | lib/active_merchant/billing/network_tokenization_credit_card.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/model.rb | lib/active_merchant/billing/model.rb | 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
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/credit_card_methods.rb | lib/active_merchant/billing/credit_card_methods.rb | 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\... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/modern_payments_cim.rb | lib/active_merchant/billing/gateways/modern_payments_cim.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class ModernPaymentsCimGateway < Gateway # :nodoc:
self.test_url = 'https://secure.modpay.com/netservices/test/ModpayTest.asmx'
self.live_url = 'https://secure.modpay.com/ws/modpay.asmx'
LIVE_XMLNS = 'https://secure.modpay.com/ws/'
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/netpay.rb | lib/active_merchant/billing/gateways/netpay.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
#
# NETPAY Gateway
#
# Support for NETPAY's HTTP Connector payment gateway in Mexico.
#
# The gateway sends requests as HTTP POST and receives the response details
# in the HTTP header, making the process really rather simple.
#
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/payment_express.rb | lib/active_merchant/billing/gateways/payment_express.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/vpos.rb | lib/active_merchant/billing/gateways/vpos.rb | require 'digest'
require 'jwe'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class VposGateway < Gateway
self.test_url = 'https://vpos.infonet.com.py:8888'
self.live_url = 'https://vpos.infonet.com.py'
self.supported_countries = ['PY']
self.default_currency = 'PYG'
self.... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/fortis.rb | lib/active_merchant/billing/gateways/fortis.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class FortisGateway < Gateway
self.test_url = 'https://api.sandbox.fortis.tech/v1'
self.live_url = 'https://api.fortis.tech/v1'
self.supported_countries = %w{US CA}
self.default_currency = 'USD'
self.supported_cardtypes = %i[v... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/firstdata_e4.rb | lib/active_merchant/billing/gateways/firstdata_e4.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class FirstdataE4Gateway < Gateway
# TransArmor support requires v11 or lower
self.test_url = 'https://api.demo.globalgatewaye4.firstdata.com/transaction/v11'
self.live_url = 'https://api.globalgatewaye4.firstdata.com/transaction/v11'
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/payscout.rb | lib/active_merchant/billing/gateways/payscout.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/cyber_source_rest.rb | lib/active_merchant/billing/gateways/cyber_source_rest.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/mercado_pago.rb | lib/active_merchant/billing/gateways/mercado_pago.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/cc5.rb | lib/active_merchant/billing/gateways/cc5.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
# CC5 API is used by many banks in Turkey. Extend this base class to provide
# concrete implementations.
class CC5Gateway < Gateway
self.default_currency = 'TRY'
CURRENCY_CODES = {
'TRY' => 949,
'YTL' => 949,
'TR... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/pro_pay.rb | lib/active_merchant/billing/gateways/pro_pay.rb | require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class ProPayGateway < Gateway
self.test_url = 'https://xmltest.propay.com/API/PropayAPI.aspx'
self.live_url = 'https://epay.propay.com/api/propayapi.aspx'
self.supported_countries = %w[US CA]
self.default_currenc... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/loan_payment_pro_ach.rb | lib/active_merchant/billing/gateways/loan_payment_pro_ach.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class LoanPaymentProAchGateway < LoanPaymentProGateway
self.live_url = 'https://www.checkcommerce.com/EpnPublic/ACH.aspx'
self.test_url = 'https://sandbox.checkcommerce.com/EpnPublic/ACH.aspx'
API_VERSION = '1.4.2.36'.freeze
def in... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/hdfc.rb | lib/active_merchant/billing/gateways/hdfc.rb | require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class HdfcGateway < Gateway
self.display_name = 'HDFC'
self.homepage_url = 'http://www.hdfcbank.com/sme/sme-details/merchant-services/guzh6m0i'
self.test_url = 'https://securepgtest.fssnet.co.in/pgway/servlet/'
s... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/commercegate.rb | lib/active_merchant/billing/gateways/commercegate.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/pay_hub.rb | lib/active_merchant/billing/gateways/pay_hub.rb | 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]
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/trexle.rb | lib/active_merchant/billing/gateways/trexle.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class TrexleGateway < Gateway
self.test_url = 'https://core.trexle.com/api/v1'
self.live_url = 'https://core.trexle.com/api/v1'
self.default_currency = 'USD'
self.money_format = :cents
self.supported_countries = %w(AD AE AT AU... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/payex.rb | lib/active_merchant/billing/gateways/payex.rb | require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class PayexGateway < Gateway
class_attribute :live_external_url, :test_external_url, :live_confined_url, :test_confined_url
self.live_external_url = 'https://external.payex.com/'
self.test_external_url = 'https://test-... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/eway_managed.rb | lib/active_merchant/billing/gateways/eway_managed.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class EwayManagedGateway < Gateway
self.test_url = 'https://www.eway.com.au/gateway/ManagedPaymentService/test/managedCreditCardPayment.asmx'
self.live_url = 'https://www.eway.com.au/gateway/ManagedPaymentService/managedCreditCardPayment.asmx'
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/dibs.rb | lib/active_merchant/billing/gateways/dibs.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class DibsGateway < Gateway
self.display_name = 'DIBS'
self.homepage_url = 'http://www.dibspayment.com/'
self.live_url = 'https://api.dibspayment.com/merchant/v1/JSON/Transaction/'
self.supported_countries = %w[US FI NO SE GB]
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/pagarme.rb | lib/active_merchant/billing/gateways/pagarme.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/secure_pay.rb | lib/active_merchant/billing/gateways/secure_pay.rb | require 'active_merchant/billing/gateways/authorize_net'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class SecurePayGateway < Gateway
API_VERSION = '3.1'
self.live_url = self.test_url = 'https://www.securepay.com/AuthSpayAdapter/process.aspx'
class_attribute :duplicate_window
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/payflow_express_uk.rb | lib/active_merchant/billing/gateways/payflow_express_uk.rb | require 'active_merchant/billing/gateways/payflow_express'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class PayflowExpressUkGateway < PayflowExpressGateway
self.default_currency = 'GBP'
self.partner = 'PayPalUk'
self.supported_countries = ['GB']
self.homepage_url = 'https:/... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/firstdata_e4_v27.rb | lib/active_merchant/billing/gateways/firstdata_e4_v27.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class FirstdataE4V27Gateway < Gateway
self.test_url = 'https://api.demo.globalgatewaye4.firstdata.com/transaction/v28'
self.live_url = 'https://api.globalgatewaye4.firstdata.com/transaction/v28'
TRANSACTIONS = {
sale: '00... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/epay.rb | lib/active_merchant/billing/gateways/epay.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class EpayGateway < Gateway
self.live_url = 'https://ssl.ditonlinebetalingssystem.dk/'
self.default_currency = 'DKK'
self.money_format = :cents
self.supported_countries = %w[DK SE NO]
self.supported_cardtypes = %i[dankort forb... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/element.rb | lib/active_merchant/billing/gateways/element.rb | require 'nokogiri'
require 'securerandom'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class ElementGateway < Gateway
self.test_url = 'https://certtransaction.elementexpress.com/express.asmx'
self.live_url = 'https://transaction.elementexpress.com/express.asmx'
self.supported_count... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/ipg.rb | lib/active_merchant/billing/gateways/ipg.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class IpgGateway < Gateway
self.test_url = 'https://test.ipg-online.com/ipgapi/services'
self.live_url = 'https://www5.ipg-online.com/ipgapi/services'
self.supported_countries = %w(AR)
self.default_currency = 'ARS'
self.suppor... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/itransact.rb | lib/active_merchant/billing/gateways/itransact.rb | require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
# iTransact, Inc. is an authorized reseller of the PaymentClearing gateway. If your merchant service provider uses PaymentClearing.com to process payments, you can use this module.
#
#
# Please note, the username and API Acce... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/hi_pay.rb | lib/active_merchant/billing/gateways/hi_pay.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class HiPayGateway < Gateway
# to add more check => payment_product_list: https://developer.hipay.com/api-explorer/api-online-payments#/payments/generateHostedPaymentPage
PAYMENT_PRODUCT = {
'visa' => 'visa',
'master' => 'masterc... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/redsys.rb | lib/active_merchant/billing/gateways/redsys.rb | # coding: utf-8
require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
# = Redsys Merchant Gateway
#
# Gateway support for the Spanish "Redsys" payment gateway system. This is
# used by many banks in Spain and is particularly well supported by
# Catalunya Caixa's ecommerce d... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/bank_frick.rb | lib/active_merchant/billing/gateways/bank_frick.rb | require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
# For more information visit {Bank Frick Acquiring Services}[http://www.bankfrickacquiring.com/merchantsolutions_en.html]
#
# Written by Piers Chambers (Varyonic.com)
class BankFrickGateway < Gateway
self.test_url = 'ht... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/allied_wallet.rb | lib/active_merchant/billing/gateways/allied_wallet.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class AlliedWalletGateway < Gateway
self.display_name = 'Allied Wallet'
self.homepage_url = 'https://www.alliedwallet.com'
self.live_url = 'https://api.alliedwallet.com/merchants/'
self.supported_countries = ['US']
self.defau... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/stripe_payment_intents.rb | lib/active_merchant/billing/gateways/stripe_payment_intents.rb | require 'active_support/core_ext/hash/slice'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
# This gateway uses the current Stripe {Payment Intents API}[https://stripe.com/docs/api/payment_intents].
# For the legacy API, see the Stripe gateway
class StripePaymentIntentsGateway < StripeGateway
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | true |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/hps.rb | lib/active_merchant/billing/gateways/hps.rb | require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class HpsGateway < Gateway
version '1.0'
self.live_url = 'https://api2.heartlandportico.com/hps.exchange.posgateway/posgatewayservice.asmx'
self.test_url = 'https://cert.api2.heartlandportico.com/Hps.Exchange.PosGatewa... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/decidir.rb | lib/active_merchant/billing/gateways/decidir.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/visanet_peru.rb | lib/active_merchant/billing/gateways/visanet_peru.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class VisanetPeruGateway < Gateway
include Empty
self.display_name = 'VisaNet Peru Gateway'
self.homepage_url = 'http://www.visanet.com.pe'
self.test_url = 'https://devapi.vnforapps.com/api.tokenization/api/v2/merchant'
self.l... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/smart_ps.rb | lib/active_merchant/billing/gateways/smart_ps.rb | require File.join(File.dirname(__FILE__), '..', 'check.rb')
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class SmartPs < Gateway # :nodoc:
##
# This is the base gateway for processors who use the smartPS processing system
self.abstract_class = true
def initialize(options = {... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/net_registry.rb | lib/active_merchant/billing/gateways/net_registry.rb | module ActiveMerchant
module Billing
# Gateway for netregistry.com.au.
#
# Note that NetRegistry itself uses gateway service providers. At the
# time of this writing, there are at least two (Quest and Ingenico).
# This module has only been tested with Quest.
#
# Also note that NetRegistry... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/data_cash.rb | lib/active_merchant/billing/gateways/data_cash.rb | require 'active_support/core_ext/string/access'
module ActiveMerchant
module Billing
class DataCashGateway < Gateway
self.default_currency = 'GBP'
self.supported_countries = ['GB']
self.supported_cardtypes = %i[visa master american_express discover diners_club jcb maestro]
self.homepage... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/iridium.rb | lib/active_merchant/billing/gateways/iridium.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/flo2cash.rb | lib/active_merchant/billing/gateways/flo2cash.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class Flo2cashGateway < Gateway
self.display_name = 'Flo2Cash'
self.homepage_url = 'http://www.flo2cash.co.nz/'
self.test_url = 'https://demo.flo2cash.co.nz/ws/paymentws.asmx'
self.live_url = 'https://secure.flo2cash.co.nz/ws/paymen... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/s5.rb | lib/active_merchant/billing/gateways/s5.rb | require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class S5Gateway < Gateway
self.test_url = 'https://test.ctpe.io/payment/ctpe'
self.live_url = 'https://ctpe.io/payment/ctpe'
self.supported_countries = ['DK']
self.default_currency = 'EUR'
self.supported_ca... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/braintree_orange.rb | lib/active_merchant/billing/gateways/braintree_orange.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/first_giving.rb | lib/active_merchant/billing/gateways/first_giving.rb | require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class FirstGivingGateway < Gateway
self.test_url = 'http://usapisandbox.fgdev.net'
self.live_url = 'https://api.firstgiving.com'
self.supported_countries = ['US']
self.supported_cardtypes = %i[visa master america... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/qvalent.rb | lib/active_merchant/billing/gateways/qvalent.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class QvalentGateway < Gateway
self.display_name = 'Qvalent'
self.homepage_url = 'https://www.qvalent.com/'
self.test_url = 'https://ccapi.client.support.qvalent.com/post/CreditCardAPIReceiver'
self.live_url = 'https://ccapi.client.... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/kushki.rb | lib/active_merchant/billing/gateways/kushki.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class KushkiGateway < Gateway
self.display_name = 'Kushki'
self.homepage_url = 'https://www.kushkipagos.com'
self.test_url = 'https://api-uat.kushkipagos.com/'
self.live_url = 'https://api.kushkipagos.com/'
self.supported_cou... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/micropayment.rb | lib/active_merchant/billing/gateways/micropayment.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class MicropaymentGateway < Gateway
self.display_name = 'micropayment'
self.homepage_url = 'https://www.micropayment.de/'
self.test_url = self.live_url = 'https://sipg.micropayment.de/public/creditcardpsp/v1/nvp/'
self.supported_co... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/bambora_apac.rb | lib/active_merchant/billing/gateways/bambora_apac.rb | require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class BamboraApacGateway < Gateway
self.live_url = 'https://www.bambora.co.nz/interface/api'
self.test_url = 'https://demo.bambora.co.nz/interface/api'
self.supported_countries = %w[AU NZ]
self.supported_cardtype... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/pay_trace.rb | lib/active_merchant/billing/gateways/pay_trace.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class PayTraceGateway < Gateway
self.test_url = 'https://api.sandbox.paytrace.com'
self.live_url = 'https://api.paytrace.com'
self.supported_countries = ['US']
self.default_currency = 'USD'
self.supported_cardtypes = %i[visa m... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/instapay.rb | lib/active_merchant/billing/gateways/instapay.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class InstapayGateway < Gateway
self.live_url = 'https://trans.instapaygateway.com/cgi-bin/process.cgi'
# The countries the gateway supports merchants from as 2 digit ISO country codes
self.supported_countries = ['US']
self.money_fo... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/modern_payments.rb | lib/active_merchant/billing/gateways/modern_payments.rb | require 'active_merchant/billing/gateways/modern_payments_cim'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class ModernPaymentsGateway < Gateway
self.supported_countries = ModernPaymentsCimGateway.supported_countries
self.supported_cardtypes = ModernPaymentsCimGateway.supported_cardtypes... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/borgun.rb | lib/active_merchant/billing/gateways/borgun.rb | require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class BorgunGateway < Gateway
self.display_name = 'Borgun'
self.homepage_url = 'http://www.borgun.com'
self.test_url = 'https://gatewaytest.borgun.is/ws/Heimir.pub.ws:Authorization'
self.live_url = 'https://gatew... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/shift4_v2.rb | lib/active_merchant/billing/gateways/shift4_v2.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class Shift4V2Gateway < SecurionPayGateway
# same endpont for testing
self.live_url = 'https://api.shift4.com/'
self.display_name = 'Shift4'
self.homepage_url = 'https://dev.shift4.com/us/'
def credit(money, payment, options =... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/forte.rb | lib/active_merchant/billing/gateways/forte.rb | require 'json'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class ForteGateway < Gateway
include Empty
version 'v2'
self.test_url = "https://sandbox.forte.net/api/#{fetch_version}"
self.live_url = "https://api.forte.net/#{fetch_version}"
self.supported_countries = ['U... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/first_pay.rb | lib/active_merchant/billing/gateways/first_pay.rb | require 'active_merchant/billing/gateways/first_pay/first_pay_xml'
require 'active_merchant/billing/gateways/first_pay/first_pay_json'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class FirstPayGateway < Gateway
self.abstract_class = true
def self.new(options = {})
return FirstPa... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/merchant_one.rb | lib/active_merchant/billing/gateways/merchant_one.rb | require 'cgi'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class MerchantOneGateway < Gateway
class MerchantOneSslConnection < ActiveMerchant::Connection
def configure_ssl(http)
super(http)
http.use_ssl = true
end
end
BASE_URL = 'https://secure.m... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/ebanx.rb | lib/active_merchant/billing/gateways/ebanx.rb | require 'uri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class EbanxGateway < Gateway
self.test_url = 'https://sandbox.ebanxpay.com/ws/'
self.live_url = 'https://api.ebanxpay.com/ws/'
self.supported_countries = %w(BR MX CO CL AR PE BO EC CR DO GT PA PY UY)
self.default_curre... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/multi_pay.rb | lib/active_merchant/billing/gateways/multi_pay.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/rapyd.rb | lib/active_merchant/billing/gateways/rapyd.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class RapydGateway < Gateway
class_attribute :payment_redirect_test, :payment_redirect_live
version 'v1'
self.test_url = "https://sandboxapi.rapyd.net/#{fetch_version}/"
self.live_url = "https://api.rapyd.net/#{fetch_version}/"
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/moneris.rb | lib/active_merchant/billing/gateways/moneris.rb | 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",... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/merchant_ware_version_four.rb | lib/active_merchant/billing/gateways/merchant_ware_version_four.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class MerchantWareVersionFourGateway < Gateway
self.live_url = 'https://ps1.merchantware.net/Merchantware/ws/RetailTransaction/v4/Credit.asmx'
self.test_url = 'https://ps1.merchantware.net/Merchantware/ws/RetailTransaction/v4/Credit.asmx'
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/adyen.rb | lib/active_merchant/billing/gateways/adyen.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class AdyenGateway < Gateway
# we recommend setting up merchant-specific endpoints.
# https://docs.adyen.com/developers/api-manual#apiendpoints
self.test_url = 'https://pal-test.adyen.com/pal/servlet/'
self.live_url = 'https://pal-li... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | true |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/checkout.rb | lib/active_merchant/billing/gateways/checkout.rb | require 'rubygems'
require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class CheckoutGateway < Gateway
self.default_currency = 'USD'
self.money_format = :cents
self.supported_countries = %w[AD AT BE BG CH CY CZ DE DK EE ES FO FI FR GB GI GL GR HR HU IE IS IL IT LI LT LU... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/linkpoint.rb | lib/active_merchant/billing/gateways/linkpoint.rb | 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
# ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/credorax.rb | lib/active_merchant/billing/gateways/credorax.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class CredoraxGateway < Gateway
class_attribute :test_url, :live_na_url, :live_eu_url
self.display_name = 'Credorax Gateway'
self.homepage_url = 'https://www.finaro.com/'
# NOTE: the IP address you run the remote tests from will ne... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/paypal.rb | lib/active_merchant/billing/gateways/paypal.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/quickbooks.rb | lib/active_merchant/billing/gateways/quickbooks.rb | 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... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/versa_pay.rb | lib/active_merchant/billing/gateways/versa_pay.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class VersaPayGateway < Gateway
self.test_url = 'https://uat.versapay.com'
self.live_url = 'https://secure.versapay.com'
self.supported_countries = ['US']
self.default_currency = 'USD'
self.money_format = :cents
self.sup... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/pin.rb | lib/active_merchant/billing/gateways/pin.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class PinGateway < Gateway
version '1'
self.test_url = "https://test-api.pinpayments.com/#{fetch_version}"
self.live_url = "https://api.pinpayments.com/#{fetch_version}"
self.default_currency = 'AUD'
self.money_format = :cent... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/redsys_rest.rb | lib/active_merchant/billing/gateways/redsys_rest.rb | # coding: utf-8
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
# = Redsys Merchant Gateway
#
# Gateway support for the Spanish "Redsys" payment gateway system. This is
# used by many banks in Spain and is particularly well supported by
# Catalunya Caixa's ecommerce department.
#
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/cardknox.rb | lib/active_merchant/billing/gateways/cardknox.rb | 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 ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/opp.rb | lib/active_merchant/billing/gateways/opp.rb | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class OppGateway < Gateway
# = Open Payment Platform
#
# The Open Payment Platform includes a powerful omni-channel transaction processing API,
# enabling you to quickly and flexibly build new applications and services on the plat... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/mastercard.rb | lib/active_merchant/billing/gateways/mastercard.rb | module ActiveMerchant
module Billing
module MastercardGateway
def initialize(options = {})
requires!(options, :userid, :password)
super
end
def purchase(amount, payment_method, options = {})
if options[:pay_mode]
post = new_post
add_invoice(post, amou... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/lib/active_merchant/billing/gateways/quickpay.rb | lib/active_merchant/billing/gateways/quickpay.rb | require 'rexml/document'
require 'digest/md5'
require 'active_merchant/billing/gateways/quickpay/quickpay_v10'
require 'active_merchant/billing/gateways/quickpay/quickpay_v4to7'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class QuickpayGateway < Gateway
self.abstract_class = true
def s... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.