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_clearhaus_test.rb
test/remote/gateways/remote_clearhaus_test.rb
require 'test_helper' class RemoteClearhausTest < Test::Unit::TestCase def setup @gateway = ClearhausGateway.new(fixtures(:clearhaus)) @amount = 100 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('4200000000000000') @options = {} end def test_successful_purcha...
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_migs_test.rb
test/remote/gateways/remote_migs_test.rb
require 'test_helper' require 'net/http' class RemoteMigsTest < Test::Unit::TestCase include ActiveMerchant::NetworkConnectionRetries include ActiveMerchant::PostsData def setup @gateway = MigsGateway.new(fixtures(:migs)) @amount = 100 @declined_amount = 105 @visa = credit_card('4987654321098...
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_pagarme_test.rb
test/remote/gateways/remote_pagarme_test.rb
require 'test_helper' class RemotePagarmeTest < Test::Unit::TestCase def setup @gateway = PagarmeGateway.new(fixtures(:pagarme)) @amount = 1000 @credit_card = credit_card('4242424242424242', { first_name: 'Richard', last_name: 'Deschamps' }) @declined_card = credit_card('4242424242...
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_realex_test.rb
test/remote/gateways/remote_realex_test.rb
require 'test_helper' class RemoteRealexTest < Test::Unit::TestCase def setup @gateway = RealexGateway.new(fixtures(:realex)) # Replace the card numbers with the test account numbers from Realex @visa = card_fixtures(:realex_visa) @visa_declined = card_fixtures(:realex_visa_declined...
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_cenpos_test.rb
test/remote/gateways/remote_cenpos_test.rb
require 'test_helper' class RemoteCenposTest < Test::Unit::TestCase def setup @gateway = CenposGateway.new(fixtures(:cenpos)) @amount = SecureRandom.random_number(10000) @declined_amount = 100 @credit_card = credit_card('4003440008007566', month: 12, year: 2025, verification_value: 999) @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_viaklix_test.rb
test/remote/gateways/remote_viaklix_test.rb
require 'test_helper' class RemoteViaklixTest < Test::Unit::TestCase def setup @gateway = ViaklixGateway.new(fixtures(:viaklix)) @credit_card = credit_card @bad_credit_card = credit_card('invalid') @options = { order_id: '#1000.1', email: 'paul@domain.com', description: 'Test Tran...
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_nuvei_test.rb
test/remote/gateways/remote_nuvei_test.rb
require 'test_helper' require 'timecop' class RemoteNuveiTest < Test::Unit::TestCase def setup @gateway = NuveiGateway.new(fixtures(:nuvei)) @amount = 10000 @credit_card = credit_card('4761344136141390', verification_value: '999', first_name: 'Cure', last_name: 'Tester') @declined_card = credit_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_culqi_test.rb
test/remote/gateways/remote_culqi_test.rb
require 'test_helper' class RemoteCulqiTest < Test::Unit::TestCase def setup CulqiGateway.ssl_strict = false # Sandbox has an improperly installed cert @gateway = CulqiGateway.new(fixtures(:culqi)) @amount = 1000 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('400030...
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_trace_test.rb
test/remote/gateways/remote_pay_trace_test.rb
require 'test_helper' module ActiveMerchant # :nodoc: module Billing # :nodoc: class PayTraceGateway < Gateway def settle post = {} response = commit('transactions/settle', post) check_token_response(response, 'transactions/settle', post, options) end end end end class ...
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_banwire_test.rb
test/remote/gateways/remote_banwire_test.rb
# encoding: utf-8 require 'test_helper' class RemoteBanwireTest < Test::Unit::TestCase def setup @gateway = BanwireGateway.new(fixtures(:banwire)) @amount = 100 @credit_card = credit_card('5204164299999999', verification_value: '999', brand: 'mastercard') @visa_credit_card = credit_card('4485814063...
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_psl_card_test.rb
test/remote/gateways/remote_psl_card_test.rb
require 'test_helper' class RemotePslCardTest < Test::Unit::TestCase def setup @gateway = PslCardGateway.new(fixtures(:psl_card)) @uk_maestro = CreditCard.new(fixtures(:psl_maestro)) @uk_maestro_address = fixtures(:psl_maestro_address) @solo = CreditCard.new(fixtures(:psl_solo)) @solo_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_orbital_test.rb
test/remote/gateways/remote_orbital_test.rb
require 'test_helper' class RemoteOrbitalGatewayTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = ActiveMerchant::Billing::OrbitalGateway.new(fixtures(:orbital_gateway)) @echeck_gateway = ActiveMerchant::Billing::OrbitalGateway.new(fixtures(:orbital_asv_aoa_gateway)) @three_ds_gatewa...
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_quickbooks_test.rb
test/remote/gateways/remote_quickbooks_test.rb
require 'test_helper' class RemoteTest < Test::Unit::TestCase def setup @gateway = QuickbooksGateway.new(fixtures(:quickbooks)) @amount = 100 @credit_card = credit_card('4000100011112224') @declined_card = credit_card('4000000000000001') @partial_amount = @amount - 1 @options = { orde...
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_apple_pay_test.rb
test/remote/gateways/remote_stripe_apple_pay_test.rb
require 'test_helper' class RemoteStripeApplePayTest < Test::Unit::TestCase CHARGE_ID_REGEX = /ch_[a-zA-Z\d]{24}/ def setup @gateway = StripeGateway.new(fixtures(:stripe)) @amount = 100 @options = { currency: 'USD', description: 'ActiveMerchant Test Purchase', email: 'wow@example.co...
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_bambora_apac_test.rb
test/remote/gateways/remote_bambora_apac_test.rb
require 'test_helper' class RemoteBamboraApacTest < Test::Unit::TestCase def setup @gateway = BamboraApacGateway.new(fixtures(:bambora_apac)) @credit_card = credit_card('4005550000000001') @options = { order_id: '1', billing_address: address, description: 'Store Purchase' } end ...
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_mit_test.rb
test/remote/gateways/remote_mit_test.rb
require 'test_helper' class RemoteMitTest < Test::Unit::TestCase def setup @gateway = MitGateway.new(fixtures(:mit)) @amount = 1115 @amount_fail = 11165 @credit_card = ActiveMerchant::Billing::CreditCard.new( number: '5555555555555557', verification_value: '261', month: '09', ...
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_payu_latam_test.rb
test/remote/gateways/remote_payu_latam_test.rb
require 'test_helper' class RemotePayuLatamTest < Test::Unit::TestCase def setup @gateway = PayuLatamGateway.new(fixtures(:payu_latam).update(payment_country: 'AR')) @colombia_gateway = PayuLatamGateway.new(fixtures(:payu_latam).update(payment_country: 'CO', account_id: '512321')) @amount = 4000 @cr...
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_secure_test.rb
test/remote/gateways/remote_pay_secure_test.rb
require 'test_helper' class RemotePaySecureTest < Test::Unit::TestCase def setup @gateway = PaySecureGateway.new(fixtures(:pay_secure)) @credit_card = credit_card('4000100011112224') @options = { billing_address: address, order_id: generate_unique_id } @amount = 100 end def test...
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_v2_test.rb
test/remote/gateways/remote_shift4_v2_test.rb
require 'test_helper' require_relative 'remote_securion_pay_test' class RemoteShift4V2Test < RemoteSecurionPayTest def setup super @gateway = Shift4V2Gateway.new(fixtures(:shift4_v2)) @options[:ip] = '127.0.0.1' @bank_account = check( routing_number: '021000021', account_number: '4242424...
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_evo_ca_test.rb
test/remote/gateways/remote_evo_ca_test.rb
require 'test_helper' class RemoteEvoCaTest < Test::Unit::TestCase def setup @gateway = EvoCaGateway.new(fixtures(:evo_ca)) @amount = 100 @credit_card = credit_card('4111111111111111') @options = { order_id: '1', billing_address: address, description: 'Store Purchase', invoic...
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_mercury_certification_test.rb
test/remote/gateways/remote_mercury_certification_test.rb
require 'test_helper' require 'support/mercury_helper' class RemoteMercuryCertificationTest < Test::Unit::TestCase include MercuryHelper # Tokenization def test_sale_and_reversal close_batch(tokenization_gateway) sale = tokenization_gateway.purchase(101, visa, options('1')) assert_success sale ...
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_global_collect_test.rb
test/remote/gateways/remote_global_collect_test.rb
require 'test_helper' class RemoteGlobalCollectTest < Test::Unit::TestCase def setup @gateway = GlobalCollectGateway.new(fixtures(:global_collect)) @gateway_preprod = GlobalCollectGateway.new(fixtures(:global_collect_preprod)) @gateway_preprod.options[:url_override] = 'preproduction' @gateway_direct...
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_usa_epay_advanced_test.rb
test/remote/gateways/remote_usa_epay_advanced_test.rb
require 'test_helper' require 'logger' class RemoteUsaEpayAdvancedTest < Test::Unit::TestCase def setup @gateway = UsaEpayAdvancedGateway.new(fixtures(:usa_epay_advanced)) @amount = 2111 @credit_card = ActiveMerchant::Billing::CreditCard.new( number: '4000100011112224', month: 9, year...
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_payex_test.rb
test/remote/gateways/remote_payex_test.rb
require 'test_helper' class RemotePayexTest < Test::Unit::TestCase def setup @gateway = PayexGateway.new(fixtures(:payex)) @amount = 1000 @credit_card = credit_card('4581090329655682') @declined_card = credit_card('4000300011112220') @options = { order_id: '1234' } end def test_s...
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_be2bill_test.rb
test/remote/gateways/remote_be2bill_test.rb
require 'test_helper' class RemoteBe2billTest < Test::Unit::TestCase def setup @gateway = Be2billGateway.new(fixtures(:be2bill)) @amount = 100 @credit_card = credit_card('4000100011112224') @declined_card = credit_card('5555557376384001') @options = { order_id: '1', descrip...
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_paystation_test.rb
test/remote/gateways/remote_paystation_test.rb
require 'test_helper' class RemotePaystationTest < Test::Unit::TestCase def setup @gateway = PaystationGateway.new(fixtures(:paystation)) @credit_card = credit_card('5123456789012346', month: 5, year: 13, verification_value: 123) @successful_amount = 10000 @insufficient_funds_amount = 100...
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_elavon_test.rb
test/remote/gateways/remote_elavon_test.rb
require 'test_helper' class RemoteElavonTest < Test::Unit::TestCase def setup @gateway = ElavonGateway.new(fixtures(:elavon)) @tokenization_gateway = all_fixtures[:elavon_tokenization] ? ElavonGateway.new(fixtures(:elavon_tokenization)) : ElavonGateway.new(fixtures(:elavon)) @bad_creds_gateway = ElavonGa...
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_v7_test.rb
test/remote/gateways/remote_quickpay_v7_test.rb
require 'test_helper' class RemoteQuickpayV7Test < 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)) @amount = 100 @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_tns_test.rb
test/remote/gateways/remote_tns_test.rb
require 'test_helper' class RemoteTnsTest < Test::Unit::TestCase def setup TnsGateway.ssl_strict = false # Sandbox has an improperly installed cert @gateway = TnsGateway.new(fixtures(:tns)) @amount = 100 @credit_card = credit_card('5123456789012346', month: 05, year: 2024) @ap_credit_card = cred...
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_hub_test.rb
test/remote/gateways/remote_pay_hub_test.rb
require 'test_helper' class RemotePayHubTest < Test::Unit::TestCase def setup @gateway = PayHubGateway.new(fixtures(:pay_hub)) @amount = 100 @credit_card = credit_card('5466410004374507', verification_value: '998') @invalid_card = credit_card('371449635398431', verification_value: '9997') @option...
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_itransact_test.rb
test/remote/gateways/remote_itransact_test.rb
require 'test_helper' class RemoteItransactTest < Test::Unit::TestCase def setup @gateway = ItransactGateway.new(fixtures(:itransact)) @amount = 1065 @credit_card = credit_card('4000100011112224') @declined_card = credit_card('4000300011112220') @options = { order_id: '1', 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_blue_snap_test.rb
test/remote/gateways/remote_blue_snap_test.rb
require 'test_helper' class RemoteBlueSnapTest < Test::Unit::TestCase def setup @gateway = BlueSnapGateway.new(fixtures(:blue_snap)) @amount = 100 @credit_card = credit_card('4263982640269299') @cabal_card = credit_card('6271701225979642') @naranja_card = credit_card('5895626746595650') @dec...
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_quantum_test.rb
test/remote/gateways/remote_quantum_test.rb
require 'test_helper' class RemoteQuantumTest < Test::Unit::TestCase def setup @gateway = QuantumGateway.new(fixtures(:quantum)) @amount = 100 @credit_card = credit_card('4000100011112224') end def test_successful_purchase assert response = @gateway.purchase(@amount, @credit_card) assert_su...
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_xpay_test.rb
test/remote/gateways/remote_xpay_test.rb
require 'test_helper' class RemoteXpayTest < Test::Unit::TestCase def setup @gateway = XpayGateway.new(fixtures(:xpay)) @amount = 100 @credit_card = credit_card( '5186151650005008', month: 12, year: 2026, verification_value: '123', brand: 'master' ) @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_litle_certification_test.rb
test/remote/gateways/remote_litle_certification_test.rb
require 'test_helper' class RemoteLitleCertification < Test::Unit::TestCase def setup Base.mode = :test @gateway = LitleGateway.new(fixtures(:litle)) @gateway.test_url = 'https://payments.vantivprelive.com/vap/communicator/online' end def test1 credit_card = CreditCard.new( number: '445701...
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_instapay_test.rb
test/remote/gateways/remote_instapay_test.rb
require 'test_helper' class RemoteInstapayTest < Test::Unit::TestCase def setup @gateway = InstapayGateway.new(fixtures(:instapay)) @amount = 100 @credit_card = credit_card('5454545454545454') @declined_card = credit_card('4000300011112220') @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_trust_commerce_test.rb
test/remote/gateways/remote_trust_commerce_test.rb
require 'test_helper' class TrustCommerceTest < Test::Unit::TestCase def setup @gateway = TrustCommerceGateway.new(fixtures(:trust_commerce)) @credit_card = credit_card('4111111111111111') @declined_credit_card = credit_card('4111111111111112') @check = check({ account_number: 55544433221, routing_n...
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_payu_in_test.rb
test/remote/gateways/remote_payu_in_test.rb
require 'test_helper' class RemotePayuInTest < Test::Unit::TestCase def setup @gateway = PayuInGateway.new(fixtures(:payu_in)) @amount = 1100 @credit_card = credit_card('5123456789012346', month: 5, year: 2017, verification_value: 564) @options = { order_id: generate_unique_id } end ...
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_giving_test.rb
test/remote/gateways/remote_first_giving_test.rb
require 'test_helper' class RemoteFirstGivingTest < Test::Unit::TestCase def setup @gateway = FirstGivingGateway.new(fixtures(:first_giving)) @amount = 100 @credit_card = credit_card('4457010000000009') @declined_card = credit_card('445701000000000') @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_kushki_test.rb
test/remote/gateways/remote_kushki_test.rb
require 'test_helper' class RemoteKushkiTest < Test::Unit::TestCase def setup @gateway = KushkiGateway.new(fixtures(:kushki)) @gateway_partial_refund = KushkiGateway.new(fixtures(:kushki_partial)) @amount = 100 @credit_card = credit_card('4000100011112224', verification_value: '777') @declined_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_d_local_test.rb
test/remote/gateways/remote_d_local_test.rb
require 'test_helper' ActiveMerchant::Billing::DLocalGateway.application_id = 'ActiveMerchant' class RemoteDLocalTest < Test::Unit::TestCase def setup @gateway = DLocalGateway.new(fixtures(:d_local)) @amount = 1000 @credit_card = credit_card('4111111111111111') @credit_card_naranja = credit_card('589...
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_tech_test.rb
test/remote/gateways/remote_secure_pay_tech_test.rb
require 'test_helper' class RemoteSecurePayTechTest < Test::Unit::TestCase $verbose = true def setup @gateway = SecurePayTechGateway.new(fixtures(:secure_pay_tech)) @accepted_amount = 10000 @declined_amount = 10075 @credit_card = credit_card('4987654321098769', month: '5', year: '2013') @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_authorize_net_apple_pay_test.rb
test/remote/gateways/remote_authorize_net_apple_pay_test.rb
require 'test_helper' class RemoteAuthorizeNetApplePayTest < Test::Unit::TestCase def setup @gateway = AuthorizeNetGateway.new(fixtures(:authorize_net)) @amount = 100 @apple_pay_payment_token = apple_pay_payment_token @options = { order_id: '1', duplicate_window: 0, 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_litle_test.rb
test/remote/gateways/remote_litle_test.rb
require 'test_helper' class RemoteLitleTest < Test::Unit::TestCase def setup @gateway = LitleGateway.new(fixtures(:litle)) @credit_card_hash = { first_name: 'John', last_name: 'Smith', month: '01', year: '2024', brand: 'visa', number: '4457010000000009', 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_first_pay_test.rb
test/remote/gateways/remote_first_pay_test.rb
require 'test_helper' class RemoteFirstPayTest < Test::Unit::TestCase def setup @gateway = FirstPayGateway.new(fixtures(:first_pay)) @amount = 100 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('4000300011112220') @options = { order_id: SecureRandom.hex(24), ...
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_garanti_test.rb
test/remote/gateways/remote_garanti_test.rb
require 'test_helper' # NOTE: tests may fail randomly because Garanti returns random(!) responses for their test server class RemoteGarantiTest < Test::Unit::TestCase def setup @gateway = GarantiGateway.new(fixtures(:garanti)) @amount = 100 # 1 cents = 0.01$ @declined_card = credit_card('428220902713201...
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_nab_transact_test.rb
test/remote/gateways/remote_nab_transact_test.rb
require 'test_helper' class RemoteNabTransactTest < Test::Unit::TestCase def setup @gateway = NabTransactGateway.new(fixtures(:nab_transact)) @privileged_gateway = NabTransactGateway.new(fixtures(:nab_transact_privileged)) @amount = 200 @credit_card = credit_card('4444333322221111') @declined_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_checkout_test.rb
test/remote/gateways/remote_checkout_test.rb
require 'test_helper' class RemoteCheckoutTest < Test::Unit::TestCase def setup @gateway = ActiveMerchant::Billing::CheckoutGateway.new(fixtures(:checkout)) @credit_card = credit_card( '4543474002249996', month: '06', year: '2017', verification_value: '956' ) @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_netbanx_test.rb
test/remote/gateways/remote_netbanx_test.rb
require 'test_helper' class RemoteNetbanxTest < Test::Unit::TestCase def setup @gateway = NetbanxGateway.new(fixtures(:netbanx)) @amount = 100 @credit_card = credit_card('4530910000012345') @credit_card_no_match_cvv = credit_card('4530910000012345', { verification_value: 666 }) @declined_amount =...
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_securion_pay_test.rb
test/remote/gateways/remote_securion_pay_test.rb
require 'test_helper' class RemoteSecurionPayTest < Test::Unit::TestCase CHARGE_ID_REGEX = /char_[a-zA-Z\d]+/ TOKEN_ID_REGEX = /tok_[a-zA-Z\d]+/ def setup @gateway = SecurionPayGateway.new(fixtures(:securion_pay)) @amount = 2000 @refund_amount = 300 @credit_card = credit_card('4242424242424242...
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_checkout_v2_test.rb
test/remote/gateways/remote_checkout_v2_test.rb
require 'timecop' require 'test_helper' class RemoteCheckoutV2Test < Test::Unit::TestCase def setup gateway_fixtures = fixtures(:checkout_v2) @gateway = CheckoutV2Gateway.new(fixtures(:checkout_v2_token)) @gateway_oauth = CheckoutV2Gateway.new(client_id: gateway_fixtures[:client_id], client_secret: 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_redsys_sha256_test.rb
test/remote/gateways/remote_redsys_sha256_test.rb
require 'test_helper' class RemoteRedsysSHA256Test < Test::Unit::TestCase def setup @gateway = RedsysGateway.new(fixtures(:redsys_sha256)) @amount = 100 @credit_card = credit_card('4548812049400004') @declined_card = credit_card @threeds2_credit_card = credit_card('4918019199883839') @threed...
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_deepstack_test.rb
test/remote/gateways/remote_deepstack_test.rb
require 'test_helper' class RemoteDeepstackTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = DeepstackGateway.new(fixtures(:deepstack)) @credit_card = credit_card @amount = 100 @credit_card = ActiveMerchant::Billing::CreditCard.new( number: '4111111111111111', verif...
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_e_solutions_test.rb
test/remote/gateways/remote_merchant_e_solutions_test.rb
require 'test_helper' class RemoteMerchantESolutionTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = MerchantESolutionsGateway.new(fixtures(:merchant_esolutions)) @amount = 100 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('4111111111111112') ...
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_hi_pay_test.rb
test/remote/gateways/remote_hi_pay_test.rb
require 'test_helper' class RemoteHiPayTest < Test::Unit::TestCase def setup @gateway = HiPayGateway.new(fixtures(:hi_pay)) @bad_gateway = HiPayGateway.new(username: 'bad', password: 'password') @amount = 500 @credit_card = credit_card('4111111111111111', verification_value: '514', first_name: 'John...
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_openpay_test.rb
test/remote/gateways/remote_openpay_test.rb
require 'test_helper' class RemoteOpenpayTest < Test::Unit::TestCase def setup @gateway = OpenpayGateway.new(fixtures(:openpay)) @amount = 100 @credit_card = credit_card('4111111111111111') @store_card = credit_card('5105105105105100') @declined_card = credit_card('4222222222222220') @optio...
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_dibs_test.rb
test/remote/gateways/remote_dibs_test.rb
require 'test_helper' class RemoteDibsTest < Test::Unit::TestCase def setup @gateway = DibsGateway.new(fixtures(:dibs)) cc_options = { month: 6, year: 24, verification_value: '684', brand: 'visa' } @amount = 100 @credit_card = credit_card('4711100000000000', cc_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_quickpay_v10_test.rb
test/remote/gateways/remote_quickpay_v10_test.rb
require 'test_helper' class RemoteQuickPayV10Test < Test::Unit::TestCase def setup @gateway = QuickpayV10Gateway.new(fixtures(:quickpay_v10_api_key)) @amount = 100 @options = { order_id: generate_unique_id[0...10], billing_address: address(country: 'DNK') } @valid_card = 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_eway_managed_test.rb
test/remote/gateways/remote_eway_managed_test.rb
require 'test_helper' class RemoteEwayManagedTest < Test::Unit::TestCase def setup @gateway = EwayManagedGateway.new(fixtures(:eway_managed).merge({ test: true })) @valid_card = '4444333322221111' @valid_customer_id = '9876543211000' @credit_card = credit_card(@valid_card) @options = { 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_payeezy_test.rb
test/remote/gateways/remote_payeezy_test.rb
require 'test_helper' class RemotePayeezyTest < Test::Unit::TestCase def setup @gateway = PayeezyGateway.new(fixtures(:payeezy)) @credit_card = credit_card @bad_credit_card = credit_card('4111111111111113') @check = check @amount = 100 @reversal_id = "REV-#{SecureRandom.random_number(1000000)...
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_omise_test.rb
test/remote/gateways/remote_omise_test.rb
require 'test_helper' class RemoteOmiseTest < Test::Unit::TestCase def setup @gateway = OmiseGateway.new(fixtures(:omise)) @amount = 8888 @credit_card = credit_card('4242424242424242') @declined_card = credit_card('4255555555555555') @invalid_cvc = credit_card('4111111111160001', { verificat...
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_ct_payment_certification_test.rb
test/remote/gateways/remote_ct_payment_certification_test.rb
require 'test_helper' class RemoteCtPaymentCertificationTest < Test::Unit::TestCase def setup @gateway = CtPaymentGateway.new(fixtures(:ct_payment)) @amount = 100 @declined_card = credit_card('4502244713161718') @options = { billing_address: address, description: 'Store Purchase', ...
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_express_test.rb
test/remote/gateways/remote_payflow_express_test.rb
require 'test_helper' class RemotePayflowExpressTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = PayflowExpressGateway.new(fixtures(:payflow)) @options = { billing_address: { name: 'Cody Fauser', address1: '1234 Shady Brook Lane', city: 'Ottaw...
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_world_net_test.rb
test/remote/gateways/remote_world_net_test.rb
require 'test_helper' class RemoteWorldNetTest < Test::Unit::TestCase def setup @gateway = WorldNetGateway.new(fixtures(:world_net)) @amount = 100 @declined_amount = 101 @credit_card = credit_card('3779810000000005') @options = { order_id: generate_order_id } @refund_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_barclaycard_smartpay_test.rb
test/remote/gateways/remote_barclaycard_smartpay_test.rb
require 'test_helper' class RemoteBarclaycardSmartpayTest < Test::Unit::TestCase def setup @gateway = BarclaycardSmartpayGateway.new(fixtures(:barclaycard_smartpay)) BarclaycardSmartpayGateway.ssl_strict = false @amount = 100 @error_amount = 1_000_000_000_000_000_000_000 @credit_card = 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_secure_net_test.rb
test/remote/gateways/remote_secure_net_test.rb
require 'test_helper' class SecureNetTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = SecureNetGateway.new(fixtures(:secure_net)) @amount = 100 @credit_card = credit_card('4000100011112224') @bad_card_number = credit_card('1111222233334444') n = Time.now order_id = n.t...
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_uk_test.rb
test/remote/gateways/remote_payflow_uk_test.rb
require 'test_helper' class RemotePayflowUkTest < Test::Unit::TestCase def setup Base.mode = :test # The default partner is PayPalUk @gateway = PayflowUkGateway.new(fixtures(:payflow_uk)) @creditcard = CreditCard.new( number: '5105105105105100', month: 11, year: 2009, first_...
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_one_test.rb
test/remote/gateways/remote_merchant_one_test.rb
require 'test_helper' class RemoteMerchantOneTest < Test::Unit::TestCase def setup @gateway = MerchantOneGateway.new(fixtures(:merchant_one)) @amount = 10000 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('1111111111111111') @options = { order_id: '1', 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_mercury_test.rb
test/remote/gateways/remote_mercury_test.rb
require 'test_helper' require 'support/mercury_helper' class RemoteMercuryTest < Test::Unit::TestCase include MercuryHelper def setup @gateway = MercuryGateway.new(fixtures(:mercury)) @amount = 100 @decline_amount = 257 @credit_card = credit_card('4895281000000006', brand: 'visa', month: '12', y...
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_commerce_hub_test.rb
test/remote/gateways/remote_commerce_hub_test.rb
require 'test_helper' class RemoteCommerceHubTest < Test::Unit::TestCase def setup # Uncomment the sleep if you want to run the entire set of remote tests without # getting 'The transaction limit was exceeded. Please try again!' errors # sleep 10 @gateway = CommerceHubGateway.new(fixtures(:commerce_...
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_ixopay_test.rb
test/remote/gateways/remote_ixopay_test.rb
require 'test_helper' class RemoteIxopayTest < Test::Unit::TestCase def setup @gateway = IxopayGateway.new(fixtures(:ixopay)) @amount = 100 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('4000300011112220') @options = { billing_address: address, shipping...
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_digitzs_test.rb
test/remote/gateways/remote_digitzs_test.rb
require 'test_helper' class RemoteDigitzsTest < Test::Unit::TestCase def setup @gateway = DigitzsGateway.new(fixtures(:digitzs)) @amount = 500 @credit_card = credit_card('4747474747474747', verification_value: '999') @declined_card = credit_card('4616161616161616') @options = { merchant_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_simetrik_test.rb
test/remote/gateways/remote_simetrik_test.rb
require 'test_helper' class RemoteSimetrikTest < Test::Unit::TestCase def setup @gateway = SimetrikGateway.new(fixtures(:simetrik)) @token_acquirer = 'bc4c0f26-a357-4294-9b9e-a90e6c868c6e' @credit_card = CreditCard.new( first_name: 'Joe', last_name: 'Doe', number: '4551708161768059', ...
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_warrior_test.rb
test/remote/gateways/remote_merchant_warrior_test.rb
require 'test_helper' class RemoteMerchantWarriorTest < Test::Unit::TestCase def setup @gateway = MerchantWarriorGateway.new(fixtures(:merchant_warrior).merge(test: true)) @success_amount = 100 @failure_amount = 205 @credit_card = credit_card( '4564710000000004', month: '2', year:...
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_netbilling_test.rb
test/remote/gateways/remote_netbilling_test.rb
require 'test_helper' class RemoteNetbillingTest < Test::Unit::TestCase def setup @gateway = NetbillingGateway.new(fixtures(:netbilling)) @credit_card = credit_card('4444111111111119') @address = { address1: '1600 Amphitheatre Parkway', city: 'Mountain View', state:...
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_micropayment_test.rb
test/remote/gateways/remote_micropayment_test.rb
require 'test_helper' class RemoteMicropaymentTest < Test::Unit::TestCase def setup @gateway = MicropaymentGateway.new(fixtures(:micropayment)) @amount = 250 @credit_card = credit_card('4111111111111111', verification_value: '666') @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_bpoint_test.rb
test/remote/gateways/remote_bpoint_test.rb
require 'test_helper' class RemoteBpointTest < Test::Unit::TestCase def setup @gateway = BpointGateway.new(fixtures(:bpoint)) @amount = 100 approved_year = '00' declined_year = '01' @credit_card = credit_card('4987654321098769', month: '99', year: approved_year) @declined_card = credit_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_metrics_global_test.rb
test/remote/gateways/remote_metrics_global_test.rb
require 'test_helper' class MetricsGlobalTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = MetricsGlobalGateway.new(fixtures(:metrics_global)) @amount = 100 @credit_card = credit_card('4111111111111111', verification_value: '999') @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_sage_pay_test.rb
test/remote/gateways/remote_sage_pay_test.rb
require 'test_helper' # Some of the standard tests have been removed at SagePay test # server is pants and accepts anything and says Status=OK. (shift) # The tests for American Express will only pass if your account is # American express enabled. class RemoteSagePayTest < Test::Unit::TestCase # set to true to run th...
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_cardknox_test.rb
test/remote/gateways/remote_cardknox_test.rb
require 'test_helper' class RemoteCardknoxTest < Test::Unit::TestCase def setup @gateway = CardknoxGateway.new(fixtures(:cardknox)) @amount = rand(100..499) @declined_amount = 500 @credit_card = credit_card('4000100011112224') @declined_card = credit_card('4000300011112220', verification_value: ...
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_junction_v2_test.rb
test/remote/gateways/remote_pay_junction_v2_test.rb
require 'test_helper' class RemotePayJunctionV2Test < Test::Unit::TestCase def setup @gateway = PayJunctionV2Gateway.new(fixtures(:pay_junction_v2)) @amount = 99 @credit_card = credit_card('4444333322221111', month: 01, year: 2021, verification_value: 999) @options = { order_id: generate_uniqu...
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_pago_facil_test.rb
test/remote/gateways/remote_pago_facil_test.rb
require 'test_helper' class RemotePagoFacilTest < Test::Unit::TestCase def setup @gateway = PagoFacilGateway.new(fixtures(:pago_facil)) @amount = 100 @credit_card = ActiveMerchant::Billing::CreditCard.new( number: '4111111111111111', verification_value: '123', first_name: 'Juan', ...
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_rapyd_test.rb
test/remote/gateways/remote_rapyd_test.rb
require 'test_helper' class RemoteRapydTest < Test::Unit::TestCase def setup @gateway = RapydGateway.new(fixtures(:rapyd)) @gateway_payment_redirect = RapydGateway.new(fixtures(:rapyd).merge(url_override: 'payment_redirect')) @amount = 100 @credit_card = credit_card('4111111111111111', first_name: 'R...
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_federated_canada_test.rb
test/remote/gateways/remote_federated_canada_test.rb
require 'test_helper' class RemoteFederatedCanadaTest < Test::Unit::TestCase def setup @gateway = FederatedCanadaGateway.new(fixtures(:federated_canada)) @amount = 100 @declined_amount = 99 @credit_card = credit_card('4111111111111111') # Visa @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_ipg_test.rb
test/remote/gateways/remote_ipg_test.rb
require 'test_helper' class RemoteIpgTest < Test::Unit::TestCase def setup @gateway = IpgGateway.new(fixtures(:ipg)) @gateway_ma = IpgGateway.new(fixtures(:ipg_ma).merge({ store_id: nil })) @amount = 100 @credit_card = credit_card('5165850000000008', brand: 'mastercard', month: '12', year: '2029') ...
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_payment_intents_test.rb
test/remote/gateways/remote_stripe_payment_intents_test.rb
require 'test_helper' class RemoteStripeIntentsTest < Test::Unit::TestCase def setup @gateway = StripePaymentIntentsGateway.new(fixtures(:stripe)) @customer = @gateway.create_test_customer @amount = 2000 @three_ds_payment_method = 'pm_card_threeDSecure2Required' @visa_payment_method = 'pm_card_vi...
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_pac_net_raven_test.rb
test/remote/gateways/remote_pac_net_raven_test.rb
require 'test_helper' class RemotePacNetRavenGatewayTest < Test::Unit::TestCase def setup @gateway = PacNetRavenGateway.new(fixtures(:raven_pac_net)) @amount = 100 @credit_card = credit_card('4000000000000028') @declined_card = credit_card('5100000000000040') @options = { billing_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_worldpay_us_test.rb
test/remote/gateways/remote_worldpay_us_test.rb
require 'test_helper' class RemoteWorldpayUsTest < Test::Unit::TestCase def setup @gateway = WorldpayUsGateway.new(fixtures(:worldpay_us)) @amount = 100 @credit_card = credit_card('4446661234567892', verification_value: '987') @declined_card = credit_card('4000300011112220') @check = check(numbe...
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_gate_xml_test.rb
test/remote/gateways/remote_pay_gate_xml_test.rb
require 'test_helper' class RemotePayGateXmlTest < Test::Unit::TestCase def setup @gateway = PayGateXmlGateway.new(fixtures(:pay_gate_xml)) @amount = 245000 @credit_card = credit_card('4000000000000002') @declined_card = credit_card('4000000000000036') @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_citrus_pay_test.rb
test/remote/gateways/remote_citrus_pay_test.rb
require 'test_helper' class RemoteCitrusPayTest < Test::Unit::TestCase def setup CitrusPayGateway.ssl_strict = false # Sandbox has an improperly installed cert @gateway = CitrusPayGateway.new(fixtures(:citrus_pay)) @amount = 100 @credit_card = credit_card('4987654321098769') @declined_card = 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_latitude19_test.rb
test/remote/gateways/remote_latitude19_test.rb
require 'test_helper' class RemoteLatitude19Test < Test::Unit::TestCase def setup @gateway = Latitude19Gateway.new(fixtures(:latitude19)) @amount = 100 @credit_card = credit_card('4000100011112224', verification_value: '747') @declined_card = credit_card('0000000000000000') @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_forte_test.rb
test/remote/gateways/remote_forte_test.rb
require 'test_helper' class RemoteForteTest < Test::Unit::TestCase def setup @gateway = ForteGateway.new(fixtures(:forte)) @amount = 100 @credit_card = credit_card('4000100011112224') @declined_card = credit_card('1111111111111111') @check = check @bad_check = check({ name: 'Jim Smith...
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_test.rb
test/remote/gateways/remote_vpos_test.rb
require 'test_helper' class RemoteVposTest < Test::Unit::TestCase def setup @gateway = VposGateway.new(fixtures(:vpos)) # some test fails due duplicated transactions @amount = rand(100..100000) @credit_card = credit_card('5418630110000014', month: 8, year: 2026, verification_value: '277') @decli...
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_jetpay_test.rb
test/remote/gateways/remote_jetpay_test.rb
require 'test_helper' class RemoteJetpayTest < Test::Unit::TestCase def setup @gateway = JetpayGateway.new(fixtures(:jetpay)) @credit_card = credit_card('4000300020001000') @declined_card = credit_card('4000300020001000') @options = { billing_address: address(country: 'US', zip: '75008'), ...
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_arc_test.rb
test/remote/gateways/remote_pay_arc_test.rb
require 'test_helper' class RemotePayArcTest < Test::Unit::TestCase def setup @gateway = PayArcGateway.new(fixtures(:pay_arc)) credit_card_options = { month: '12', year: '2022', first_name: 'Rex Joseph', last_name: '', verification_value: '999' } @credit_card = 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_usa_epay_transaction_test.rb
test/remote/gateways/remote_usa_epay_transaction_test.rb
require 'test_helper' class RemoteUsaEpayTransactionTest < Test::Unit::TestCase def setup @gateway = UsaEpayTransactionGateway.new(fixtures(:usa_epay)) @gateway_with_pin = UsaEpayTransactionGateway.new(fixtures(:usa_epay_with_pin)) @credit_card = credit_card('4000100011112224') @declined_card = 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_paysafe_test.rb
test/remote/gateways/remote_paysafe_test.rb
require 'test_helper' class RemotePaysafeTest < Test::Unit::TestCase def setup @gateway = PaysafeGateway.new(fixtures(:paysafe)) @amount = 100 @credit_card = credit_card('4037111111000000') @mastercard = credit_card('5200400000000009', brand: 'master') @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_cecabank_rest_json_test.rb
test/remote/gateways/remote_cecabank_rest_json_test.rb
require 'test_helper' class RemoteCecabankTest < Test::Unit::TestCase def setup @gateway = CecabankJsonGateway.new(fixtures(:cecabank)) @amount = 100 @credit_card = credit_card('4507670001000009', { month: 12, year: Time.now.year, verification_value: '989' }) # for some reason purchase with previous...
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_versa_pay_test.rb
test/remote/gateways/remote_versa_pay_test.rb
require 'test_helper' class RemoteVersaPayTest < Test::Unit::TestCase def setup @gateway = VersaPayGateway.new(fixtures(:versa_pay)) @bad_gateway = VersaPayGateway.new(api_token: 'bad_token', api_key: 'bad_key') @amount = 500 @credit_card = credit_card('4895281000000006', verification_value: '123', ...
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_jetpay_v2_test.rb
test/remote/gateways/remote_jetpay_v2_test.rb
require 'test_helper' class RemoteJetpayV2Test < Test::Unit::TestCase def setup @gateway = JetpayV2Gateway.new(fixtures(:jetpay_v2)) @credit_card = credit_card('4000300020001000') @amount_approved = 9900 @amount_declined = 5205 @options = { device: 'spreedly', application: 'spreedl...
ruby
MIT
ca45b1b063ce2e1495e1427e0a1d42dcb482d57d
2026-01-04T15:45:54.027332Z
false