source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_barclays_epdq_extra_plus_test.rb
Ruby
mit
4,597
master
11,086
# 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 =...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_sage_test.rb
Ruby
mit
4,597
master
6,742
require 'test_helper' class RemoteSageTest < Test::Unit::TestCase def setup @gateway = SageGateway.new(fixtures(:sage)) @amount = 100 @visa = credit_card('4111111111111111') @check = check @mastercard = credit_card('5499740000000057') @discover = credit_card('60110009930269...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_nmi_test.rb
Ruby
mit
4,597
master
23,582
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( ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_hps_test.rb
Ruby
mit
4,597
master
18,961
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 =...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_mercado_pago_test.rb
Ruby
mit
4,597
master
14,985
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_so_easy_pay_test.rb
Ruby
mit
4,597
master
1,813
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_alelo_test_certification.rb
Ruby
mit
4,597
master
4,046
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', ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_migs_test.rb
Ruby
mit
4,597
master
7,915
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_qvalent_test.rb
Ruby
mit
4,597
master
7,472
require 'test_helper' class RemoteQvalentTest < Test::Unit::TestCase def setup @gateway = QvalentGateway.new(fixtures(:qvalent)) @amount = 100 @credit_card = credit_card('4242424242424242') @mastercard = credit_card('5163200000000008', brand: 'master') @declined_card = credit_card('4000000000000...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_moka_test.rb
Ruby
mit
4,597
master
8,818
require 'test_helper' class RemoteMokaTest < Test::Unit::TestCase def setup @gateway = MokaGateway.new(fixtures(:moka)) @amount = 100 @credit_card = credit_card('5269111122223332') @declined_card = credit_card('4000300011112220') @options = { description: 'Store Purchase' } @three_...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_firstdata_e4_test.rb
Ruby
mit
4,597
master
9,337
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') ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_ipg_test.rb
Ruby
mit
4,597
master
6,621
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') ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_global_collect_test.rb
Ruby
mit
4,597
master
22,090
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_iveri_test.rb
Ruby
mit
4,597
master
6,645
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 = ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_wirecard_test.rb
Ruby
mit
4,597
master
8,934
# encoding: UTF-8 require 'test_helper' class RemoteWirecardTest < Test::Unit::TestCase def setup test_account = fixtures(:wirecard) @gateway = WirecardGateway.new(test_account) @amount = 100 @credit_card = credit_card('4200000000000000') @declined_card = credit_card('4000300011112220') @am...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_s5_test.rb
Ruby
mit
4,597
master
5,230
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, ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_realex_test.rb
Ruby
mit
4,597
master
14,957
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_mercury_test.rb
Ruby
mit
4,597
master
7,748
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_beanstream_interac_test.rb
Ruby
mit
4,597
master
1,283
require 'test_helper' class RemoteBeanstreamInteracTest < Test::Unit::TestCase def setup @gateway = BeanstreamInteracGateway.new(fixtures(:beanstream_interac)) @amount = 100 @options = { order_id: generate_unique_id, billing_address: { name: 'xiaobo zzz', phone: '555-555-555...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_citrus_pay_test.rb
Ruby
mit
4,597
master
4,098
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_payflow_test.rb
Ruby
mit
4,597
master
19,471
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_priority_test.rb
Ruby
mit
4,597
master
13,738
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_bridge_pay_test.rb
Ruby
mit
4,597
master
4,171
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_world_net_test.rb
Ruby
mit
4,597
master
5,749
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 = { ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_secure_net_test.rb
Ruby
mit
4,597
master
4,310
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_elavon_test.rb
Ruby
mit
4,597
master
20,516
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_stripe_apple_pay_test.rb
Ruby
mit
4,597
master
3,065
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_money_movers_test.rb
Ruby
mit
4,597
master
2,585
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_braintree_orange_test.rb
Ruby
mit
4,597
master
6,579
require 'test_helper' class RemoteBraintreeOrangeTest < Test::Unit::TestCase def setup @gateway = BraintreeGateway.new(fixtures(:braintree_orange)) @amount = rand(1001..11000) @credit_card = credit_card('4111111111111111') @check = check() @declined_amount = rand(99) @options = { order_id: ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_checkout_test.rb
Ruby
mit
4,597
master
3,847
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 = ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pay_junction_test.rb
Ruby
mit
4,597
master
4,557
require 'test_helper' class PayJunctionTest < Test::Unit::TestCase include ActiveMerchant::Billing cattr_accessor :current_invoice AMOUNT = 250 def setup @gateway = PayJunctionGateway.new(fixtures(:pay_junction)) @credit_card = credit_card('4444333322221111', verification_value: '999') @valid_...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_be2bill_test.rb
Ruby
mit
4,597
master
1,832
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_allied_wallet_test.rb
Ruby
mit
4,597
master
4,623
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_mercury_certification_test.rb
Ruby
mit
4,597
master
2,884
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 ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_ct_payment_test.rb
Ruby
mit
4,597
master
5,776
require 'test_helper' class RemoteCtPaymentTest < Test::Unit::TestCase def setup @gateway = CtPaymentGateway.new(fixtures(:ct_payment)) @amount = 100 @credit_card = credit_card('4501161107217214') @declined_card = credit_card('4502244713161718') @options = { billing_address: address, ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_quantum_test.rb
Ruby
mit
4,597
master
2,178
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_authorize_net_apple_pay_test.rb
Ruby
mit
4,597
master
5,463
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_card_stream_test.rb
Ruby
mit
4,597
master
18,191
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_trans_first_transaction_express_test.rb
Ruby
mit
4,597
master
13,104
require 'test_helper' class RemoteTransFirstTransactionExpressTest < Test::Unit::TestCase def setup @gateway = TransFirstTransactionExpressGateway.new(fixtures(:trans_first_transaction_express)) @amount = 100 @declined_amount = 21 @credit_card = credit_card('4485896261017708', verification_value: 99...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_quickpay_v5_test.rb
Ruby
mit
4,597
master
7,620
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: ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_redsys_rest_test.rb
Ruby
mit
4,597
master
13,393
require 'test_helper' class RemoteRedsysRestTest < Test::Unit::TestCase def setup @gateway = RedsysRestGateway.new(fixtures(:redsys_rest)) @amount = 100 @credit_card = credit_card('4548810000000011', verification_value: '123', month: '12', year: '34') @credit_card_no_cvv = credit_card('45488120494000...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_barclaycard_smartpay_test.rb
Ruby
mit
4,597
master
14,874
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_bpoint_test.rb
Ruby
mit
4,597
master
4,238
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(...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_usa_epay_transaction_test.rb
Ruby
mit
4,597
master
10,381
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_orbital_test.rb
Ruby
mit
4,597
master
62,758
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_d_local_test.rb
Ruby
mit
4,597
master
15,029
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_jetpay_test.rb
Ruby
mit
4,597
master
6,518
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'), ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_paymill_test.rb
Ruby
mit
4,597
master
6,190
require 'test_helper' class RemotePaymillTest < Test::Unit::TestCase def setup params = fixtures(:paymill) @gateway = PaymillGateway.new(public_key: params[:public_key], private_key: params[:private_key]) @amount = 100 @credit_card = credit_card('5500000000000004') @options = { email: 'Long...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_komoju_test.rb
Ruby
mit
4,597
master
2,499
require 'test_helper' require 'securerandom' class RemoteKomojuTest < Test::Unit::TestCase def setup @gateway = KomojuGateway.new(fixtures(:komoju)) @amount = 100 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('4123111111111059') @fraudulent_card = credit_card('41231...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_payway_test.rb
Ruby
mit
4,597
master
2,693
require 'test_helper' class PaywayTest < Test::Unit::TestCase def setup @amount = 1100 @options = { order_id: generate_unique_id } @gateway = ActiveMerchant::Billing::PaywayGateway.new(fixtures(:payway)) @visa = credit_card( '4564710000000004', month: 2, year: 2019, verific...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_sallie_mae_test.rb
Ruby
mit
4,597
master
1,485
require 'test_helper' class RemoteSallieMaeTest < Test::Unit::TestCase def setup @gateway = SallieMaeGateway.new(fixtures(:sallie_mae)) @amount = 100 @credit_card = credit_card('5454545454545454') @declined_card = credit_card('4000300011112220') @options = { billing_address: address, ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_trexle_test.rb
Ruby
mit
4,597
master
5,611
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_ebanx_test.rb
Ruby
mit
4,597
master
17,647
require 'test_helper' class RemoteEbanxTest < Test::Unit::TestCase def setup @gateway = EbanxGateway.new(fixtures(:ebanx)) @gateway_local = EbanxGateway.new(fixtures(:ebanx_local)) @amount = 100 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('5102026827345142') @...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_safe_charge_test.rb
Ruby
mit
4,597
master
12,695
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_cardprocess_test.rb
Ruby
mit
4,597
master
4,905
require 'test_helper' class RemoteCardprocessTest < Test::Unit::TestCase def setup @gateway = CardprocessGateway.new(fixtures(:cardprocess)) @amount = 100 @credit_card = credit_card('4200000000000000') @credit_card_3ds = credit_card('4711100000000000') @options = { billing_address: addres...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_micropayment_test.rb
Ruby
mit
4,597
master
4,990
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 = { ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_psl_card_test.rb
Ruby
mit
4,597
master
3,163
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 =...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_netbanx_test.rb
Ruby
mit
4,597
master
11,220
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 =...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_forte_test.rb
Ruby
mit
4,597
master
7,324
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_worldpay_us_test.rb
Ruby
mit
4,597
master
4,190
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_payu_in_test.rb
Ruby
mit
4,597
master
3,845
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 ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_instapay_test.rb
Ruby
mit
4,597
master
1,716
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, ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_litle_test.rb
Ruby
mit
4,597
master
29,568
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pay_hub_test.rb
Ruby
mit
4,597
master
2,219
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_iridium_test.rb
Ruby
mit
4,597
master
6,251
# 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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_merchant_one_test.rb
Ruby
mit
4,597
master
1,727
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_bank_frick_test.rb
Ruby
mit
4,597
master
3,646
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 ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_element_test.rb
Ruby
mit
4,597
master
11,178
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'), ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pay_arc_test.rb
Ruby
mit
4,597
master
7,677
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_quickpay_v4_test.rb
Ruby
mit
4,597
master
7,620
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: ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_hdfc_test.rb
Ruby
mit
4,597
master
2,393
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pac_net_raven_test.rb
Ruby
mit
4,597
master
9,052
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:...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_alelo_test.rb
Ruby
mit
4,597
master
6,600
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_ixopay_test.rb
Ruby
mit
4,597
master
8,639
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pago_facil_test.rb
Ruby
mit
4,597
master
2,715
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', ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_simetrik_test.rb
Ruby
mit
4,597
master
8,839
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', ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_netbilling_test.rb
Ruby
mit
4,597
master
4,475
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:...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_paysafe_test.rb
Ruby
mit
4,597
master
16,025
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_stripe_3ds_test.rb
Ruby
mit
4,597
master
9,158
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_maxipago_test.rb
Ruby
mit
4,597
master
3,927
require 'test_helper' class RemoteMaxipagoTest < Test::Unit::TestCase def setup @gateway = MaxipagoGateway.new(fixtures(:maxipago)) @amount = 1000 @invalid_amount = 2009 @credit_card = credit_card('4111111111111111', verification_value: '444') @invalid_card = credit_card('4111111111111111', year...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_blue_snap_test.rb
Ruby
mit
4,597
master
21,370
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_clearhaus_test.rb
Ruby
mit
4,597
master
6,756
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_braintree_blue_test.rb
Ruby
mit
4,597
master
66,761
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_braintree_token_nonce_test.rb
Ruby
mit
4,597
master
4,342
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, ' ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_netpay_test.rb
Ruby
mit
4,597
master
2,903
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_rapyd_test.rb
Ruby
mit
4,597
master
21,676
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_deepstack_test.rb
Ruby
mit
4,597
master
6,933
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_secure_pay_test.rb
Ruby
mit
4,597
master
650
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_airwallex_test.rb
Ruby
mit
4,597
master
11,553
require 'test_helper' class RemoteAirwallexTest < Test::Unit::TestCase def setup @gateway = AirwallexGateway.new(fixtures(:airwallex)) # https://www.airwallex.com/docs/online-payments__test-card-numbers @amount = 100 @declined_amount = 8014 @credit_card = credit_card('4012 0003 0000 1003') @...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_finansbank_test.rb
Ruby
mit
4,597
master
3,126
# 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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_wepay_test.rb
Ruby
mit
4,597
master
6,709
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) ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_telr_test.rb
Ruby
mit
4,597
master
5,093
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_...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_wompi_test.rb
Ruby
mit
4,597
master
4,104
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_cecabank_test.rb
Ruby
mit
4,597
master
1,766
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_ezic_test.rb
Ruby
mit
4,597
master
3,579
require 'test_helper' class RemoteEzicTest < Test::Unit::TestCase def setup @gateway = EzicGateway.new(fixtures(:ezic)) @amount = 100 @failed_amount = 19088 @credit_card = credit_card('4000100011112224') @options = { order_id: '1', billing_address: address, description: 'Store...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_balanced_test.rb
Ruby
mit
4,597
master
5,599
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') @...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_first_pay_json_test.rb
Ruby
mit
4,597
master
4,923
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_flo2cash_simple_test.rb
Ruby
mit
4,597
master
2,157
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_bambora_apac_test.rb
Ruby
mit
4,597
master
3,533
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 ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_openpay_test.rb
Ruby
mit
4,597
master
7,944
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...