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_trust_commerce_test.rb
Ruby
mit
4,597
master
8,684
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_worldpay_online_payments_test.rb
Ruby
mit
4,597
master
4,461
require 'test_helper' class RemoteWorldpayOnlinePaymentsTest < Test::Unit::TestCase def setup @gateway = WorldpayOnlinePaymentsGateway.new(fixtures(:worldpay_online_payments)) @amount = 1000 @credit_card = credit_card('4444333322221111') @declined_card = credit_card('2424242424242424') @options...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pin_test.rb
Ruby
mit
4,597
master
14,171
require 'test_helper' class RemotePinTest < Test::Unit::TestCase def setup @gateway = PinGateway.new(fixtures(:pin)) @amount = 100 @credit_card = credit_card('5520000000000000', year: Time.now.year + 2) @visa_credit_card = credit_card('4200000000000000', year: Time.now.year + 3) @declined_card =...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_opp_test.rb
Ruby
mit
4,597
master
7,237
require 'test_helper' class RemoteOppTest < Test::Unit::TestCase def setup @gateway = OppGateway.new(fixtures(:opp)) @amount = 100 @valid_card = credit_card('4200000000000000', month: 05, year: Date.today.year + 2) @invalid_card = credit_card('4444444444444444', month: 05, year: Date.today.year + 2)...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_redsys_sha256_test.rb
Ruby
mit
4,597
master
15,286
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_fortis_test.rb
Ruby
mit
4,597
master
6,899
require 'test_helper' class RemoteFortisTest < Test::Unit::TestCase def setup @gateway = FortisGateway.new(fixtures(:fortis)) @amount = 100 @credit_card = credit_card('5454545454545454', verification_value: '999') @incomplete_credit_card = credit_card('54545454545454') @billing_address = { ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_cyber_source_rest_test.rb
Ruby
mit
4,597
master
23,998
require 'test_helper' class RemoteCyberSourceRestTest < Test::Unit::TestCase def setup @gateway = CyberSourceRestGateway.new(fixtures(:cybersource_rest)) @amount = 10221 @card_without_funds = credit_card('42423482938483873') @bank_account = check(account_number: '4100', routing_number: '121042882') ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_first_pay_test.rb
Ruby
mit
4,597
master
3,938
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), ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_banwire_test.rb
Ruby
mit
4,597
master
1,873
# 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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_netaxept_test.rb
Ruby
mit
4,597
master
3,878
require 'test_helper' class RemoteNetaxeptTest < Test::Unit::TestCase def setup @gateway = NetaxeptGateway.new(fixtures(:netaxept)) @amount = 100 @credit_card = credit_card('4925000000000004') @declined_card = credit_card('4925000000000087') @options = { order_id: generate_unique_id }...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_secure_pay_au_test.rb
Ruby
mit
4,597
master
6,154
require 'test_helper' class RemoteSecurePayAuTest < Test::Unit::TestCase class MyCreditCard include ActiveMerchant::Billing::CreditCardMethods attr_accessor :number, :month, :year, :first_name, :last_name, :verification_value, :brand def initialize(params) params.each { |k, v| instance_variable_se...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_eway_rapid_test.rb
Ruby
mit
4,597
master
13,922
require 'test_helper' class RemoteEwayRapidTest < Test::Unit::TestCase def setup @gateway = EwayRapidGateway.new(fixtures(:eway_rapid)) @amount = 100 @failed_amount = -100 @credit_card = credit_card('4444333322221111') @options = { order_id: '1', invoice: 'I1234', billing_addr...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_datatrans_test.rb
Ruby
mit
4,597
master
11,420
require 'test_helper' class RemoteDatatransTest < Test::Unit::TestCase def setup @gateway = DatatransGateway.new(fixtures(:datatrans)) @amount = 756 @credit_card = credit_card('4242424242424242', verification_value: '123', first_name: 'John', last_name: 'Smith', month: 6, year: Time.now.year) @bad_a...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_authorize_net_arb_test.rb
Ruby
mit
4,597
master
1,601
require 'test_helper' class AuthorizeNetArbTest < Test::Unit::TestCase def setup @gateway = AuthorizeNetArbGateway.new(fixtures(:authorize_net)) @amount = 100 @credit_card = credit_card('4242424242424242') @check = check @options = { amount: 100, subscription_name: 'Test Subscription...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_quickpay_v6_test.rb
Ruby
mit
4,597
master
7,620
require 'test_helper' class RemoteQuickpayV6Test < Test::Unit::TestCase # These test assumes that you have not added your development IP in # the Quickpay Manager. def setup @gateway = QuickpayGateway.new(fixtures(:quickpay_with_api_key).merge(version: 6)) @amount = 100 @options = { order_id: ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_efsnet_test.rb
Ruby
mit
4,597
master
2,270
require 'test_helper' class RemoteEfsnetTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = EfsnetGateway.new(fixtures(:efsnet)) @credit_card = credit_card('4000100011112224') @amount = 100 @declined_amount = 156 @options = { order_id: generate_unique_id, b...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pay_secure_test.rb
Ruby
mit
4,597
master
1,054
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pagarme_test.rb
Ruby
mit
4,597
master
4,941
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_checkout_v2_test.rb
Ruby
mit
4,597
master
44,172
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pay_gate_xml_test.rb
Ruby
mit
4,597
master
1,933
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_...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_digitzs_test.rb
Ruby
mit
4,597
master
4,551
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_quickbooks_test.rb
Ruby
mit
4,597
master
5,682
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_vantiv_express_test.rb
Ruby
mit
4,597
master
14,433
require 'test_helper' class RemoteVantivExpressTest < Test::Unit::TestCase def setup @gateway = VantivExpressGateway.new(fixtures(:element)) @amount = rand(1000..2000) @credit_card = credit_card('4000100011112224') @declined_card = credit_card('6060704495764400') @check = check @options = { ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_omise_test.rb
Ruby
mit
4,597
master
3,398
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_iats_payments_test.rb
Ruby
mit
4,597
master
5,003
require 'test_helper' class IatsPaymentsTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = IatsPaymentsGateway.new(fixtures(:iats_payments)) @amount = 100 @credit_card = credit_card('4222222222222220') @check = check(routing_number: '111111111', account_number: '12345678') @o...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_stripe_payment_intents_test.rb
Ruby
mit
4,597
master
69,466
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_paymentez_test.rb
Ruby
mit
4,597
master
10,473
require 'test_helper' class RemotePaymentezTest < Test::Unit::TestCase def setup @gateway = PaymentezGateway.new(fixtures(:paymentez)) @ecuador_gateway = PaymentezGateway.new(fixtures(:paymentez_ecuador)) @amount = 100 @credit_card = credit_card('4111111111111111', verification_value: '666') @ot...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_evo_ca_test.rb
Ruby
mit
4,597
master
4,243
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_authorize_net_test.rb
Ruby
mit
4,597
master
34,669
require 'test_helper' class RemoteAuthorizeNetTest < Test::Unit::TestCase def setup @gateway = AuthorizeNetGateway.new(fixtures(:authorize_net)) @amount = 100 @credit_card = credit_card('4000100011112224') @check = check @declined_card = credit_card('400030001111222') @payment_token = netwo...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_authorize_net_cim_test.rb
Ruby
mit
4,597
master
39,259
require 'test_helper' require 'pp' class AuthorizeNetCimTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = AuthorizeNetCimGateway.new(fixtures(:authorize_net)) @amount = 100 @credit_card = credit_card('4242424242424242') @payment = { credit_card: @credit_card } @pro...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_ncr_secure_pay_test.rb
Ruby
mit
4,597
master
3,545
require 'test_helper' class RemoteMonetraTest < Test::Unit::TestCase def setup @gateway = NcrSecurePayGateway.new(fixtures(:ncr_secure_pay)) @amount = 100 @credit_card = credit_card('4111111111111111') @bad_credit_card = credit_card('1234567890123456') @options = { billing_address: address...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_worldpay_test.rb
Ruby
mit
4,597
master
62,459
require 'test_helper' class RemoteWorldpayTest < Test::Unit::TestCase def setup @gateway = WorldpayGateway.new(fixtures(:world_pay_gateway)) @cftgateway = WorldpayGateway.new(fixtures(:world_pay_gateway_cft)) @amount = 100 @year = (Time.now.year + 2).to_s[-2..-1].to_i @credit_card = credit_card(...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_swipe_checkout_test.rb
Ruby
mit
4,597
master
2,166
require 'test_helper' class RemoteSwipeCheckoutTest < Test::Unit::TestCase def setup @gateway = SwipeCheckoutGateway.new(fixtures(:swipe_checkout)) @amount = 100 @accepted_card = credit_card('1234123412341234') @declined_card = credit_card('1111111111111111') @invalid_card = credit_card('100000...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_vpos_without_key_test.rb
Ruby
mit
4,597
master
4,440
require 'test_helper' class RemoteVposWithoutKeyTest < Test::Unit::TestCase def setup vpos_fixtures = fixtures(:vpos) vpos_fixtures.delete(:encryption_key) @gateway = VposGateway.new(vpos_fixtures) @amount = 100000 @credit_card = credit_card('5418630110000014', month: 8, year: 2026, verification...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_cyber_source_test.rb
Ruby
mit
4,597
master
58,025
require 'test_helper' class RemoteCyberSourceTest < Test::Unit::TestCase # Reduce code duplication: use `assert_successful_response` when feasible! def setup Base.mode = :test @gateway = CyberSourceGateway.new({ nexus: 'NC' }.merge(fixtures(:cyber_source))) @gateway_certificate = CyberSourceGateway.ne...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_firstdata_e4_v27_test.rb
Ruby
mit
4,597
master
10,177
require 'test_helper' class RemoteFirstdataE4V27Test < Test::Unit::TestCase def setup @gateway = FirstdataE4V27Gateway.new(fixtures(:firstdata_e4_v27)) @credit_card = credit_card @credit_card_master = credit_card('5500000000000004', brand: 'master') @bad_credit_card = credit_card('4111111111111113') ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_reach_test.rb
Ruby
mit
4,597
master
10,385
require 'test_helper' class RemoteReachTest < Test::Unit::TestCase def setup @gateway = ReachGateway.new(fixtures(:reach)) @amount = 100 @credit_card = credit_card('4444333322221111', { month: 3, year: 2030, verification_value: 737 }) @not_supported_cc = credit_card('44443333222...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_spreedly_core_test.rb
Ruby
mit
4,597
master
12,401
require 'test_helper' class RemoteSpreedlyCoreTest < Test::Unit::TestCase def setup @gateway = SpreedlyCoreGateway.new(fixtures(:spreedly_core)) @amount = 100 @credit_card = credit_card('5555555555554444') @declined_card = credit_card('4012888888881881') @check = check({ routing_number: '0210000...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_flex_charge_test.rb
Ruby
mit
4,597
master
10,485
require 'timecop' require 'test_helper' class RemoteFlexChargeTest < Test::Unit::TestCase def setup @gateway = FlexChargeGateway.new(fixtures(:flex_charge)) @amount = 100 @credit_card_cit = credit_card('4111111111111111', verification_value: '999', first_name: 'Cure', last_name: 'Tester') @credit_ca...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_ogone_test.rb
Ruby
mit
4,597
master
14,534
# coding: utf-8 require 'test_helper' class RemoteOgoneTest < Test::Unit::TestCase def setup @gateway = OgoneGateway.new(fixtures(:ogone)) # this change is according the new PSD2 guideline # https://support.legacy.worldline-solutions.com/en/direct/faq/i-have-noticed-i-have-more-declined-transactions-st...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_sum_up_test.rb
Ruby
mit
4,597
master
4,873
require 'test_helper' class RemoteSumUpTest < Test::Unit::TestCase def setup @gateway = SumUpGateway.new(fixtures(:sum_up)) @amount = 100 @credit_card = credit_card('4000100011112224') @declined_card = credit_card('55555555555555555') @options = { payment_type: 'card', billing_addres...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_cenpos_test.rb
Ruby
mit
4,597
master
6,840
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_latitude19_test.rb
Ruby
mit
4,597
master
5,910
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_mundipagg_test.rb
Ruby
mit
4,597
master
11,928
require 'test_helper' class RemoteMundipaggTest < Test::Unit::TestCase def setup @gateway = MundipaggGateway.new(fixtures(:mundipagg)) @amount = 100 @credit_card = credit_card('4000000000000010') @declined_card = credit_card('4000300011112220') @sodexo_voucher = credit_card('6060704495764400', b...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_payu_latam_test.rb
Ruby
mit
4,597
master
15,636
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_network_merchants_test.rb
Ruby
mit
4,597
master
5,659
require 'test_helper' class RemoteNetworkMerchantsTest < Test::Unit::TestCase def setup @gateway = NetworkMerchantsGateway.new(fixtures(:network_merchants)) @amount = 100 @decline_amount = 1 @credit_card = credit_card('4111111111111111') @credit_card_with_track_data = credit_card_with_track_data...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_vanco_test.rb
Ruby
mit
4,597
master
4,635
require 'test_helper' class RemoteVancoTest < Test::Unit::TestCase SECONDS_PER_DAY = 3600 * 24 def setup @gateway = VancoGateway.new(fixtures(:vanco)) @amount = 10005 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('4111111111111111', year: 2011) @check = check ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_data_cash_test.rb
Ruby
mit
4,597
master
11,287
require 'test_helper' class RemoteDataCashTest < Test::Unit::TestCase def setup # gateway to connect to Datacash @gateway = DataCashGateway.new(fixtures(:data_cash)) @mastercard = CreditCard.new( number: '5120790000000034', month: 3, year: Date.today.year + 2, first_name: 'Mark',...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_net_registry_test.rb
Ruby
mit
4,597
master
3,472
require 'test/unit' require 'test_helper' # To run these tests, set the variables at the top of the class # definition. # # Note that NetRegistry does not provide any sort of test # server/account, so you'll probably want to refund any uncredited # purchases through the NetRegistry console at www.netregistry.com . # A...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_plugnpay_test.rb
Ruby
mit
4,597
master
3,064
require 'test_helper' class PlugnpayTest < Test::Unit::TestCase def setup @gateway = PlugnpayGateway.new(fixtures(:plugnpay)) @good_card = credit_card('4111111111111111', first_name: 'cardtest') @bad_card = credit_card('1234123412341234') @options = { billing_address: address, description...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_federated_canada_test.rb
Ruby
mit
4,597
master
2,667
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, ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_mit_test.rb
Ruby
mit
4,597
master
4,532
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', ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_beanstream_test.rb
Ruby
mit
4,597
master
15,971
require 'test_helper' # This test suite assumes that you have enabled username/password transaction validation in your Beanstream account. # You will experience some test failures if username/password validation transaction validation is not enabled. # Beanstream does not allow Payment Profiles to be deleted with thei...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_viaklix_test.rb
Ruby
mit
4,597
master
1,134
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_blue_pay_test.rb
Ruby
mit
4,597
master
7,614
require 'test_helper' class BluePayTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = BluePayGateway.new(fixtures(:blue_pay)) @amount = 100 @credit_card = credit_card('4242424242424242') @options = { order_id: generate_unique_id, billing_address: address, descri...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_itransact_test.rb
Ruby
mit
4,597
master
2,839
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_payex_test.rb
Ruby
mit
4,597
master
3,638
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_commerce_hub_test.rb
Ruby
mit
4,597
master
14,967
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_...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_securion_pay_test.rb
Ruby
mit
4,597
master
10,426
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_culqi_test.rb
Ruby
mit
4,597
master
5,901
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_ipp_test.rb
Ruby
mit
4,597
master
2,405
require 'test_helper' class RemoteIppTest < Test::Unit::TestCase def setup @gateway = IppGateway.new(fixtures(:ipp)) @credit_card = credit_card('4005550000000001') @options = { order_id: '1', billing_address: address, description: 'Store Purchase' } end def test_dump_transcri...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_cams_test.rb
Ruby
mit
4,597
master
3,864
require 'test_helper' class RemoteCamsTest < Test::Unit::TestCase @@amount = 100 def setup @gateway = CamsGateway.new(fixtures(:cams)) @amount = rand(100..100000) @credit_card = credit_card('4111111111111111') @declined_card = credit_card('4000300015555555') @options = { order_id: gene...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_eway_managed_test.rb
Ruby
mit
4,597
master
1,851
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_redsys_test.rb
Ruby
mit
4,597
master
8,290
require 'test_helper' class RemoteRedsysTest < Test::Unit::TestCase def setup @gateway = RedsysGateway.new(fixtures(:redsys)) @amount = 100 @credit_card = credit_card('4548812049400004') @declined_card = credit_card @options = { order_id: generate_order_id, description: 'Test Descript...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_dibs_test.rb
Ruby
mit
4,597
master
5,565
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) ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_optimal_payment_test.rb
Ruby
mit
4,597
master
6,861
require 'test_helper' class RemoteOptimalPaymentTest < Test::Unit::TestCase def setup @gateway = OptimalPaymentGateway.new(fixtures(:optimal_payment)) @amount = 100 @declined_amount = 5 @credit_card = credit_card('4387751111011') @expired_card = credit_card('4387751111011', month: 12, year: 2019...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_payment_express_test.rb
Ruby
mit
4,597
master
5,512
require 'test_helper' class RemotePaymentExpressTest < Test::Unit::TestCase def setup @gateway = PaymentExpressGateway.new(fixtures(:payment_express)) @credit_card = credit_card('4111111111111111') @options = { order_id: generate_unique_id, billing_address: address, email: 'cody@examp...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_first_giving_test.rb
Ruby
mit
4,597
master
1,941
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(...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_shift4_v2_test.rb
Ruby
mit
4,597
master
7,567
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_creditcall_test.rb
Ruby
mit
4,597
master
5,167
require 'test_helper' class RemoteCreditcallTest < Test::Unit::TestCase def setup @gateway = CreditcallGateway.new(fixtures(:creditcall)) @amount = 100 @credit_card = credit_card('4000100011112224') @declined_card = credit_card('4000300011112220') @options = { billing_address: address, ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pro_pay_test.rb
Ruby
mit
4,597
master
4,733
require 'test_helper' class RemoteProPayTest < Test::Unit::TestCase def setup @gateway = ProPayGateway.new(fixtures(:pro_pay)) @amount = 100 @credit_card = credit_card('4747474747474747', verification_value: 999) @declined_card = credit_card('4616161616161616') @credit_card_without_cvv = credit_...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_merchant_ware_version_four_test.rb
Ruby
mit
4,597
master
3,933
require 'test_helper' class RemoteMerchantWareVersionFourTest < Test::Unit::TestCase def setup @gateway = MerchantWareVersionFourGateway.new(fixtures(:merchant_ware_version_four)) @amount = rand(200..1199) @credit_card = credit_card('5424180279791732', { brand: 'master' }) @declined_card = credit_car...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_cashnet_test.rb
Ruby
mit
4,597
master
3,021
require 'test_helper' class CashnetTest < Test::Unit::TestCase def setup @gateway = CashnetGateway.new(fixtures(:cashnet)) @amount = 100 @credit_card = credit_card( '5454545454545454', month: 12, year: Time.new.year + 1 ) @options = { order_id: generate_unique_id, bi...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_epay_test.rb
Ruby
mit
4,597
master
3,627
require 'test_helper' class RemoteEpayTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = EpayGateway.new(fixtures(:epay)) @credit_card = credit_card('3333333333333000') @credit_card_declined = credit_card('3333333333333102') @amount = 100 @options_xid = { order_id: generate_u...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_garanti_test.rb
Ruby
mit
4,597
master
1,811
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_decidir_test.rb
Ruby
mit
4,597
master
12,868
require 'test_helper' class RemoteDecidirTest < Test::Unit::TestCase def setup @gateway_for_purchase = DecidirGateway.new(fixtures(:decidir_purchase)) @gateway_for_auth = DecidirGateway.new(fixtures(:decidir_authorize)) @amount = 100 @credit_card = credit_card('4507990000004905') @master_card_cr...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_linkpoint_test.rb
Ruby
mit
4,597
master
4,864
# # In order for this test to pass, a valid store number and PEM file # are required. Unfortunately, with LinkPoint YOU CAN'T JUST USE ANY # OLD STORE NUMBER. Also, you can't just generate your own PEM file. # You'll need to use a special PEM file provided by LinkPoint. # # Go to http://www.linkpoint.com/support/sup_te...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_merchant_partners_test.rb
Ruby
mit
4,597
master
5,030
require 'test_helper' class RemoteMerchantPartnersTest < Test::Unit::TestCase def setup @gateway = MerchantPartnersGateway.new(fixtures(:merchant_partners)) @amount = 100 @credit_card = credit_card('4003000123456781') @declined_card = credit_card('4003000123456782') @options = { order_id:...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_versa_pay_test.rb
Ruby
mit
4,597
master
13,467
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', ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_shift4_test.rb
Ruby
mit
4,597
master
9,896
require 'test_helper' class RemoteShift4Test < Test::Unit::TestCase def setup @gateway = Shift4Gateway.new(fixtures(:shift4)) access_token = @gateway.setup_access_token @gateway = Shift4Gateway.new(fixtures(:shift4).merge(access_token:)) @amount = 500 @credit_card = credit_card('400010001111222...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_merchant_ware_test.rb
Ruby
mit
4,597
master
3,185
require 'test_helper' class RemoteMerchantWareTest < Test::Unit::TestCase def setup @gateway = MerchantWareGateway.new(fixtures(:merchant_ware)) @amount = rand(200..1199) @credit_card = credit_card('5424180279791732', { brand: 'master' }) @options = { order_id: generate_unique_id, bill...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_paybox_direct_3ds_test.rb
Ruby
mit
4,597
master
4,747
# encoding: utf-8 require 'test_helper' class RemotePayboxDirect3DSTest < Test::Unit::TestCase def setup fixtures = fixtures(:paybox_direct) @gateway = PayboxDirectGateway.new(fixtures) @amount = 100 @credit_card = credit_card(fixtures[:credit_card_ok_3ds]) @declined_card = credit_card(fixtures...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_plexo_test.rb
Ruby
mit
4,597
master
12,285
require 'test_helper' class RemotePlexoTest < Test::Unit::TestCase def setup @gateway = PlexoGateway.new(fixtures(:plexo)) @amount = 100 @credit_card = credit_card('5555555555554444', month: '12', year: Time.now.year + 1, verification_value: '111', first_name: 'Santiago', last_name: 'Navatta') @decl...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_card_save_test.rb
Ruby
mit
4,597
master
2,012
require 'test_helper' class RemoteCardSaveTest < Test::Unit::TestCase def setup @gateway = CardSaveGateway.new(fixtures(:card_save)) @amount = 100 @credit_card = credit_card('4976000000003436', verification_value: '452') @declined_card = credit_card('4221690000004963', verification_value: '125') ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_cecabank_rest_json_test.rb
Ruby
mit
4,597
master
10,039
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_jetpay_v2_test.rb
Ruby
mit
4,597
master
7,455
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pay_trace_test.rb
Ruby
mit
4,597
master
13,552
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 ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_ct_payment_certification_test.rb
Ruby
mit
4,597
master
8,152
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', ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_payeezy_test.rb
Ruby
mit
4,597
master
18,306
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)...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_nuvei_test.rb
Ruby
mit
4,597
master
21,385
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_transax_test.rb
Ruby
mit
4,597
master
4,044
require 'test_helper' class RemoteTransaxTest < Test::Unit::TestCase def setup @gateway = TransaxGateway.new(fixtures(:transax)) @amount = 100 @credit_card = credit_card('4111111111111111', year: 10, month: 10) @declined_card = credit_card(0xDEADBEEF_0000.to_s) @check = check() @options = ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_inspire_test.rb
Ruby
mit
4,597
master
5,333
require 'test_helper' class RemoteBraintreeTest < Test::Unit::TestCase def setup @gateway = InspireGateway.new(fixtures(:inspire)) @amount = rand(1001..11000) @credit_card = credit_card('4111111111111111', brand: 'visa') @declined_amount = rand(99) @options = { order_id: generate_unique_id, ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_paybox_direct_test.rb
Ruby
mit
4,597
master
3,718
# encoding: utf-8 require 'test_helper' class RemotePayboxDirectTest < Test::Unit::TestCase def setup fixtures = fixtures(:paybox_direct) @gateway = PayboxDirectGateway.new(fixtures) @amount = 100 @credit_card = credit_card(fixtures[:credit_card_ok]) @declined_card = credit_card(fixtures[:credi...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_moneris_test.rb
Ruby
mit
4,597
master
23,715
require 'test_helper' class MonerisRemoteTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = MonerisGateway.new(fixtures(:moneris)) # https://developer.moneris.com/More/Testing/Penny%20Value%20Simulator @amount = 100 @fail_amount = 105 # https://developer.moneris.com/livedem...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_transact_pro_test.rb
Ruby
mit
4,597
master
3,547
require 'test_helper' require 'active_support/core_ext/hash/slice' class RemoteTransactProTest < Test::Unit::TestCase def setup test_credentials = fixtures(:transact_pro).slice(:guid, :password, :terminal) test_card = fixtures(:transact_pro).slice(:card_number, :verification_value, :month, :year) @gatew...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_nab_transact_test.rb
Ruby
mit
4,597
master
9,097
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_paystation_test.rb
Ruby
mit
4,597
master
4,093
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_stripe_connect_test.rb
Ruby
mit
4,597
master
2,912
require 'test_helper' class RemoteStripeConnectTest < Test::Unit::TestCase def setup @gateway = StripeGateway.new(fixtures(:stripe)) @amount = 100 @credit_card = credit_card('4242424242424242') @declined_card = credit_card('4000000000000002') @new_credit_card = credit_card('5105105105105100') ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_usa_epay_advanced_test.rb
Ruby
mit
4,597
master
14,863
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...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_verifi_test.rb
Ruby
mit
4,597
master
3,229
require 'test_helper' class VerifiTest < Test::Unit::TestCase include ActiveMerchant::Billing def setup @gateway = VerifiGateway.new(fixtures(:verify)) @credit_card = credit_card('4111111111111111') # Replace with your login and password for the Verifi test environment @options = { order_...