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/test/remote/gateways/remote_paypal_express_test.rb | test/remote/gateways/remote_paypal_express_test.rb | require 'test_helper'
class PaypalExpressTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = PaypalExpressGateway.new(fixtures(:paypal_certificate))
@options = {
order_id: '230000',
email: 'buyer@jadedpallet.com',
billing_address: {
name: 'Fred Brooks',
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_money_movers_test.rb | test/remote/gateways/remote_money_movers_test.rb | require 'test_helper'
class RemoteMoneyMoversTest < Test::Unit::TestCase
def setup
@gateway = MoneyMoversGateway.new(fixtures(:money_movers))
@amount = 100
@declined_amount = 99
@credit_card = credit_card('4111111111111111')
@options = {
order_id: generate_unique_id,
billing_addres... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_element_test.rb | test/remote/gateways/remote_element_test.rb | require 'test_helper'
class RemoteElementTest < Test::Unit::TestCase
def setup
@gateway = ElementGateway.new(fixtures(:element))
@amount = 100
@credit_card = credit_card('4000100011112224')
@check = check
@options = {
order_id: '2',
billing_address: address.merge(zip: '87654'),
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_pro_pay_test.rb | test/remote/gateways/remote_pro_pay_test.rb | require 'test_helper'
class RemoteProPayTest < Test::Unit::TestCase
def setup
@gateway = ProPayGateway.new(fixtures(:pro_pay))
@amount = 100
@credit_card = credit_card('4747474747474747', verification_value: 999)
@declined_card = credit_card('4616161616161616')
@credit_card_without_cvv = credit_... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_axcessms_test.rb | test/remote/gateways/remote_axcessms_test.rb | require 'test_helper'
class RemoteAxcessmsTest < Test::Unit::TestCase
def setup
@gateway = AxcessmsGateway.new(fixtures(:axcessms))
@amount = 1500
@credit_card = credit_card('4200000000000000', month: 05, year: 2022)
@declined_card = credit_card('4444444444444444', month: 05, year: 2022)
@mode =... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_pin_test.rb | test/remote/gateways/remote_pin_test.rb | require 'test_helper'
class RemotePinTest < Test::Unit::TestCase
def setup
@gateway = PinGateway.new(fixtures(:pin))
@amount = 100
@credit_card = credit_card('5520000000000000', year: Time.now.year + 2)
@visa_credit_card = credit_card('4200000000000000', year: Time.now.year + 3)
@declined_card =... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_flo2cash_simple_test.rb | test/remote/gateways/remote_flo2cash_simple_test.rb | require 'test_helper'
class RemoteFlo2cashSimpleTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = Flo2cashSimpleGateway.new(fixtures(:flo2cash_simple))
@amount = 100
@credit_card = credit_card('5123456789012346', brand: :master, month: 5, year: 2017, verification_value: 111)
@d... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_psigate_test.rb | test/remote/gateways/remote_psigate_test.rb | require 'test_helper'
class PsigateRemoteTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = PsigateGateway.new(fixtures(:psigate))
PsigateGateway.ssl_strict = false
@amount = 2400
@creditcard = credit_card('4111111111111111')
@options = {
order_id: generate_unique_id,
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_beanstream_test.rb | test/remote/gateways/remote_beanstream_test.rb | require 'test_helper'
# This test suite assumes that you have enabled username/password transaction validation in your Beanstream account.
# You will experience some test failures if username/password validation transaction validation is not enabled.
# Beanstream does not allow Payment Profiles to be deleted with thei... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_iridium_test.rb | test/remote/gateways/remote_iridium_test.rb | # encoding: utf-8
require 'test_helper'
class RemoteIridiumTest < Test::Unit::TestCase
def setup
@gateway = IridiumGateway.new(fixtures(:iridium))
@amount = 100
@avs_card = credit_card('4921810000005462', { verification_value: '441' })
@cv2_card = credit_card('4976000000003436', { verification_valu... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_bank_frick_test.rb | test/remote/gateways/remote_bank_frick_test.rb | require 'test_helper'
class RemoteBankFrickTest < Test::Unit::TestCase
def setup
@gateway = BankFrickGateway.new(fixtures(:bank_frick))
@amount = 100
@credit_card = credit_card('4000100011112224')
@declined_card = credit_card('4222222222222')
@options = {
order_id: Time.now.to_i, # avoid ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_adyen_test.rb | test/remote/gateways/remote_adyen_test.rb | require 'test_helper'
class RemoteAdyenTest < Test::Unit::TestCase
def setup
@gateway = AdyenGateway.new(fixtures(:adyen))
@amount = 100
@bank_account = check(account_number: '123456789', routing_number: '121000358')
@adyen_bank_account = check(account_number: '9876543210', routing_number: '021000... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | true |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_modern_payments_test.rb | test/remote/gateways/remote_modern_payments_test.rb | require 'test_helper'
class RemoteModernPaymentTest < Test::Unit::TestCase
def setup
@gateway = ModernPaymentsGateway.new(fixtures(:modern_payments))
@amount = 100
@credit_card = credit_card('4111111111111111')
@declined_card = credit_card('4000000000000000')
@options = {
order_id: '1',
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_so_easy_pay_test.rb | test/remote/gateways/remote_so_easy_pay_test.rb | require 'test_helper'
class RemoteSoEasyPayTest < Test::Unit::TestCase
def setup
@gateway = SoEasyPayGateway.new(fixtures(:so_easy_pay))
@amount = 100
@credit_card = credit_card('4111111111111111', { verification_value: '000', month: '12', year: '2015' })
@declined_card = credit_card('40003000111122... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_secure_pay_au_test.rb | test/remote/gateways/remote_secure_pay_au_test.rb | require 'test_helper'
class RemoteSecurePayAuTest < Test::Unit::TestCase
class MyCreditCard
include ActiveMerchant::Billing::CreditCardMethods
attr_accessor :number, :month, :year, :first_name, :last_name, :verification_value, :brand
def initialize(params)
params.each { |k, v| instance_variable_se... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_credorax_test.rb | test/remote/gateways/remote_credorax_test.rb | require 'test_helper'
class RemoteCredoraxTest < Test::Unit::TestCase
def setup
@gateway = CredoraxGateway.new(fixtures(:credorax))
@amount = 100
@adviser_amount = 1000001
@credit_card = credit_card('4018810000100036', verification_value: '123', month: '12', year: 2034)
@fully_auth_card = credit... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | true |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_card_stream_test.rb | test/remote/gateways/remote_card_stream_test.rb | require 'test_helper'
class RemoteCardStreamTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = CardStreamGateway.new(fixtures(:card_stream))
@amex = credit_card(
'374245455400001',
month: '12',
year: Time.now.year + 1,
verification_value: '4887',
brand: :am... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_paybox_direct_test.rb | test/remote/gateways/remote_paybox_direct_test.rb | # encoding: utf-8
require 'test_helper'
class RemotePayboxDirectTest < Test::Unit::TestCase
def setup
fixtures = fixtures(:paybox_direct)
@gateway = PayboxDirectGateway.new(fixtures)
@amount = 100
@credit_card = credit_card(fixtures[:credit_card_ok])
@declined_card = credit_card(fixtures[:credi... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_safe_charge_test.rb | test/remote/gateways/remote_safe_charge_test.rb | require 'test_helper'
class RemoteSafeChargeTest < Test::Unit::TestCase
def setup
@gateway = SafeChargeGateway.new(fixtures(:safe_charge))
@amount = 100
@credit_card = credit_card('4000100011112224', verification_value: '912')
@declined_card = credit_card('4000300011112220')
@options = {
o... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_quickpay_v4_test.rb | test/remote/gateways/remote_quickpay_v4_test.rb | require 'test_helper'
class RemoteQuickpayV4Test < Test::Unit::TestCase
# These test assumes that you have not added your development IP in
# the Quickpay Manager.
def setup
@gateway = QuickpayGateway.new(fixtures(:quickpay_with_api_key).merge(version: 4))
@amount = 100
@options = {
order_id: ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_authorize_net_test.rb | test/remote/gateways/remote_authorize_net_test.rb | require 'test_helper'
class RemoteAuthorizeNetTest < Test::Unit::TestCase
def setup
@gateway = AuthorizeNetGateway.new(fixtures(:authorize_net))
@amount = 100
@credit_card = credit_card('4000100011112224')
@check = check
@declined_card = credit_card('400030001111222')
@payment_token = netwo... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | true |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_hdfc_test.rb | test/remote/gateways/remote_hdfc_test.rb | require 'test_helper'
class RemoteHdfcTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = HdfcGateway.new(fixtures(:hdfc))
@amount = 100
@credit_card = credit_card('4012001037141112')
# Use an American Express card to simulate a failure since HDFC does not
# support any prop... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_alelo_test.rb | test/remote/gateways/remote_alelo_test.rb | require 'test_helper'
require 'singleton'
class RemoteAleloTest < Test::Unit::TestCase
def setup
@gateway = AleloGateway.new(fixtures(:alelo))
@amount = 100
@credit_card = credit_card('4000100011112224')
@declined_card = credit_card('4000300011112220')
@options = {
order_id: '1',
est... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_worldpay_test.rb | test/remote/gateways/remote_worldpay_test.rb | require 'test_helper'
class RemoteWorldpayTest < Test::Unit::TestCase
def setup
@gateway = WorldpayGateway.new(fixtures(:world_pay_gateway))
@cftgateway = WorldpayGateway.new(fixtures(:world_pay_gateway_cft))
@amount = 100
@year = (Time.now.year + 2).to_s[-2..-1].to_i
@credit_card = credit_card(... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | true |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_trans_first_test.rb | test/remote/gateways/remote_trans_first_test.rb | require 'test_helper'
class RemoteTransFirstTest < Test::Unit::TestCase
def setup
@gateway = TransFirstGateway.new(fixtures(:trans_first))
@credit_card = credit_card('4485896261017708', verification_value: 999)
@check = check
@amount = 1201
@options = {
order_id: generate_unique_id,
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_ipp_test.rb | test/remote/gateways/remote_ipp_test.rb | require 'test_helper'
class RemoteIppTest < Test::Unit::TestCase
def setup
@gateway = IppGateway.new(fixtures(:ipp))
@credit_card = credit_card('4005550000000001')
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase'
}
end
def test_dump_transcri... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_modern_payments_cim_test.rb | test/remote/gateways/remote_modern_payments_cim_test.rb | require 'test_helper'
class RemoteModernPaymentsCimTest < Test::Unit::TestCase
def setup
@gateway = ModernPaymentsCimGateway.new(fixtures(:modern_payments))
@amount = 100
@credit_card = credit_card('4111111111111111')
@declined_card = credit_card('4000000000000000')
@options = {
billing_a... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_fat_zebra_test.rb | test/remote/gateways/remote_fat_zebra_test.rb | require 'test_helper'
class RemoteFatZebraTest < Test::Unit::TestCase
def setup
@gateway = FatZebraGateway.new(fixtures(:fat_zebra))
@amount = 100
@credit_card = credit_card('5123456789012346')
@declined_card = credit_card('4557012345678902')
@options = {
order_id: generate_unique_id,
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_shift4_test.rb | test/remote/gateways/remote_shift4_test.rb | require 'test_helper'
class RemoteShift4Test < Test::Unit::TestCase
def setup
@gateway = Shift4Gateway.new(fixtures(:shift4))
access_token = @gateway.setup_access_token
@gateway = Shift4Gateway.new(fixtures(:shift4).merge(access_token:))
@amount = 500
@credit_card = credit_card('400010001111222... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_plexo_test.rb | test/remote/gateways/remote_plexo_test.rb | require 'test_helper'
class RemotePlexoTest < Test::Unit::TestCase
def setup
@gateway = PlexoGateway.new(fixtures(:plexo))
@amount = 100
@credit_card = credit_card('5555555555554444', month: '12', year: Time.now.year + 1, verification_value: '111', first_name: 'Santiago', last_name: 'Navatta')
@decl... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_skipjack_test.rb | test/remote/gateways/remote_skipjack_test.rb | require 'test_helper'
class RemoteSkipJackTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = SkipJackGateway.new(fixtures(:skip_jack))
@credit_card = credit_card('4445999922225', verification_value: '999')
@amount = 100
@options = {
order_id: generate_unique_id,
em... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_opp_test.rb | test/remote/gateways/remote_opp_test.rb | require 'test_helper'
class RemoteOppTest < Test::Unit::TestCase
def setup
@gateway = OppGateway.new(fixtures(:opp))
@amount = 100
@valid_card = credit_card('4200000000000000', month: 05, year: Date.today.year + 2)
@invalid_card = credit_card('4444444444444444', month: 05, year: Date.today.year + 2)... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_quickpay_v5_test.rb | test/remote/gateways/remote_quickpay_v5_test.rb | require 'test_helper'
class RemoteQuickpayV5Test < Test::Unit::TestCase
# These test assumes that you have not added your development IP in
# the Quickpay Manager.
def setup
@gateway = QuickpayGateway.new(fixtures(:quickpay_with_api_key).merge(version: 5))
@amount = 100
@options = {
order_id: ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_netaxept_test.rb | test/remote/gateways/remote_netaxept_test.rb | require 'test_helper'
class RemoteNetaxeptTest < Test::Unit::TestCase
def setup
@gateway = NetaxeptGateway.new(fixtures(:netaxept))
@amount = 100
@credit_card = credit_card('4925000000000004')
@declined_card = credit_card('4925000000000087')
@options = {
order_id: generate_unique_id
}... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_efsnet_test.rb | test/remote/gateways/remote_efsnet_test.rb | require 'test_helper'
class RemoteEfsnetTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = EfsnetGateway.new(fixtures(:efsnet))
@credit_card = credit_card('4000100011112224')
@amount = 100
@declined_amount = 156
@options = { order_id: generate_unique_id,
b... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_data_cash_test.rb | test/remote/gateways/remote_data_cash_test.rb | require 'test_helper'
class RemoteDataCashTest < Test::Unit::TestCase
def setup
# gateway to connect to Datacash
@gateway = DataCashGateway.new(fixtures(:data_cash))
@mastercard = CreditCard.new(
number: '5120790000000034',
month: 3,
year: Date.today.year + 2,
first_name: 'Mark',... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_multi_pay_test.rb | test/remote/gateways/remote_multi_pay_test.rb | require 'test_helper'
class RemoteMultiPayTest < Test::Unit::TestCase
def setup
@gateway = MultiPayGateway.new(fixtures(:multi_pay))
@amount = 100
@credit_card = credit_card('5413330089020516', month: 1, year: 2030, verification_value: '111')
@declined_card = credit_card('4000000000000002')
@opt... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_merchant_ware_test.rb | test/remote/gateways/remote_merchant_ware_test.rb | require 'test_helper'
class RemoteMerchantWareTest < Test::Unit::TestCase
def setup
@gateway = MerchantWareGateway.new(fixtures(:merchant_ware))
@amount = rand(200..1199)
@credit_card = credit_card('5424180279791732', { brand: 'master' })
@options = {
order_id: generate_unique_id,
bill... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_linkpoint_test.rb | test/remote/gateways/remote_linkpoint_test.rb | #
# In order for this test to pass, a valid store number and PEM file
# are required. Unfortunately, with LinkPoint YOU CAN'T JUST USE ANY
# OLD STORE NUMBER. Also, you can't just generate your own PEM file.
# You'll need to use a special PEM file provided by LinkPoint.
#
# Go to http://www.linkpoint.com/support/sup_te... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_loan_payment_pro_test.rb | test/remote/gateways/remote_loan_payment_pro_test.rb | require 'test_helper'
class RemoteLoanPaymentProTest < Test::Unit::TestCase
def setup
@gateway = LoanPaymentProGateway.new(fixtures(:loan_payment_pro))
@amount = 500
@credit_card = credit_card('4000100011112224', month: 9, year: 2025, verification_value: '123')
@declined_card = credit_card('40001000... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_payflow_test.rb | test/remote/gateways/remote_payflow_test.rb | require 'test_helper'
class RemotePayflowTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = PayflowGateway.new(fixtures(:payflow))
@credit_card = credit_card(
'5105105105105100',
brand: 'master'
)
@options = {
billing_address: address,
email: 'cody@examp... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_cecabank_test.rb | test/remote/gateways/remote_cecabank_test.rb | require 'test_helper'
class RemoteCecabankTest < Test::Unit::TestCase
def setup
@gateway = CecabankGateway.new(fixtures(:cecabank))
@amount = 100
@credit_card = credit_card('5540500001000004', { month: 12, year: Time.now.year, verification_value: 989 })
@declined_card = credit_card('5540500001000004... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_wompi_test.rb | test/remote/gateways/remote_wompi_test.rb | require 'test_helper'
class RemoteWompiTest < Test::Unit::TestCase
def setup
@gateway = WompiGateway.new(fixtures(:wompi))
@amount = 150000
@credit_card = credit_card('4242424242424242')
@credit_card_without_cvv = credit_card('4242424242424242', verification_value: nil)
@declined_card = credit_c... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_iveri_test.rb | test/remote/gateways/remote_iveri_test.rb | require 'test_helper'
class RemoteIveriTest < Test::Unit::TestCase
def setup
@gateway = IveriGateway.new(fixtures(:iveri))
@amount = 100
@credit_card = credit_card('4242424242424242')
@bad_card = credit_card('2121212121212121')
@timeout_card = credit_card('5454545454545454')
@invalid_card = ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_mercado_pago_test.rb | test/remote/gateways/remote_mercado_pago_test.rb | require 'test_helper'
class RemoteMercadoPagoTest < Test::Unit::TestCase
def setup
exp_year = Time.now.year + 1
@gateway = MercadoPagoGateway.new(fixtures(:mercado_pago))
@argentina_gateway = MercadoPagoGateway.new(fixtures(:mercado_pago_argentina))
@colombian_gateway = MercadoPagoGateway.new(fixture... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_first_pay_json_test.rb | test/remote/gateways/remote_first_pay_json_test.rb | require 'test_helper'
class RemoteFirstPayJsonTest < Test::Unit::TestCase
def setup
@gateway = FirstPayGateway.new(fixtures(:first_pay_rest_json))
@amount = 100
@credit_card = credit_card('4111111111111111')
@declined_card = credit_card('5130405452262903')
@google_pay = network_tokenization_cre... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_webpay_test.rb | test/remote/gateways/remote_webpay_test.rb | # coding: utf-8
require 'test_helper'
class RemoteWebpayTest < Test::Unit::TestCase
def setup
@gateway = WebpayGateway.new(fixtures(:webpay))
@amount = 10000
@refund_amount = 2000
@credit_card = credit_card('4242424242424242')
@declined_card = credit_card('4000')
@new_credit_card = credit_c... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_verifi_test.rb | test/remote/gateways/remote_verifi_test.rb | require 'test_helper'
class VerifiTest < Test::Unit::TestCase
include ActiveMerchant::Billing
def setup
@gateway = VerifiGateway.new(fixtures(:verify))
@credit_card = credit_card('4111111111111111')
# Replace with your login and password for the Verifi test environment
@options = {
order_... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_stripe_connect_test.rb | test/remote/gateways/remote_stripe_connect_test.rb | require 'test_helper'
class RemoteStripeConnectTest < Test::Unit::TestCase
def setup
@gateway = StripeGateway.new(fixtures(:stripe))
@amount = 100
@credit_card = credit_card('4242424242424242')
@declined_card = credit_card('4000000000000002')
@new_credit_card = credit_card('5105105105105100')
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_braintree_blue_test.rb | test/remote/gateways/remote_braintree_blue_test.rb | require 'test_helper'
class RemoteBraintreeBlueTest < Test::Unit::TestCase
def setup
fixture_key = method_name.match?(/bank_account/i) ? :braintree_blue_with_ach_enabled : :braintree_blue
@gateway = BraintreeGateway.new(fixtures(fixture_key))
@braintree_backend = @gateway.instance_eval { @braintree_gatew... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | true |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_quickpay_v6_test.rb | test/remote/gateways/remote_quickpay_v6_test.rb | require 'test_helper'
class RemoteQuickpayV6Test < Test::Unit::TestCase
# These test assumes that you have not added your development IP in
# the Quickpay Manager.
def setup
@gateway = QuickpayGateway.new(fixtures(:quickpay_with_api_key).merge(version: 6))
@amount = 100
@options = {
order_id: ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_s5_test.rb | test/remote/gateways/remote_s5_test.rb | require 'test_helper'
class RemoteS5Test < Test::Unit::TestCase
def setup
@gateway = S5Gateway.new(fixtures(:s5))
@amount = 100
@credit_card = credit_card('4000100011112224')
@declined_card = credit_card('4000300011112220')
@options = {
order_id: '1',
billing_address: address,
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_priority_test.rb | test/remote/gateways/remote_priority_test.rb | require 'test_helper'
class RemotePriorityTest < Test::Unit::TestCase
def setup
@gateway = PriorityGateway.new(fixtures(:priority))
@amount = 2
@credit_amount = 2000
@credit_card = credit_card
@invalid_credit_card = credit_card('123456')
@replay_id = rand(100...99999999)
@options = { bil... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_flex_charge_test.rb | test/remote/gateways/remote_flex_charge_test.rb | require 'timecop'
require 'test_helper'
class RemoteFlexChargeTest < Test::Unit::TestCase
def setup
@gateway = FlexChargeGateway.new(fixtures(:flex_charge))
@amount = 100
@credit_card_cit = credit_card('4111111111111111', verification_value: '999', first_name: 'Cure', last_name: 'Tester')
@credit_ca... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_blue_pay_test.rb | test/remote/gateways/remote_blue_pay_test.rb | require 'test_helper'
class BluePayTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = BluePayGateway.new(fixtures(:blue_pay))
@amount = 100
@credit_card = credit_card('4242424242424242')
@options = {
order_id: generate_unique_id,
billing_address: address,
descri... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_paybox_direct_3ds_test.rb | test/remote/gateways/remote_paybox_direct_3ds_test.rb | # encoding: utf-8
require 'test_helper'
class RemotePayboxDirect3DSTest < Test::Unit::TestCase
def setup
fixtures = fixtures(:paybox_direct)
@gateway = PayboxDirectGateway.new(fixtures)
@amount = 100
@credit_card = credit_card(fixtures[:credit_card_ok_3ds])
@declined_card = credit_card(fixtures... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_iats_payments_test.rb | test/remote/gateways/remote_iats_payments_test.rb | require 'test_helper'
class IatsPaymentsTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = IatsPaymentsGateway.new(fixtures(:iats_payments))
@amount = 100
@credit_card = credit_card('4222222222222220')
@check = check(routing_number: '111111111', account_number: '12345678')
@o... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_monei_test.rb | test/remote/gateways/remote_monei_test.rb | require 'test_helper'
class RemoteMoneiTest < Test::Unit::TestCase
def setup
@gateway = MoneiGateway.new(
fixtures(:monei)
)
@amount = 100
@credit_card = credit_card('4548812049400004', month: 12, year: 2034, verification_value: '123')
@declined_card = credit_card('5453010000059675', month... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_card_save_test.rb | test/remote/gateways/remote_card_save_test.rb | require 'test_helper'
class RemoteCardSaveTest < Test::Unit::TestCase
def setup
@gateway = CardSaveGateway.new(fixtures(:card_save))
@amount = 100
@credit_card = credit_card('4976000000003436', verification_value: '452')
@declined_card = credit_card('4221690000004963', verification_value: '125')
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_card_connect_test.rb | test/remote/gateways/remote_card_connect_test.rb | require 'test_helper'
class RemoteCardConnectTest < Test::Unit::TestCase
def setup
@gateway = CardConnectGateway.new(fixtures(:card_connect))
@amount = 100
@credit_card = credit_card('4788250000121443')
@declined_card = credit_card('4387751111111053')
@options = {
billing_address: address,... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_braintree_token_nonce_test.rb | test/remote/gateways/remote_braintree_token_nonce_test.rb | require 'test_helper'
class RemoteBraintreeTokenNonceTest < Test::Unit::TestCase
def setup
@gateway = BraintreeGateway.new(fixtures(:braintree_blue))
@braintree_backend = @gateway.instance_eval { @braintree_gateway }
ach_mandate = 'By clicking ["Checkout"], I authorize Braintree, a service of PayPal, ' ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_vpos_without_key_test.rb | test/remote/gateways/remote_vpos_without_key_test.rb | require 'test_helper'
class RemoteVposWithoutKeyTest < Test::Unit::TestCase
def setup
vpos_fixtures = fixtures(:vpos)
vpos_fixtures.delete(:encryption_key)
@gateway = VposGateway.new(vpos_fixtures)
@amount = 100000
@credit_card = credit_card('5418630110000014', month: 8, year: 2026, verification... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_ogone_test.rb | test/remote/gateways/remote_ogone_test.rb | # coding: utf-8
require 'test_helper'
class RemoteOgoneTest < Test::Unit::TestCase
def setup
@gateway = OgoneGateway.new(fixtures(:ogone))
# this change is according the new PSD2 guideline
# https://support.legacy.worldline-solutions.com/en/direct/faq/i-have-noticed-i-have-more-declined-transactions-st... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_telr_test.rb | test/remote/gateways/remote_telr_test.rb | require 'test_helper'
class RemoteTelrTest < Test::Unit::TestCase
def setup
@gateway = TelrGateway.new(fixtures(:telr))
@amount = 100
@credit_card = credit_card('5105105105105100')
@declined_card = credit_card('5105105105105100', verification_value: '031')
@options = {
order_id: generate_... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_trexle_test.rb | test/remote/gateways/remote_trexle_test.rb | require 'test_helper'
class RemoteTrexleTest < Test::Unit::TestCase
def setup
@gateway = TrexleGateway.new(fixtures(:trexle))
@amount = 100
@credit_card = credit_card('5555555555554444', year: Time.now.year + 2)
@visa_credit_card = credit_card('4242424242424242', year: Time.now.year + 3)
@declin... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_payway_dot_com_test.rb | test/remote/gateways/remote_payway_dot_com_test.rb | require 'test_helper'
class RemotePaywayDotComTest < Test::Unit::TestCase
def setup
@gateway = PaywayDotComGateway.new(fixtures(:payway_dot_com))
@amount = 100
@credit_card = credit_card('4000100011112224', verification_value: '737')
@declined_card = credit_card('4000300011112220')
@invalid_luhn... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_pay_conex_test.rb | test/remote/gateways/remote_pay_conex_test.rb | require 'test_helper'
class RemotePayConexTest < Test::Unit::TestCase
def setup
@gateway = PayConexGateway.new(fixtures(:pay_conex))
@credit_card = credit_card('4000100011112224')
@check = check
@amount = 100
@failed_amount = 101
@options = {
order_id: '1',
billing_address: addr... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_merchant_ware_version_four_test.rb | test/remote/gateways/remote_merchant_ware_version_four_test.rb | require 'test_helper'
class RemoteMerchantWareVersionFourTest < Test::Unit::TestCase
def setup
@gateway = MerchantWareVersionFourGateway.new(fixtures(:merchant_ware_version_four))
@amount = rand(200..1199)
@credit_card = credit_card('5424180279791732', { brand: 'master' })
@declined_card = credit_car... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_balanced_test.rb | test/remote/gateways/remote_balanced_test.rb | require 'test_helper'
class RemoteBalancedTest < Test::Unit::TestCase
def setup
@gateway = BalancedGateway.new(fixtures(:balanced))
@amount = 100
@credit_card = credit_card('4111111111111111')
@invalid_card = credit_card('4222222222222220')
@declined_card = credit_card('4444444444444448')
@... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_exact_test.rb | test/remote/gateways/remote_exact_test.rb | require 'test_helper'
class RemoteExactTest < Test::Unit::TestCase
def setup
@gateway = ExactGateway.new(fixtures(:exact))
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase'
}
end
def test_successful_... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_paypal_test.rb | test/remote/gateways/remote_paypal_test.rb | require 'test_helper'
class PaypalTest < Test::Unit::TestCase
def setup
@gateway = PaypalGateway.new(fixtures(:paypal_signature))
@credit_card = credit_card('4381258770269608') # Use a generated CC from the paypal Sandbox
@declined_card = credit_card('234234234234')
@params = {
order_id: gene... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_alelo_test_certification.rb | test/remote/gateways/remote_alelo_test_certification.rb | require 'test_helper'
require 'singleton'
class RemoteAleloTestCertification < Test::Unit::TestCase
def setup
@gateway = AleloGateway.new(fixtures(:alelo_certification))
@amount = 1000
@cc_alimentacion = credit_card('5098870005467012', {
month: 8,
year: 2027,
first_name: 'Longbob',
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_conekta_test.rb | test/remote/gateways/remote_conekta_test.rb | require 'test_helper'
class RemoteConektaTest < Test::Unit::TestCase
def setup
@gateway = ConektaGateway.new(fixtures(:conekta))
@amount = 300
@credit_card = ActiveMerchant::Billing::CreditCard.new(
number: '4242424242424242',
verification_value: '183',
month: ... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_wepay_test.rb | test/remote/gateways/remote_wepay_test.rb | require 'test_helper'
class RemoteWepayTest < Test::Unit::TestCase
def setup
@gateway = WepayGateway.new(fixtures(:wepay))
@amount = 2000
@credit_card = credit_card('5496198584584769', verification_value: '321')
@credit_card_without_cvv = credit_card('5496198584584769', verification_value: nil)
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_epay_test.rb | test/remote/gateways/remote_epay_test.rb | require 'test_helper'
class RemoteEpayTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = EpayGateway.new(fixtures(:epay))
@credit_card = credit_card('3333333333333000')
@credit_card_declined = credit_card('3333333333333102')
@amount = 100
@options_xid = { order_id: generate_u... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_cyber_source_rest_test.rb | test/remote/gateways/remote_cyber_source_rest_test.rb | require 'test_helper'
class RemoteCyberSourceRestTest < Test::Unit::TestCase
def setup
@gateway = CyberSourceRestGateway.new(fixtures(:cybersource_rest))
@amount = 10221
@card_without_funds = credit_card('42423482938483873')
@bank_account = check(account_number: '4100', routing_number: '121042882')
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_plugnpay_test.rb | test/remote/gateways/remote_plugnpay_test.rb | require 'test_helper'
class PlugnpayTest < Test::Unit::TestCase
def setup
@gateway = PlugnpayGateway.new(fixtures(:plugnpay))
@good_card = credit_card('4111111111111111', first_name: 'cardtest')
@bad_card = credit_card('1234123412341234')
@options = {
billing_address: address,
description... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_hps_test.rb | test/remote/gateways/remote_hps_test.rb | require 'test_helper'
class RemoteHpsTest < Test::Unit::TestCase
def setup
@gateway = HpsGateway.new(fixtures(:hps))
@check_gateway = HpsGateway.new(fixtures(:hps_echeck))
@amount = 100
@check_amount = 2000
@declined_amount = 1034
@credit_card = credit_card('4000100011112224')
@check =... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_eway_rapid_test.rb | test/remote/gateways/remote_eway_rapid_test.rb | require 'test_helper'
class RemoteEwayRapidTest < Test::Unit::TestCase
def setup
@gateway = EwayRapidGateway.new(fixtures(:eway_rapid))
@amount = 100
@failed_amount = -100
@credit_card = credit_card('4444333322221111')
@options = {
order_id: '1',
invoice: 'I1234',
billing_addr... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_stripe_3ds_test.rb | test/remote/gateways/remote_stripe_3ds_test.rb | require 'test_helper'
require 'mechanize'
class RemoteStripe3DSTest < Test::Unit::TestCase
CHARGE_ID_REGEX = /ch_[a-zA-Z\d]{24}/
def setup
@gateway = StripeGateway.new(fixtures(:stripe))
@amount = 100
@billing_details = address()
@options = {
currency: 'USD',
description: 'ActiveMerch... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_allied_wallet_test.rb | test/remote/gateways/remote_allied_wallet_test.rb | require 'test_helper'
class RemoteAlliedWalletTest < Test::Unit::TestCase
def setup
@gateway = AlliedWalletGateway.new(fixtures(:allied_wallet))
@amount = 100
@credit_card = credit_card
@declined_card = credit_card('4242424242424242', verification_value: '555')
@options = {
billing_addres... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_mundipagg_test.rb | test/remote/gateways/remote_mundipagg_test.rb | require 'test_helper'
class RemoteMundipaggTest < Test::Unit::TestCase
def setup
@gateway = MundipaggGateway.new(fixtures(:mundipagg))
@amount = 100
@credit_card = credit_card('4000000000000010')
@declined_card = credit_card('4000300011112220')
@sodexo_voucher = credit_card('6060704495764400', b... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_network_merchants_test.rb | test/remote/gateways/remote_network_merchants_test.rb | require 'test_helper'
class RemoteNetworkMerchantsTest < Test::Unit::TestCase
def setup
@gateway = NetworkMerchantsGateway.new(fixtures(:network_merchants))
@amount = 100
@decline_amount = 1
@credit_card = credit_card('4111111111111111')
@credit_card_with_track_data = credit_card_with_track_data... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_authorize_net_cim_test.rb | test/remote/gateways/remote_authorize_net_cim_test.rb | require 'test_helper'
require 'pp'
class AuthorizeNetCimTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = AuthorizeNetCimGateway.new(fixtures(:authorize_net))
@amount = 100
@credit_card = credit_card('4242424242424242')
@payment = {
credit_card: @credit_card
}
@pro... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | true |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_bridge_pay_test.rb | test/remote/gateways/remote_bridge_pay_test.rb | require 'test_helper'
class RemoteBridgePayTest < Test::Unit::TestCase
def setup
@gateway = BridgePayGateway.new(fixtures(:bridge_pay))
@amount = 100
@credit_card = credit_card('4005550000000019')
@declined_card = credit_card('4000300011100000')
@check = check(
name: 'John Doe',
rou... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_secure_pay_test.rb | test/remote/gateways/remote_secure_pay_test.rb | require 'test_helper'
class RemoteSecurePayTest < Test::Unit::TestCase
def setup
@gateway = SecurePayGateway.new(fixtures(:secure_pay))
@credit_card = credit_card('4111111111111111', month: '7', year: '2014')
@options = {
order_id: generate_unique_id,
description: 'Store purchase',
bi... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_netpay_test.rb | test/remote/gateways/remote_netpay_test.rb | require 'test_helper'
class RemoteNetpayTest < Test::Unit::TestCase
def setup
@gateway = NetpayGateway.new(fixtures(:netpay))
@amount = 2000
@credit_card = credit_card('5454545454545454')
@declined_card = credit_card('4000300011112220')
@options = {
description: 'Store Purchase'
}
e... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_moneris_test.rb | test/remote/gateways/remote_moneris_test.rb | require 'test_helper'
class MonerisRemoteTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = MonerisGateway.new(fixtures(:moneris))
# https://developer.moneris.com/More/Testing/Penny%20Value%20Simulator
@amount = 100
@fail_amount = 105
# https://developer.moneris.com/livedem... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_nmi_test.rb | test/remote/gateways/remote_nmi_test.rb | require 'test_helper'
class RemoteNmiTest < Test::Unit::TestCase
def setup
@gateway = NmiGateway.new(fixtures(:nmi))
@gateway_secure = NmiGateway.new(fixtures(:nmi_secure))
@amount = Random.rand(100...1000)
@credit_card = credit_card('4111111111111111', verification_value: 917)
@check = check(
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_ncr_secure_pay_test.rb | test/remote/gateways/remote_ncr_secure_pay_test.rb | require 'test_helper'
class RemoteMonetraTest < Test::Unit::TestCase
def setup
@gateway = NcrSecurePayGateway.new(fixtures(:ncr_secure_pay))
@amount = 100
@credit_card = credit_card('4111111111111111')
@bad_credit_card = credit_card('1234567890123456')
@options = {
billing_address: address... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_visanet_peru_test.rb | test/remote/gateways/remote_visanet_peru_test.rb | require 'test_helper'
class RemoteVisanetPeruTest < Test::Unit::TestCase
def setup
@gateway = VisanetPeruGateway.new(fixtures(:visanet_peru))
@amount = 100
@credit_card = credit_card('4500340090000016', verification_value: '377')
@declined_card = credit_card('4111111111111111')
@options = {
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_eway_test.rb | test/remote/gateways/remote_eway_test.rb | require 'test_helper'
class EwayTest < Test::Unit::TestCase
def setup
@gateway = EwayGateway.new(fixtures(:eway))
@credit_card_success = credit_card('4444333322221111')
@credit_card_fail = credit_card('1234567812345678', month: Time.now.month, year: Time.now.year - 1)
@params = {
order_id: '12... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_vantiv_express_test.rb | test/remote/gateways/remote_vantiv_express_test.rb | require 'test_helper'
class RemoteVantivExpressTest < Test::Unit::TestCase
def setup
@gateway = VantivExpressGateway.new(fixtures(:element))
@amount = rand(1000..2000)
@credit_card = credit_card('4000100011112224')
@declined_card = credit_card('6060704495764400')
@check = check
@options = {
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_firstdata_e4_test.rb | test/remote/gateways/remote_firstdata_e4_test.rb | require 'test_helper'
class RemoteFirstdataE4Test < Test::Unit::TestCase
def setup
@gateway = FirstdataE4Gateway.new(fixtures(:firstdata_e4))
@credit_card = credit_card
@bad_credit_card = credit_card('4111111111111113')
@credit_card_with_track_data = credit_card_with_track_data('4003000123456781')
... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_paymentez_test.rb | test/remote/gateways/remote_paymentez_test.rb | require 'test_helper'
class RemotePaymentezTest < Test::Unit::TestCase
def setup
@gateway = PaymentezGateway.new(fixtures(:paymentez))
@ecuador_gateway = PaymentezGateway.new(fixtures(:paymentez_ecuador))
@amount = 100
@credit_card = credit_card('4111111111111111', verification_value: '666')
@ot... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_barclays_epdq_extra_plus_test.rb | test/remote/gateways/remote_barclays_epdq_extra_plus_test.rb | # coding: utf-8
require 'test_helper'
class RemoteBarclaysEpdqExtraPlusTest < Test::Unit::TestCase
def setup
@gateway = BarclaysEpdqExtraPlusGateway.new(fixtures(:barclays_epdq_extra_plus))
@amount = 100
@credit_card = credit_card('4000100011112224', verification_value: '987')
@mastercard =... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_net_registry_test.rb | test/remote/gateways/remote_net_registry_test.rb | require 'test/unit'
require 'test_helper'
# To run these tests, set the variables at the top of the class
# definition.
#
# Note that NetRegistry does not provide any sort of test
# server/account, so you'll probably want to refund any uncredited
# purchases through the NetRegistry console at www.netregistry.com .
# A... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_worldpay_online_payments_test.rb | test/remote/gateways/remote_worldpay_online_payments_test.rb | require 'test_helper'
class RemoteWorldpayOnlinePaymentsTest < Test::Unit::TestCase
def setup
@gateway = WorldpayOnlinePaymentsGateway.new(fixtures(:worldpay_online_payments))
@amount = 1000
@credit_card = credit_card('4444333322221111')
@declined_card = credit_card('2424242424242424')
@options... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_finansbank_test.rb | test/remote/gateways/remote_finansbank_test.rb | # encoding: utf-8
require 'test_helper'
class RemoteFinansbankTest < Test::Unit::TestCase
def setup
@gateway = FinansbankGateway.new(fixtures(:finansbank))
@amount = 100
@credit_card = credit_card('4022774022774026', month: 12, year: 14, verification_value: '000')
@declined_card = credit_card('400... | ruby | MIT | ca45b1b063ce2e1495e1427e0a1d42dcb482d57d | 2026-01-04T15:45:54.027332Z | false |
activemerchant/active_merchant | https://github.com/activemerchant/active_merchant/blob/ca45b1b063ce2e1495e1427e0a1d42dcb482d57d/test/remote/gateways/remote_vanco_test.rb | test/remote/gateways/remote_vanco_test.rb | require 'test_helper'
class RemoteVancoTest < Test::Unit::TestCase
SECONDS_PER_DAY = 3600 * 24
def setup
@gateway = VancoGateway.new(fixtures(:vanco))
@amount = 10005
@credit_card = credit_card('4111111111111111')
@declined_card = credit_card('4111111111111111', year: 2011)
@check = check
... | 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.