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/unit/gateways/credorax_test.rb | Ruby | mit | 4,597 | master | 51,398 | require 'test_helper'
class CredoraxTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = CredoraxGateway.new(merchant_id: 'login', cipher_key: 'password')
@credit_card = credit_card
@amount = 100
@options = {
billing_address: address,
description: 'Store Purchase'
}
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/alelo_test.rb | Ruby | mit | 4,597 | master | 13,105 | require 'test_helper'
class AleloTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = AleloGateway.new(fixtures(:alelo))
@credit_card = credit_card
@amount = 100
@options = {
order_id: 'f63b625e-331e-490a-b15c-50b4087ca64f',
establishment_code: '000002007690360',
su... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payu_latam_test.rb | Ruby | mit | 4,597 | master | 33,581 | require 'test_helper'
class PayuLatamTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = PayuLatamGateway.new(merchant_id: 'merchant_id', account_id: 'account_id', api_login: 'api_login', api_key: 'api_key', payment_country: 'AR')
@amount = 4000
@credit_card = credit_card('4097440000000... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/authorize_net_test.rb | Ruby | mit | 4,597 | master | 114,844 | require 'test_helper'
class AuthorizeNetTest < Test::Unit::TestCase
include CommStub
BAD_TRACK_DATA = '%B378282246310005LONGSONLONGBOB1705101130504392?'
TRACK1_DATA = '%B378282246310005^LONGSON/LONGBOB^1705101130504392?'
TRACK2_DATA = ';4111111111111111=1803101000020000831?'
def setup
@gateway = Author... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/beanstream_interac_test.rb | Ruby | mit | 4,597 | master | 4,104 | require 'test_helper'
class BeanstreamInteracTest < Test::Unit::TestCase
def setup
@gateway = BeanstreamInteracGateway.new(
login: 'login',
password: 'password'
)
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase'
}
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pay_conex_test.rb | Ruby | mit | 4,597 | master | 20,535 | # coding: utf-8
require 'test_helper'
class PayConexTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = PayConexGateway.new(account_id: 'account', api_accesskey: 'key')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/eway_test.rb | Ruby | mit | 4,597 | master | 9,849 | require 'test_helper'
class EwayTest < Test::Unit::TestCase
def setup
@gateway = EwayGateway.new(
login: '87654321'
)
@amount = 100
@credit_card = credit_card('4646464646464646')
@options = {
order_id: '1230123',
email: 'bob@testbob.com',
billing_address: {
addr... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/quantum_test.rb | Ruby | mit | 4,597 | master | 3,563 | require 'test_helper'
class QuantumTest < Test::Unit::TestCase
def setup
@gateway = QuantumGateway.new(
login: '',
password: ''
)
@credit_card = credit_card
@amount = 100
@options = {
billing_address: address,
description: 'Store Purchase'
}
end
def test_success... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/quickpay_test.rb | Ruby | mit | 4,597 | master | 467 | require 'test_helper'
class QuickpayTest < Test::Unit::TestCase
def test_error_without_login_option
assert_raise ArgumentError do
QuickpayGateway.new
end
end
def test_v4to7
gateway = QuickpayGateway.new(login: 50000000, password: 'secret')
assert_instance_of QuickpayV4to7Gateway, gateway
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/trans_first_test.rb | Ruby | mit | 4,597 | master | 19,493 | require 'test_helper'
class TransFirstTest < Test::Unit::TestCase
def setup
@gateway = TransFirstGateway.new(
login: 'LOGIN',
password: 'PASSWORD'
)
@credit_card = credit_card('4242424242424242')
@check = check
@options = {
billing_address: address
}
@amount = 100
end... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/spreedly_core_test.rb | Ruby | mit | 4,597 | master | 57,071 | require 'test_helper'
class SpreedlyCoreTest < Test::Unit::TestCase
def setup
@gateway = SpreedlyCoreGateway.new(login: 'api_login', password: 'api_secret', gateway_token: 'token')
@payment_method_token = 'E3eQGR3E0xiosj7FOJRtIKbF8Ch'
@credit_card = credit_card
@check = check
@amount = 103
@... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/litle_test.rb | Ruby | mit | 4,597 | master | 46,160 | require 'test_helper'
class LitleTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = LitleGateway.new(
login: 'login',
password: 'password',
merchant_id: 'merchant_id'
)
@credit_card = credit_card
@decrypted_apple_pay = ActiveMerchant::Billin... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/be2bill_test.rb | Ruby | mit | 4,597 | master | 1,552 | require 'test_helper'
class Be2billTest < Test::Unit::TestCase
def setup
@gateway = Be2billGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchas... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/authorize_net_cim_test.rb | Ruby | mit | 4,597 | master | 48,160 | require 'test_helper'
class AuthorizeNetCimTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = AuthorizeNetCimGateway.new(
login: 'X',
password: 'Y'
)
@amount = 100
@credit_card = credit_card
@address = address
@customer_profile_id = '3187'
@customer_payment_p... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/redsys_test.rb | Ruby | mit | 4,597 | master | 44,852 | require 'test_helper'
class RedsysTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@credentials = {
login: '091952713',
secret_key: 'qwertyasdf0123456789',
terminal: '1'
}
@gateway = RedsysGateway.new(@credentials)
@headers = {
'Content-Type' => ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/netbanx_test.rb | Ruby | mit | 4,597 | master | 23,277 | require 'test_helper'
class NetbanxTest < Test::Unit::TestCase
def setup
@gateway = NetbanxGateway.new(account_number: '1234567890', api_key: 'foobar')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase',
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/paystation_test.rb | Ruby | mit | 4,597 | master | 15,026 | require 'test_helper'
class PaystationTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = PaystationGateway.new(
paystation_id: 'some_id_number',
gateway_id: 'another_id_number'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
custom... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/paymentez_test.rb | Ruby | mit | 4,597 | master | 27,168 | require 'test_helper'
class PaymentezTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = PaymentezGateway.new(application_code: 'foo', app_key: 'bar')
@credit_card = credit_card
@elo_credit_card = credit_card(
'6362970000457013',
month: 10,
year: 2020,
first_name:... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/merchant_e_solutions_test.rb | Ruby | mit | 4,597 | master | 9,992 | require 'test_helper'
class MerchantESolutionsTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = MerchantESolutionsGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/merchant_ware_test.rb | Ruby | mit | 4,597 | master | 8,071 | require 'test_helper'
class MerchantWareTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = MerchantWareGateway.new(
login: 'login',
password: 'password',
name: 'name'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_a... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/paymill_test.rb | Ruby | mit | 4,597 | master | 27,201 | require 'test_helper'
class PaymillTest < Test::Unit::TestCase
def setup
@gateway = PaymillGateway.new(public_key: 'PUBLIC', private_key: 'PRIVATE')
@credit_card = credit_card
@amount = 100
end
def test_successful_purchase
@gateway.stubs(:raw_ssl_request).returns(successful_store_response, succ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/merchant_ware_version_four_test.rb | Ruby | mit | 4,597 | master | 14,908 | require 'test_helper'
class MerchantWareVersionFourTest < Test::Unit::TestCase
def setup
@gateway = MerchantWareVersionFourGateway.new(
login: 'login',
password: 'password',
name: 'name'
)
@credit_card = credit_card
@authorization = '1236564'
@amount = 100
@options = {
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/d_local_test.rb | Ruby | mit | 4,597 | master | 34,546 | require 'test_helper'
class DLocalTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = DLocalGateway.new(login: 'login', trans_key: 'password', secret_key: 'shhhhh_key')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address
}
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/orbital_test.rb | Ruby | mit | 4,597 | master | 112,043 | # encoding: utf-8
require 'test_helper'
require 'nokogiri'
class OrbitalGatewayTest < Test::Unit::TestCase
include CommStub
def setup
@schema_version = '9.5'
@gateway = ActiveMerchant::Billing::OrbitalGateway.new(
login: 'login',
password: 'password',
merchant_id: 'test12'
)
@cu... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/iveri_test.rb | Ruby | mit | 4,597 | master | 38,943 | require 'test_helper'
class IveriTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = IveriGateway.new(app_id: '123', cert_id: '321')
@credit_card = credit_card('4242424242424242')
@amount = 100
@options = {
order_id: generate_unique_id,
billing_address: address,
de... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/paybox_direct_test.rb | Ruby | mit | 4,597 | master | 3,890 | # encoding: utf-8
require 'test_helper'
class PayboxDirectTest < Test::Unit::TestCase
def setup
@gateway = PayboxDirectGateway.new(
login: 'l',
password: 'p'
)
@credit_card = credit_card('1111222233334444', brand: 'visa')
@amount = 100
@options = {
order_id: '1',
billin... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pay_gate_xml_test.rb | Ruby | mit | 4,597 | master | 3,457 | require 'test_helper'
class PayGateTest < Test::Unit::TestCase
def setup
@gateway = PayGateXmlGateway.new(fixtures(:pay_gate_xml))
@amount = 245000
@credit_card = credit_card('4000000000000002')
@declined_card = credit_card('4000000000000036')
# May need to generate a unique order id as ser... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/datatrans_test.rb | Ruby | mit | 4,597 | master | 18,528 | require 'test_helper'
class DatatransTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = DatatransGateway.new(fixtures(:datatrans))
@credit_card = credit_card
@amount = 100
@options = {
order_id: SecureRandom.random_number(1000000000),
email: 'john.smith@test.com'
}
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/bogus_test.rb | Ruby | mit | 4,597 | master | 9,399 | require 'test_helper'
class BogusTest < Test::Unit::TestCase
CC_SUCCESS_PLACEHOLDER = '4444333322221111'
CC_FAILURE_PLACEHOLDER = '4444333311112222'
CHECK_SUCCESS_PLACEHOLDER = '111111111111'
CHECK_FAILURE_PLACEHOLDER = '222222222222'
def setup
@gateway = BogusGateway.new(
login: 'bogus',
pa... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pay_arc_test.rb | Ruby | mit | 4,597 | master | 28,617 | require 'test_helper'
class PayArcTest < 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_card('41... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/element_test.rb | Ruby | mit | 4,597 | master | 88,916 | require 'test_helper'
class ElementTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = ElementGateway.new(account_id: '', account_token: '', application_id: '', acceptor_id: '', application_name: '', application_version: '')
@credit_card = credit_card
@check = check
@amount = 100
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/secure_pay_tech_test.rb | Ruby | mit | 4,597 | master | 1,152 | require 'test_helper'
class SecurePayTechTest < Test::Unit::TestCase
def setup
@gateway = SecurePayTechGateway.new(
login: 'x',
password: 'y'
)
@amount = 100
@credit_card = credit_card('4987654321098769')
@options = {
billing_address: address
}
end
def test_successful_... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/sum_up_test.rb | Ruby | mit | 4,597 | master | 20,830 | require 'test_helper'
class SumUpTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = SumUpGateway.new(
access_token: 'sup_sk_ABC123',
pay_to_email: 'example@example.com'
)
@credit_card = credit_card
@amount = 100
@options = {
payment_type: 'card',
billing... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/cenpos_test.rb | Ruby | mit | 4,597 | master | 37,815 | require 'test_helper'
class CenposTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = CenposGateway.new(
merchant_id: 'merchant_id',
password: 'password',
user_id: 'user_id'
)
@credit_card = credit_card
@amount = 100
end
def test_successful_purchase
respon... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/netaxept_test.rb | Ruby | mit | 4,597 | master | 17,809 | # encoding: utf-8
require 'test_helper'
class NetaxeptTest < Test::Unit::TestCase
def setup
@gateway = NetaxeptGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1'
}
end
def test_successful_purchase
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pay_junction_v2_test.rb | Ruby | mit | 4,597 | master | 22,783 | require 'test_helper'
class PayJunctionV2Test < Test::Unit::TestCase
def setup
@gateway = PayJunctionV2Gateway.new(api_login: 'api_login', api_password: 'api_password', api_key: 'api_key')
@amount = 99
@credit_card = credit_card('4444333322221111', month: 01, year: 2022, verification_value: 999)
@op... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/merchant_partners_test.rb | Ruby | mit | 4,597 | master | 24,000 | require 'test_helper'
require 'nokogiri'
class MerchantPartnersTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = MerchantPartnersGateway.new(
account_id: 'TEST0',
merchant_pin: '1234567890'
)
@credit_card = credit_card
@amount = 100
@request_root = '/interface_dri... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/first_pay_test.rb | Ruby | mit | 4,597 | master | 16,683 | require 'test_helper'
class FirstPayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = FirstPayGateway.new(
transaction_center_id: 1234,
gateway_id: 'a91c38c3-7d7f-4d29-acc7-927b4dca0dbe'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: Secur... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/bambora_apac_test.rb | Ruby | mit | 4,597 | master | 13,624 | require 'test_helper'
class BamboraApacTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = BamboraApacGateway.new(
username: 'username',
password: 'password'
)
@amount = 100
@credit_card = credit_card
end
def test_successful_purchase
response = stub_comms do
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/creditcall_test.rb | Ruby | mit | 4,597 | master | 13,136 | require 'test_helper'
class CreditcallTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = CreditcallGateway.new(terminal_id: 'login', transaction_key: 'password')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
descrip... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/iridium_test.rb | Ruby | mit | 4,597 | master | 17,322 | require 'test_helper'
class IridiumTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = IridiumGateway.new(login: 'login', password: 'password')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
de... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pay_hub_test.rb | Ruby | mit | 4,597 | master | 10,340 | require 'test_helper'
class PayHubTest < Test::Unit::TestCase
def setup
@gateway = PayHubGateway.new(
orgid: '123456',
username: 'abc123DEF',
password: 'abc123DEF',
tid: '123'
)
@credit_card = credit_card
@amount = 200
@options = {
first_name: 'Garry',
last_nam... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payu_in_test.rb | Ruby | mit | 4,597 | master | 27,852 | require 'test_helper'
class PayuInTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = PayuInGateway.new(
key: 'key',
salt: 'salt'
)
@credit_card = credit_card
@options = {
order_id: '1'
}
end
def assert_parameter(parameter, expected_value, data, options =... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/evo_ca_test.rb | Ruby | mit | 4,597 | master | 8,596 | require 'test_helper'
class EvoCaTest < Test::Unit::TestCase
def setup
@gateway = EvoCaGateway.new(username: 'demo', password: 'password')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase',
tracking_n... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/orbital_avs_result_test.rb | Ruby | mit | 4,597 | master | 1,567 | require 'test_helper'
class OrbitalAVSResultTest < Test::Unit::TestCase
def test_no_match
check_match_results('G', 'N', 'N')
end
def test_only_street_match
check_match_results('F', 'Y', 'N')
end
def test_only_postal_match
check_match_results('A', 'N', 'Y')
end
def test_nil_data
result ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/worldpay_us_test.rb | Ruby | mit | 4,597 | master | 18,811 | require 'test_helper'
class WorldpayUsTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = WorldpayUsGateway.new(
acctid: 'acctid',
subid: 'subid',
merchantpin: 'merchantpin'
)
@credit_card = credit_card
@check = check
@amount = 100
@options = {
order... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/commerce_hub_test.rb | Ruby | mit | 4,597 | master | 46,207 | require 'test_helper'
class CommerceHubTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = CommerceHubGateway.new(api_key: 'login', api_secret: 'password', merchant_id: '12345', terminal_id: '0001')
@amount = 1204
@credit_card = credit_card('4005550000000019', month: '02', year: '2035',... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/securion_pay_test.rb | Ruby | mit | 4,597 | master | 29,951 | require 'test_helper'
class SecurionPayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = SecurionPayGateway.new(
secret_key: 'pr_test_SyMyCpIJosFIAESEsZUd3TgN'
)
@credit_card = credit_card
@declined_card = credit_card('4916018475814056')
@new_credit_card = credit_card('4... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/adyen_test.rb | Ruby | mit | 4,597 | master | 104,312 | require 'test_helper'
class AdyenTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = AdyenGateway.new(
username: 'ws@adyenmerchant.com',
password: 'password',
merchant_account: 'merchantAccount'
)
@bank_account = check()
@credit_card = credit_card(
'41111111... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/net_registry_test.rb | Ruby | mit | 4,597 | master | 10,047 | require 'test_helper'
class NetRegistryTest < Test::Unit::TestCase
def setup
@gateway = NetRegistryGateway.new(
login: 'X',
password: 'Y'
)
@amount = 100
@credit_card = credit_card
@options = {
order_id: '1',
billing_address: address
}
end
def test_filtered_field... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/optimal_payment_test.rb | Ruby | mit | 4,597 | master | 22,328 | require 'test_helper'
require 'nokogiri'
class ActiveMerchant::Billing::OptimalPaymentGateway
public :cc_auth_request
end
class OptimalPaymentTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = OptimalPaymentGateway.new(
account_number: '12345678',
store_id: 'login',
passwor... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payment_express_test.rb | Ruby | mit | 4,597 | master | 33,364 | require 'test_helper'
class PaymentExpressTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = PaymentExpressGateway.new(
login: 'LOGIN',
password: 'PASSWORD'
)
@visa = credit_card
@solo = credit_card('6334900000000005', brand: 'maestro')
@options = {
order_id... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/eway_managed_test.rb | Ruby | mit | 4,597 | master | 17,167 | require 'test_helper'
class EwayManagedTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = EwayManagedGateway.new(username: 'username', login: 'login', password: 'password')
@valid_card = '4444333322221111'
@valid_customer_id = '9876543211000'
@credit_card = credit_card(@valid_c... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/blue_pay_test.rb | Ruby | mit | 4,597 | master | 15,858 | require 'test_helper'
RSP = {
approved_auth: 'AUTH_CODE=XCADZ&PAYMENT_ACCOUNT_MASK=xxxxxxxxxxxx4242&CARD_TYPE=VISA&TRANS_TYPE=AUTH&REBID=&STATUS=1&AVS=_&TRANS_ID=100134203758&CVV2=_&MESSAGE=Approved%20Auth',
approved_capture: 'AUTH_CODE=CHTHX&PAYMENT_ACCOUNT_MASK=xxxxxxxxxxxx4242&CARD_TYPE=VISA&TRANS_TYPE=CAPTURE&... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/efsnet_test.rb | Ruby | mit | 4,597 | master | 4,472 | require 'test_helper'
class EfsnetTest < Test::Unit::TestCase
def setup
@gateway = EfsnetGateway.new(
login: 'LOGIN',
password: 'PASSWORD'
)
@credit_card = credit_card('4242424242424242')
@amount = 100
@options = { order_id: 1, billing_address: address }
end
def test_successful_... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/itransact_test.rb | Ruby | mit | 4,597 | master | 4,082 | require 'test_helper'
class ItransactTest < Test::Unit::TestCase
def setup
@gateway = ItransactGateway.new(
login: 'login',
password: 'password',
gateway_id: '09999'
)
@credit_card = credit_card
@check = check
@amount = 1014 # = $10.14
@options = {
email: 'name@domai... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/paysafe_test.rb | Ruby | mit | 4,597 | master | 26,611 | require 'test_helper'
class PaysafeTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = PaysafeGateway.new(username: 'username', password: 'password', account_id: 'account_id')
@credit_card = credit_card
@mastercard = credit_card('5454545454545454', brand: 'master')
@amount = 100
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/data_cash_test.rb | Ruby | mit | 4,597 | master | 13,613 | require 'test_helper'
class DataCashTest < Test::Unit::TestCase
def setup
@gateway = DataCashGateway.new(
login: 'LOGIN',
password: 'PASSWORD'
)
@credit_card = credit_card('4242424242424242')
@amount = 100
@address = {
name: 'Mark McBride',
address1: 'Flat 12/3',
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/plugnpay_test.rb | Ruby | mit | 4,597 | master | 5,386 | require 'test_helper'
class PlugnpayTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = PlugnpayGateway.new(
login: 'X',
password: 'Y'
)
@credit_card = credit_card
@options = {
billing_address: address,
description: 'Store purchase'
}
@amount = 100... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/mundipagg_test.rb | Ruby | mit | 4,597 | master | 50,526 | require 'test_helper'
class MundipaggTest < Test::Unit::TestCase
include CommStub
def setup
@credit_card = credit_card
@alelo_card = credit_card(
'5067700000000028',
{
month: 10,
year: 2032,
first_name: 'John',
last_name: 'Smith',
verification_value: '73... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/cams_test.rb | Ruby | mit | 4,597 | master | 7,869 | require 'test_helper'
class CamsTest < Test::Unit::TestCase
def setup
@gateway = CamsGateway.new(
username: 'testintegrationc',
password: 'password9'
)
@credit_card = credit_card('4111111111111111', month: 5, year: 10)
@bad_credit_card = credit_card('4242424245555555', month: 5, year: 10... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/fortis_test.rb | Ruby | mit | 4,597 | master | 16,575 | require 'test_helper'
class FortisTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = FortisGateway.new(user_id: 'abc', user_api_key: 'def', developer_id: 'ghi', location_id: 'jkl')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: add... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/braintree_blue_test.rb | Ruby | mit | 4,597 | master | 110,669 | require 'test_helper'
class BraintreeBlueTest < Test::Unit::TestCase
def setup
@old_verbose, $VERBOSE = $VERBOSE, false
@gateway = BraintreeBlueGateway.new(
merchant_id: 'test',
public_key: 'test',
private_key: 'test',
test: true
)
@internal_gateway = @gateway.instance_varia... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/worldpay_test.rb | Ruby | mit | 4,597 | master | 131,758 | require 'test_helper'
class WorldpayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = WorldpayGateway.new(
login: 'testlogin',
password: 'testpassword'
)
@amount = 100
@credit_card = credit_card('4242424242424242')
@token = '|99411111780163871111|shopper|59424549c2... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/cardprocess_test.rb | Ruby | mit | 4,597 | master | 17,041 | require 'test_helper'
class CardprocessTest < Test::Unit::TestCase
def setup
@gateway = CardprocessGateway.new(user_id: 'login', password: 'password', entity_id: '123')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Stor... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/safe_charge_test.rb | Ruby | mit | 4,597 | master | 39,340 | require 'test_helper'
class SafeChargeTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = SafeChargeGateway.new(client_login_id: 'login', client_password: 'password')
@credit_card = credit_card
@three_ds_enrolled_card = credit_card('4012 0010 3749 0014')
@amount = 100
@network_to... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/cyber_source_test.rb | Ruby | mit | 4,597 | master | 169,765 | require 'test_helper'
require 'nokogiri'
class CyberSourceTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = CyberSourceGateway.new(login: 'l', password: 'p')
key = OpenSSL::PKey::RSA.new(1024)
@gateway_certificate = CyberSourceGateway.new(login: 'l', public_key:... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/usa_epay_advanced_test.rb | Ruby | mit | 4,597 | master | 65,061 | # encoding: utf-8
require 'test_helper'
require 'logger'
class UsaEpayAdvancedTest < Test::Unit::TestCase
include CommStub
def setup
# Optional Logger Setup
# UsaEpayAdvancedGateway.logger = Logger.new('/tmp/usa_epay.log')
# UsaEpayAdvancedGateway.logger.level = Logger::DEBUG
# Optional Wiredump... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/merchant_one_test.rb | Ruby | mit | 4,597 | master | 2,204 | require 'test_helper'
class MerchantOneTest < Test::Unit::TestCase
def setup
@gateway = MerchantOneGateway.new(fixtures(:merchant_one))
@credit_card = credit_card
@amount = 1000
@options = {
order_id: '1',
description: 'Store Purchase',
billing_address: {
name: 'Jim Smith',
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/vantiv_express_test.rb | Ruby | mit | 4,597 | master | 96,252 | require 'test_helper'
class VantivExpressTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = VantivExpressGateway.new(fixtures(:element))
@credit_card = credit_card
@check = check
@amount = 100
@options = {
billing_address: address,
description: 'Store Purchase'
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/braintree_token_nonce_test.rb | Ruby | mit | 4,597 | master | 7,542 | require 'test_helper'
class BraintreeTokenNonceTest < Test::Unit::TestCase
def setup
@gateway = BraintreeBlueGateway.new(
merchant_id: 'test',
public_key: 'test',
private_key: 'test',
test: true
)
@braintree_backend = @gateway.instance_eval { @braintree_gateway }
@options = ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/banwire_test.rb | Ruby | mit | 4,597 | master | 4,181 | require 'test_helper'
class BanwireTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = BanwireGateway.new(
login: 'desarrollo',
currency: 'MXN'
)
@credit_card = credit_card(
'5204164299999999',
month: 11,
year: 2012,
verification_value: '999'
)
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/quickpay_v4to7_test.rb | Ruby | mit | 4,597 | master | 9,756 | require 'test_helper'
class QuickpayV4to7Test < Test::Unit::TestCase
include CommStub
def merchant_id
'80000000000'
end
def setup
@gateway = QuickpayGateway.new(
login: merchant_id,
password: 'PASSWORD',
version: 7
)
@credit_card = credit_card('4242424242424242')
@amoun... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/monei_test.rb | Ruby | mit | 4,597 | master | 19,756 | require 'test_helper'
class MoneiTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = MoneiGateway.new(
fixtures(:monei)
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase'
}
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/barclaycard_smartpay_test.rb | Ruby | mit | 4,597 | master | 31,977 | require 'test_helper'
class BarclaycardSmartpayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = BarclaycardSmartpayGateway.new(
company: 'company',
merchant: 'merchant',
password: 'password'
)
@credit_card = credit_card
@three_ds_enrolled_card = credit_card('421... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/in_context_paypal_express_test.rb | Ruby | mit | 4,597 | master | 1,335 | require 'test_helper'
class InContextPaypalExpressTest < Test::Unit::TestCase
TEST_REDIRECT_URL = 'https://www.sandbox.paypal.com/checkoutnow?token=1234567890'
LIVE_REDIRECT_URL = 'https://www.paypal.com/checkoutnow?token=1234567890'
TEST_REDIRECT_URL_WITHOUT_REVIEW = 'https://www.sandbox.paypal.com/checkoutnow?... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/usa_epay_transaction_test.rb | Ruby | mit | 4,597 | master | 38,477 | require 'test_helper'
class UsaEpayTransactionTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = UsaEpayTransactionGateway.new(login: 'LOGIN')
@credit_card = credit_card('4242424242424242')
@check = check
@options = {
billing_address: address,
shipping_address: address
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/netpay_test.rb | Ruby | mit | 4,597 | master | 5,414 | require 'test_helper'
class NetpayTest < Test::Unit::TestCase
def setup
@gateway = NetpayGateway.new(
store_id: '12345',
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 1000
@order_id = 'C3836048-631F-112B-001E-7C08C0406975'
@options = {
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/firstdata_e4_v27_test.rb | Ruby | mit | 4,597 | master | 48,336 | require 'test_helper'
require 'nokogiri'
require 'yaml'
class FirstdataE4V27Test < Test::Unit::TestCase
include CommStub
def setup
@gateway = FirstdataE4V27Gateway.new(
login: 'A00427-01',
password: 'testus',
key_id: '12345',
hmac_key: 'hexkey'
)
@credit_card = credit_card
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/instapay_test.rb | Ruby | mit | 4,597 | master | 4,745 | require 'test_helper'
class InstapayTest < Test::Unit::TestCase
def setup
@gateway = InstapayGateway.new(login: 'TEST0')
@credit_card = credit_card
@amount = 100
end
def test_successful_purchase
@gateway.expects(:ssl_post).returns(successful_purchase_response)
assert response = @gateway.pur... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/openpay_test.rb | Ruby | mit | 4,597 | master | 18,752 | require 'test_helper'
class OpenpayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = OpenpayGateway.new(
key: 'key',
merchant_id: 'merchant_id'
)
@credit_card = credit_card('4111111111111111')
@amount = 100
@refund_amount = 50
@options = {
order_id: '123... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/trans_first_transaction_express_test.rb | Ruby | mit | 4,597 | master | 32,041 | require 'test_helper'
class TransFirstTransactionExpressTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = TransFirstTransactionExpressGateway.new(
gateway_id: 'gateway_id',
reg_key: 'reg_key'
)
@credit_card = credit_card
@check = check
@amount = 100
@declined_a... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pin_test.rb | Ruby | mit | 4,597 | master | 46,990 | require 'test_helper'
class PinTest < Test::Unit::TestCase
def setup
@gateway = PinGateway.new(api_key: 'I_THISISNOTAREALAPIKEY')
@credit_card = credit_card
@google_pay_card = NetworkTokenizationCreditCard.new(
number: '5200828282828210',
month: '12',
year: DateTime.now.year + 1,
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/hdfc_test.rb | Ruby | mit | 4,597 | master | 6,906 | require 'test_helper'
class HdfcTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = HdfcGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 100
end
def test_successful_purchase
response = stub_comms do
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/opp_test.rb | Ruby | mit | 4,597 | master | 11,463 | require 'test_helper'
class OppTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = OppGateway.new(fixtures(:opp))
@amount = 100
@valid_card = credit_card('4200000000000000', month: 05, year: Date.today.year + 2, verification_value: '123')
@invalid_card = credit_card('444444444444444... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/psl_card_test.rb | Ruby | mit | 4,597 | master | 2,061 | require 'test_helper'
class PslCardTest < Test::Unit::TestCase
def setup
@gateway = PslCardGateway.new(
login: 'LOGIN',
password: 'PASSWORD'
)
@credit_card = credit_card
@options = {
billing_address: address,
description: 'Store purchase'
}
@amount = 100
end
def ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/federated_canada_test.rb | Ruby | mit | 4,597 | master | 4,819 | require 'test_helper'
class FederatedCanadaTest < Test::Unit::TestCase
def setup
@gateway = FederatedCanadaGateway.new(
login: 'demo',
password: 'password'
)
@credit_card = credit_card('4111111111111111')
@credit_card.verification_value = '999'
@amount = 100
@options = {
o... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/exact_test.rb | Ruby | mit | 4,597 | master | 14,622 | require 'test_helper'
class ExactTest < Test::Unit::TestCase
def setup
@gateway = ExactGateway.new(login: 'A00427-01',
password: 'testus')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'St... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/digitzs_test.rb | Ruby | mit | 4,597 | master | 16,310 | require 'test_helper'
class DigitzsTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = DigitzsGateway.new(api_key: 'api_key', app_key: 'app_key')
@credit_card = credit_card
@amount = 100
@options = {
merchant_id: 'spreedly-susanswidg-32268973-2091076-148408385',
order_id... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/first_pay_json_test.rb | Ruby | mit | 4,597 | master | 26,189 | require 'test_helper'
class FirstPayJsonTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = FirstPayJsonGateway.new(
processor_id: 1234,
merchant_key: 'a91c38c3-7d7f-4d29-acc7-927b4dca0dbe'
)
@credit_card = credit_card
@google_pay = network_tokenization_credit_card(
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payflow_uk_test.rb | Ruby | mit | 4,597 | master | 697 | require 'test_helper'
class PayflowUkTest < Test::Unit::TestCase
def setup
@gateway = PayflowUkGateway.new(
login: 'LOGIN',
password: 'PASSWORD'
)
end
def test_default_currency
assert_equal 'GBP', PayflowUkGateway.default_currency
end
def test_express_instance
assert_instance_of... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pagarme_test.rb | Ruby | mit | 4,597 | master | 34,770 | require 'test_helper'
class PagarmeTest < Test::Unit::TestCase
def setup
@gateway = PagarmeGateway.new(api_key: 'ak_test_e1QGU2gL98MDCHZxHLJ9sofPUFJ7tH')
@credit_card = credit_card('4242424242424242', {
first_name: 'Richard',
last_name: 'Deschamps'
})
@amount = 1000
@options = {
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/flex_charge_test.rb | Ruby | mit | 4,597 | master | 33,341 | require 'test_helper'
class FlexChargeTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = FlexChargeGateway.new(
app_key: 'SOMECREDENTIAL',
app_secret: 'SOMECREDENTIAL',
site_id: 'SOMECREDENTIAL',
mid: 'SOMECREDENTIAL'
)
@credit_card = credit_card
@amount = 10... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/trust_commerce_test.rb | Ruby | mit | 4,597 | master | 9,016 | require 'test_helper'
class TrustCommerceTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = TrustCommerceGateway.new(
login: 'TestMerchant',
password: 'password',
aggregator_id: 'abc123'
)
# Force SSL post
@gateway.stubs(:tclink?).returns(false)
@amount = 100
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/micropayment_test.rb | Ruby | mit | 4,597 | master | 9,143 | require 'test_helper'
class MicropaymentTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = MicropaymentGateway.new(
access_key: 'key'
)
@credit_card = credit_card
@amount = 100
end
def test_successful_purchase
response = stub_comms do
@gateway.purchase(@amount,... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/balanced_test.rb | Ruby | mit | 4,597 | master | 28,694 | require 'test_helper'
class BalancedTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = BalancedGateway.new(
login: 'e1c5ad38d1c711e1b36c026ba7e239a9'
)
@amount = 100
@credit_card = credit_card('4111111111111111')
@options = {
email: 'john.buyer@example.org',
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/allied_wallet_test.rb | Ruby | mit | 4,597 | master | 17,324 | require 'test_helper'
class AlliedWalletTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = AlliedWalletGateway.new(
site_id: '1234',
merchant_id: '1234',
token: 'token'
)
@credit_card = credit_card
@amount = 100
end
def test_successful_purchase
response =... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/cecabank_test.rb | Ruby | mit | 4,597 | master | 5,762 | require 'test_helper'
class CecabankTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = CecabankXmlGateway.new(
merchant_id: '12345678',
acquirer_bin: '12345678',
terminal_id: '00000003',
cypher_key: 'enc_key'
)
@credit_card = credit_card
@amount = 100
@... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/ixopay_test.rb | Ruby | mit | 4,597 | master | 30,301 | require 'test_helper'
class IxopayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = IxopayGateway.new(
username: 'username',
password: 'password',
secret: 'secret',
api_key: 'api_key'
)
@declined_card = credit_card('4000300011112220')
@credit_card = cred... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/checkout_v2_test.rb | Ruby | mit | 4,597 | master | 76,117 | require 'test_helper'
class CheckoutV2Test < Test::Unit::TestCase
include CommStub
def setup
@gateway = CheckoutV2Gateway.new(
secret_key: '1111111111111'
)
@gateway_oauth = CheckoutV2Gateway.new({ client_id: 'abcd', client_secret: '1234', access_token: '12345678' })
@gateway_api = CheckoutV... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.