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/ipp_test.rb | Ruby | mit | 4,597 | master | 12,599 | require 'test_helper'
class IppTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = IppGateway.new(
username: 'username',
password: 'password'
)
@amount = 100
@credit_card = credit_card
end
def test_successful_purchase
response = stub_comms do
@gateway.purc... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payflow_express_uk_test.rb | Ruby | mit | 4,597 | master | 5,780 | require 'test_helper'
class PayflowExpressUkTest < Test::Unit::TestCase
def setup
@gateway = PayflowExpressUkGateway.new(
login: 'LOGIN',
password: 'PASSWORD'
)
end
def test_supported_countries
assert_equal ['GB'], PayflowExpressUkGateway.supported_countries
end
def test_get_express... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/airwallex_test.rb | Ruby | mit | 4,597 | master | 47,101 | require 'test_helper'
class AirwallexTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = AirwallexGateway.new(client_id: 'login', client_api_key: 'password', access_token: '12345678')
@credit_card = credit_card
@declined_card = credit_card('2223 0000 1018 1375')
@amount = 100
@de... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/mit_test.rb | Ruby | mit | 4,597 | master | 15,100 | require 'test_helper'
class MitTest < Test::Unit::TestCase
def setup
@credentials = {
commerce_id: '147',
user: 'IVCA33721',
api_key: 'IGECPJ0QOJJCEHUI',
key_session: 'CB0DC4887DD1D5CEA205E66EE934E430'
}
@gateway = MitGateway.new(@credentials)
@credit_card = ActiveMerchant::B... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/ct_payment_test.rb | Ruby | mit | 4,597 | master | 27,874 | require 'test_helper'
class CtPaymentTest < Test::Unit::TestCase
def setup
@gateway = CtPaymentGateway.new(api_key: 'api_key', company_number: 'company number', merchant_number: 'merchant_number')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: addre... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/deepstack_test.rb | Ruby | mit | 4,597 | master | 22,272 | require 'test_helper'
class DeepstackTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = DeepstackGateway.new(fixtures(:deepstack))
@credit_card = credit_card
@amount = 100
@credit_card = ActiveMerchant::Billing::CreditCard.new(
number: '4111111111111111',
verification... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payflow_express_test.rb | Ruby | mit | 4,597 | master | 9,097 | require 'test_helper'
class PayflowExpressTest < Test::Unit::TestCase
TEST_REDIRECT_URL = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=1234567890'
TEST_REDIRECT_URL_MOBILE = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile&token=1234567890'
LIVE_RED... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/swipe_checkout_test.rb | Ruby | mit | 4,597 | master | 4,566 | require 'test_helper'
class SwipeCheckoutTest < Test::Unit::TestCase
def setup
@gateway = SwipeCheckoutGateway.new(
login: '0000000000000',
api_key: '0000000000000000000000000000000000000000000000000000000000000000',
region: 'NZ'
)
@credit_card = credit_card
@amount = 100
@opt... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/ezic_test.rb | Ruby | mit | 4,597 | master | 6,433 | require 'test_helper'
class EzicTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = EzicGateway.new(account_id: 'TheID')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase'
}
end
def ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/telr_test.rb | Ruby | mit | 4,597 | master | 11,055 | require 'test_helper'
class TelrTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = TelrGateway.new(
merchant_id: 'login',
api_key: 'password'
)
@credit_card = credit_card
@amount = 100
end
def test_successful_purchase
response = stub_comms do
@gateway.pur... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/clearhaus_test.rb | Ruby | mit | 4,597 | master | 19,561 | require 'test_helper'
class ClearhausTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = ClearhausGateway.new(api_key: 'test_key')
@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/bridge_pay_test.rb | Ruby | mit | 4,597 | master | 12,382 | require 'test_helper'
class BridgePayTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = BridgePayGateway.new(
user_name: 'login',
password: 'password'
)
@credit_card = credit_card
@check = check
@amount = 100
@options = {}
end
def tes... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/nuvei_test.rb | Ruby | mit | 4,597 | master | 44,105 | require 'test_helper'
class NuveiTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = NuveiGateway.new(
merchant_id: 'SOMECREDENTIAL',
merchant_site_id: 'SOMECREDENTIAL',
secret_key: 'SOMECREDENTIAL',
session_token: 'fdda0126-674f-4f8c-ad24-31ac846654ab',
token_expir... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/secure_net_test.rb | Ruby | mit | 4,597 | master | 34,758 | require 'test_helper'
class SecureNetTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = SecureNetGateway.new(
login: 'X',
password: 'Y'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: '... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/trexle_test.rb | Ruby | mit | 4,597 | master | 14,289 | require 'test_helper'
class TrexleTest < Test::Unit::TestCase
def setup
@gateway = TrexleGateway.new(api_key: 'THIS_IS_NOT_A_REAL_API_KEY')
@credit_card = credit_card
@amount = 100
@options = {
email: 'john@trexle.com',
billing_address: address,
description: 'Store Purchase',
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/blue_snap_test.rb | Ruby | mit | 4,597 | master | 58,584 | # coding: utf-8
require 'test_helper'
class BlueSnapCurrencyDocMock
attr_accessor :received_amount
def currency(currency); end
def amount(amount)
@received_amount = amount
end
end
class BlueSnapTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = BlueSnapGateway.new(api_username: ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/viaklix_test.rb | Ruby | mit | 4,597 | master | 3,147 | require 'test_helper'
class ViaklixTest < Test::Unit::TestCase
def setup
@gateway = ViaklixGateway.new(
login: 'LOGIN',
password: 'PIN'
)
@credit_card = credit_card
@options = {
order_id: '37',
email: 'paul@domain.com',
description: 'Test Transaction',
billing_add... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/citrus_pay_test.rb | Ruby | mit | 4,597 | master | 17,896 | require 'test_helper'
class CitrusPayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = CitrusPayGateway.new(
userid: 'userid',
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/maxipago_test.rb | Ruby | mit | 4,597 | master | 15,743 | require 'test_helper'
class MaxipagoTest < Test::Unit::TestCase
def setup
@gateway = MaxipagoGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purch... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/worldpay_online_payments_test.rb | Ruby | mit | 4,597 | master | 11,900 | require 'test_helper'
class WorldpayOnlinePaymentsTest < Test::Unit::TestCase
def setup
@gateway = WorldpayOnlinePaymentsGateway.new(fixtures(:worldpay_online_payments))
@amount = 1000
@credit_card = credit_card('4444333322221111')
@declined_card = credit_card('4242424242424242')
@options = {
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/komoju_test.rb | Ruby | mit | 4,597 | master | 3,958 | require 'test_helper'
class KomojuTest < Test::Unit::TestCase
def setup
@gateway = KomojuGateway.new(login: 'login')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
description: 'Store Purchase',
tax: '10',
ip: '192.168.0.1',
email: 'valid@email.co... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payway_test.rb | Ruby | mit | 4,597 | master | 8,690 | require 'test_helper'
class PaywayTest < Test::Unit::TestCase
def setup
@gateway = PaywayGateway.new(
username: '12341234',
password: 'abcdabcd',
pem: certificate
)
@amount = 1000
@credit_card = ActiveMerchant::Billing::CreditCard.new(
number: '4564710000000004',
month... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/plexo_test.rb | Ruby | mit | 4,597 | master | 43,968 | require 'test_helper'
class PlexoTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = PlexoGateway.new(client_id: 'abcd', api_key: 'efgh', merchant_id: 'test090')
@amount = 100
@credit_card = credit_card('5555555555554444', month: '12', year: '2024', verification_value: '111', first_name... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/jetpay_test.rb | Ruby | mit | 4,597 | master | 7,036 | require 'test_helper'
class JetpayTest < Test::Unit::TestCase
include ActiveMerchant::Billing
def setup
Base.mode = :test
@gateway = JetpayGateway.new(login: 'login')
@credit_card = credit_card
@amount = 100
@options = {
billing_address: address(country: 'US'),
shipping_address:... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/ncr_secure_pay_test.rb | Ruby | mit | 4,597 | master | 16,242 | require 'test_helper'
class NcrSecurePayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = NcrSecurePayGateway.new(username: 'login', password: 'password')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/simetrik_test.rb | Ruby | mit | 4,597 | master | 35,539 | require 'test_helper'
class SimetrikTest < Test::Unit::TestCase
def setup
@token_acquirer = 'ea890fd1-49f3-4a34-a150-192bf9a59205'
@datetime = Time.new.strftime('%Y-%m-%dT%H:%M:%S.%L%:z')
@gateway = SimetrikGateway.new(
client_id: 'client_id',
client_secret: 'client_secret_key',
audienc... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/bpoint_test.rb | Ruby | mit | 4,597 | master | 19,954 | require 'test_helper'
class BpointTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = BpointGateway.new(
username: '',
password: '',
merchant_number: ''
)
@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/qbms_test.rb | Ruby | mit | 4,597 | master | 12,895 | require 'test_helper'
class QbmsTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = QbmsGateway.new(
login: 'test',
ticket: 'abc123',
pem: 'PEM'
)
@amount = 100
@card = credit_card('4111111111111111')
end
def test_successful_authorization
@gateway.expec... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pago_facil_test.rb | Ruby | mit | 4,597 | master | 7,883 | require 'test_helper'
class PagoFacilTest < Test::Unit::TestCase
def setup
@gateway = PagoFacilGateway.new(fixtures(:pago_facil))
@credit_card = ActiveMerchant::Billing::CreditCard.new(
number: '4111111111111111',
verification_value: '123',
first_name: 'Juan',
last_name: 'Reyes Garza... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/reach_test.rb | Ruby | mit | 4,597 | master | 13,639 | require 'test_helper'
class ReachTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = ReachGateway.new(fixtures(:reach))
@credit_card = credit_card
@amount = 100
@options = {
email: 'johndoe@reach.com',
order_id: '123',
currency: 'USD',
billing_address: {
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/cashnet_test.rb | Ruby | mit | 4,597 | master | 17,427 | require 'test_helper'
class Cashnet < Test::Unit::TestCase
include CommStub
def setup
@gateway = CashnetGateway.new(
merchant: 'X',
operator: 'X',
password: 'test123',
merchant_gateway_name: 'X'
)
@amount = 100
@credit_card = credit_card
end
def test_successful_purchas... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/visanet_peru_test.rb | Ruby | mit | 4,597 | master | 23,424 | require 'test_helper'
require 'timecop'
class VisanetPeruTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = VisanetPeruGateway.new(fixtures(:visanet_peru))
@amount = 100
@credit_card = credit_card('4500340090000016', verification_value: '377')
@declined_card = credit_card('41111111... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/decidir_test.rb | Ruby | mit | 4,597 | master | 41,142 | require 'test_helper'
class DecidirTest < Test::Unit::TestCase
include CommStub
include ActiveMerchant::Billing::CreditCardFormatting
def setup
@gateway_for_purchase = DecidirGateway.new(api_key: 'api_key')
@gateway_for_auth = DecidirGateway.new(api_key: 'api_key', preauth_mode: true)
@credit_card =... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/cecabank_rest_json_test.rb | Ruby | mit | 4,597 | master | 22,985 | require 'test_helper'
class CecabankJsonTest < Test::Unit::TestCase
include CommStub
XID = 'some_xid'
def setup
@gateway = CecabankJsonGateway.new(
merchant_id: '12345678',
acquirer_bin: '12345678',
terminal_id: '00000003',
cypher_key: 'enc_key',
encryption_key: '0011223344556... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/bank_frick_test.rb | Ruby | mit | 4,597 | master | 12,995 | require 'test_helper'
class BankFrickTest < Test::Unit::TestCase
def setup
@gateway = BankFrickGateway.new(
sender: 'sender-uuid',
channel: 'channel-uuid',
userid: 'user-uuid',
userpwd: 'password'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/ogone_test.rb | Ruby | mit | 4,597 | master | 30,916 | require 'test_helper'
class OgoneTest < Test::Unit::TestCase
def setup
@credentials = { login: 'pspid',
user: 'username',
password: 'password',
signature: 'mynicesig',
signature_encryptor: 'sha512',
timeout: ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/garanti_test.rb | Ruby | mit | 4,597 | master | 4,825 | # coding: utf-8
require 'test_helper'
class GarantiTest < Test::Unit::TestCase
def setup
@original_kcode = nil
Base.mode = :test
@gateway = GarantiGateway.new(login: 'a', password: 'b', terminal_id: 'c', merchant_id: 'd')
@credit_card = credit_card('4242424242424242')
@amount = 1000 # 1000 cen... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/firstdata_e4_test.rb | Ruby | mit | 4,597 | master | 50,077 | require 'test_helper'
require 'nokogiri'
require 'yaml'
class FirstdataE4Test < Test::Unit::TestCase
include CommStub
def setup
@gateway = FirstdataE4Gateway.new(
login: 'A00427-01',
password: 'testus'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pac_net_raven_test.rb | Ruby | mit | 4,597 | master | 18,601 | require 'test_helper'
class PacNetRavenGatewayTest < Test::Unit::TestCase
def setup
@gateway = PacNetRavenGateway.new(
user: 'user',
secret: 'secret',
prn: 123456
)
@credit_card = credit_card
@amount = 100
@options = {
billing_address: address
}
end
def test_suc... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pro_pay_test.rb | Ruby | mit | 4,597 | master | 12,168 | require 'test_helper'
class ProPayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = ProPayGateway.new(cert_str: 'certStr')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase'
}
end
d... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/mercado_pago_test.rb | Ruby | mit | 4,597 | master | 64,971 | require 'test_helper'
class MercadoPagoTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = MercadoPagoGateway.new(access_token: 'access_token')
@credit_card = credit_card
@elo_credit_card = credit_card(
'5067268650517446',
month: 10,
year: 2020,
first_name: 'John ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/skip_jack_test.rb | Ruby | mit | 4,597 | master | 12,359 | require 'test_helper'
class SkipJackTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = SkipJackGateway.new(login: 'X', password: 'Y')
@credit_card = credit_card('4242424242424242')
@billing_address = {
address1: '123 Any St.',
address2: 'Apt. B',
city: 'Anytown',
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/cardknox_test.rb | Ruby | mit | 4,597 | master | 11,979 | require 'test_helper'
class CardknoxTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = CardknoxGateway.new(api_key: 'api_key')
@credit_card = credit_card('4242424242424242')
@options = {
billing_address: address,
shipping_address: address
}
@amount = 100
end
def... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/quickpay_v10_test.rb | Ruby | mit | 4,597 | master | 10,223 | require 'test_helper'
class QuickpayV10Test < Test::Unit::TestCase
include CommStub
def setup
@gateway = QuickpayV10Gateway.new(api_key: 'APIKEY')
@credit_card = credit_card('4242424242424242')
@amount = 100
@options = { order_id: '1', billing_address: address, customer_ip: '1.1.1.1' }
end
de... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/moka_test.rb | Ruby | mit | 4,597 | master | 12,482 | require 'test_helper'
class MokaTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = MokaGateway.new(dealer_code: '123', username: 'username', password: 'password')
@credit_card = credit_card
@amount = 100
@options = {
description: 'Store Purchase'
}
end
def test_succe... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/flo2cash_test.rb | Ruby | mit | 4,597 | master | 6,626 | require 'test_helper'
class Flo2cashTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = Flo2cashGateway.new(
username: 'username',
password: 'password',
account_id: 'account_id'
)
@credit_card = credit_card
@amount = 100
end
def test_suc... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/inspire_test.rb | Ruby | mit | 4,597 | master | 4,790 | require 'test_helper'
class InspireTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = InspireGateway.new(
login: 'LOGIN',
password: 'PASSWORD'
)
@credit_card = credit_card('4242424242424242')
@amount = 100
@options = { billing_address: address }
end
def test_suc... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/culqi_test.rb | Ruby | mit | 4,597 | master | 15,386 | require 'test_helper'
class CulqiTest < Test::Unit::TestCase
def setup
@gateway = CulqiGateway.new(merchant_id: 'merchant', terminal_id: 'terminal', secret_key: 'password')
@amount = 1000
@credit_card = credit_card('4111111111111111')
@options = {
order_id: generate_unique_id,
billing_a... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/fat_zebra_test.rb | Ruby | mit | 4,597 | master | 18,054 | require 'test_helper'
class FatZebraTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = FatZebraGateway.new(
username: 'TEST',
token: 'TEST'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: rand(10000),
billing_address: address,
de... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/migs_test.rb | Ruby | mit | 4,597 | master | 9,669 | require 'test_helper'
class MigsTest < Test::Unit::TestCase
def setup
@gateway = MigsGateway.new(
login: 'login',
password: 'password',
secure_hash: '76AF3392002D202A60D0AB5F9D81653C',
advanced_login: 'advlogin',
advanced_password: 'advpass'
)
@credit_card = credit_card
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/commercegate_test.rb | Ruby | mit | 4,597 | master | 4,610 | require 'test_helper'
class CommercegateTest < Test::Unit::TestCase
def setup
@gateway = CommercegateGateway.new(
login: 'usrID',
password: 'usrPass',
site_id: '123',
offer_id: '321'
)
@credit_card = credit_card
@amount = 1000
@options = {
address:
}
end
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/elavon_test.rb | Ruby | mit | 4,597 | master | 58,688 | require 'test_helper'
class ElavonTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = ElavonGateway.new(
login: 'login',
user: 'user',
password: 'password'
)
@multi_currency_gateway = ElavonGateway.new(
login: 'login',
user: 'user',
password: 'passwor... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/moneris_test.rb | Ruby | mit | 4,597 | master | 43,058 | require 'test_helper'
class MonerisTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = MonerisGateway.new(
login: 'store3',
password: 'yesguy'
)
@amount = 100
@credit_card = credit_card('4242424242424242')
# https://developer.moneris.com/lived... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payex_test.rb | Ruby | mit | 4,597 | master | 18,687 | require 'test_helper'
class PayexTest < Test::Unit::TestCase
def setup
@gateway = PayexGateway.new(
account: 'account',
encryption_key: 'encryption_key'
)
@credit_card = credit_card
@amount = 1000
@options = {
order_id: '1234'
}
end
def test_successful_purchase
@g... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/sage_test.rb | Ruby | mit | 4,597 | master | 25,961 | require 'test_helper'
class SageGatewayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = SageGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@check = check
@amount = 100
@options = {
order_id: '1',
billing_address: ad... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payeezy_test.rb | Ruby | mit | 4,597 | master | 59,679 | require 'test_helper'
require 'yaml'
class PayeezyGateway < Test::Unit::TestCase
include CommStub
def setup
@gateway = PayeezyGateway.new(fixtures(:payeezy))
@credit_card = credit_card
@bad_credit_card = credit_card('4111111111111113')
@check = check
@amount = 100
@options = {
billi... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/sallie_mae_test.rb | Ruby | mit | 4,597 | master | 1,142 | require 'test_helper'
class SallieMaeTest < Test::Unit::TestCase
def setup
@gateway = SallieMaeGateway.new(
login: 'FAKEACCOUNT'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase'
}
end
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/global_transport_test.rb | Ruby | mit | 4,597 | master | 21,967 | require 'test_helper'
class GlobalTransportTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = GlobalTransportGateway.new(global_user_name: 'login', global_password: 'password', term_type: 'ABC')
@options = {
order_id: '1',
billing_address: address
}
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/vpos_test.rb | Ruby | mit | 4,597 | master | 15,614 | require 'test_helper'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class VposGateway
def one_time_public_key
OpenSSL::PKey::RSA.new(2048)
end
end
end
end
class VposTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = VposGateway.new(public_key: 'some_k... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/vanco_test.rb | Ruby | mit | 4,597 | master | 15,472 | require 'test_helper'
class VancoTest < Test::Unit::TestCase
include CommStub
SECONDS_PER_DAY = 3600 * 24
def setup
@gateway = VancoGateway.new(user_id: 'login', password: 'password', client_id: 'client_id')
@credit_card = credit_card
@check = check
@amount = 100
@options = {
order_id... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/realex_test.rb | Ruby | mit | 4,597 | master | 26,364 | require 'test_helper'
class RealexTest < Test::Unit::TestCase
include CommStub
class ActiveMerchant::Billing::RealexGateway
# For the purposes of testing, lets redefine some protected methods as public.
public :build_purchase_or_authorization_request
public :build_refund_request
public :build_void... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/decidir_plus_test.rb | Ruby | mit | 4,597 | master | 19,189 | require 'test_helper'
class DecidirPlusTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = DecidirPlusGateway.new(public_key: 'public_key', private_key: 'private_key')
@credit_card = credit_card
@payment_reference = '2bf7bffb-1257-4b45-8d42-42d090409b8a|448459'
@amount = 100
@op... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/paypal_digital_goods_test.rb | Ruby | mit | 4,597 | master | 5,176 | require 'test_helper'
class PaypalDigitalGoodsTest < Test::Unit::TestCase
TEST_REDIRECT_URL = 'https://www.sandbox.paypal.com/incontext?cmd=_express-checkout&token=1234567890&useraction=commit'
MOBILE_TEST_REDIRECT_URL = 'https://www.sandbox.paypal.com/incontext?cmd=_express-checkout-mobile&token=12345678... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/metrics_global_test.rb | Ruby | mit | 4,597 | master | 9,026 | require 'test_helper'
require 'active_support/core_ext/kernel/singleton_class'
class MetricsGlobalTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = ActiveMerchant::Billing::MetricsGlobalGateway.new(
login: 'X',
password: 'Y'
)
@amount = 100
@credit_card = credit_card('4... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/finansbank_test.rb | Ruby | mit | 4,597 | master | 9,659 | # encoding: utf-8
require 'test_helper'
class FinansbankTest < Test::Unit::TestCase
def setup
@original_kcode = nil
@gateway = FinansbankGateway.new(
login: 'login',
password: 'password',
client_id: 'client_id'
)
@credit_card = credit_card
@amount = 100
@options = {
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pay_junction_test.rb | Ruby | mit | 4,597 | master | 8,116 | require 'test/unit'
require 'test_helper'
class PayJunctionTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = PayJunctionGateway.new(
login: 'pj-ql-01',
password: 'pj-ql-01p'
)
@credit_card = credit_card
@options = {
billing_address: address... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payway_dot_com_test.rb | Ruby | mit | 4,597 | master | 56,100 | require 'test_helper'
class PaywayDotComTest < Test::Unit::TestCase
def setup
@gateway = PaywayDotComGateway.new(
login: 'sprerestwsdev',
password: 'sprerestwsdev1!',
company_id: '3',
source_id: '67'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/secure_pay_test.rb | Ruby | mit | 4,597 | master | 2,876 | require 'test_helper'
class SecurePayTest < Test::Unit::TestCase
def setup
@gateway = SecurePayGateway.new(
login: 'X',
password: 'Y'
)
@credit_card = credit_card
@options = {
order_id: generate_unique_id,
description: 'Store purchase',
billing_address: address
}
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/paypal_test.rb | Ruby | mit | 4,597 | master | 98,840 | require 'test_helper'
class PaypalTest < Test::Unit::TestCase
include CommStub
def setup
PaypalGateway.pem_file = nil
@amount = 100
@gateway = PaypalGateway.new(
login: 'cody',
password: 'test',
pem: 'PEM'
)
@credit_card = credit_card('4242424242424242')
@options = { bi... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/checkout_test.rb | Ruby | mit | 4,597 | master | 9,150 | require 'test_helper'
class CheckoutTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = ActiveMerchant::Billing::CheckoutGateway.new(
merchant_id: 'SBMTEST', # Merchant Code
password: 'Password1!' # Processing Password
)
@options = {
order_id: generate_unique_id
}
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/braintree_test.rb | Ruby | mit | 4,597 | master | 1,077 | require 'test_helper'
class BraintreeTest < Test::Unit::TestCase
def test_new_with_login_password_creates_braintree_orange
gateway = BraintreeGateway.new(
login: 'LOGIN',
password: 'PASSWORD'
)
assert_instance_of BraintreeOrangeGateway, gateway
end
def test_new_with_merchant_id_creates_b... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/tns_test.rb | Ruby | mit | 4,597 | master | 17,885 | require 'test_helper'
class TnsTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = TnsGateway.new(
userid: 'userid',
password: 'password'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: '... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/psigate_test.rb | Ruby | mit | 4,597 | master | 8,352 | require 'test_helper'
class PsigateTest < Test::Unit::TestCase
def setup
@gateway = PsigateGateway.new(
login: 'teststore',
password: 'psigate1234'
)
@amount = 100
@credit_card = credit_card('4111111111111111')
@options = { order_id: '1', billing_address: address }
end
def test_... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/world_net_test.rb | Ruby | mit | 4,597 | master | 11,683 | require 'test_helper'
class WorldNetTest < Test::Unit::TestCase
def setup
@gateway = WorldNetGateway.new(terminal_id: '6001', secret: 'SOMECREDENTIAL')
@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/omise_test.rb | Ruby | mit | 4,597 | master | 27,472 | require 'test_helper'
class OmiseTest < Test::Unit::TestCase
def setup
@gateway = OmiseGateway.new(
public_key: 'pkey_test_abc',
secret_key: 'skey_test_123'
)
@credit_card = credit_card
@amount = 3333
@options = {
order_id: '1',
billing_address: address,
descriptio... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/conekta_test.rb | Ruby | mit | 4,597 | master | 13,439 | require 'test_helper'
class ConektaTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = ConektaGateway.new(key: 'key_eYvWV7gSDkNYXsmr')
@amount = 300
@credit_card = ActiveMerchant::Billing::CreditCard.new(
number: '4242424242424242',
verification_value: '183',
month: '... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/priority_test.rb | Ruby | mit | 4,597 | master | 52,622 | require 'test_helper'
class PriorityTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = PriorityGateway.new(api_key: 'sandbox_key', secret: 'secret', merchant_id: 'merchant_id')
@amount = 4
@credit_card = credit_card
@invalid_credit_card = credit_card('4111')
@replay_id = rand(100... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/money_movers_test.rb | Ruby | mit | 4,597 | master | 4,456 | require 'test_helper'
class MoneyMoversTest < Test::Unit::TestCase
def setup
@gateway = MoneyMoversGateway.new(
login: 'demo',
password: 'password'
)
@credit_card = credit_card('4111111111111111')
@credit_card.verification_value = '999'
@amount = 100
@options = {
order_id:... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/wirecard_test.rb | Ruby | mit | 4,597 | master | 29,950 | # encoding: UTF-8
require 'test_helper'
class WirecardTest < Test::Unit::TestCase
include CommStub
TEST_AUTHORIZATION_GUWID = 'C822580121385121429927'
TEST_PURCHASE_GUWID = 'C865402121385575982910'
TEST_CAPTURE_GUWID = 'C833707121385268439116'
def setup
@gateway = WirecardGateway.new(login: '', passwo... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/netbilling_test.rb | Ruby | mit | 4,597 | master | 5,406 | require 'test_helper'
class NetbillingTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = NetbillingGateway.new(login: 'login')
@credit_card = credit_card('4242424242424242')
@amount = 100
@options = { billing_address: address }
end
def test_successful_request
@gateway.expe... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/paypal_express_test.rb | Ruby | mit | 4,597 | master | 86,133 | require 'test_helper'
require 'nokogiri'
class PaypalExpressTest < Test::Unit::TestCase
TEST_REDIRECT_URL = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=1234567890'
TEST_REDIRECT_URL_MOBILE = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile&token=1234... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/paypal/paypal_common_api_test.rb | Ruby | mit | 4,597 | master | 7,868 | require 'test_helper'
require 'active_merchant/billing/gateway'
require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/active_merchant/billing/gateways/paypal/paypal_common_api')
require 'nokogiri'
class CommonPaypalGateway < ActiveMerchant::Billing::Gateway
include ActiveMerchant::Billing::PaypalCommon... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_loan_payment_pro_test.rb | Ruby | mit | 4,597 | master | 5,770 | require 'test_helper'
class RemoteLoanPaymentProTest < Test::Unit::TestCase
def setup
@gateway = LoanPaymentProGateway.new(fixtures(:loan_payment_pro))
@amount = 500
@credit_card = credit_card('4000100011112224', month: 9, year: 2025, verification_value: '123')
@declined_card = credit_card('40001000... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_commercegate_test.rb | Ruby | mit | 4,597 | master | 2,857 | require 'test_helper'
class RemoteCommercegateTest < Test::Unit::TestCase
def setup
@gateway = CommercegateGateway.new(fixtures(:commercegate))
@amount = 1000
@options = {
address:
}
@credit_card = credit_card(fixtures(:commercegate)[:card_number])
@expired_credit_card = credit_card(... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_payflow_uk_test.rb | Ruby | mit | 4,597 | master | 4,496 | require 'test_helper'
class RemotePayflowUkTest < Test::Unit::TestCase
def setup
Base.mode = :test
# The default partner is PayPalUk
@gateway = PayflowUkGateway.new(fixtures(:payflow_uk))
@creditcard = CreditCard.new(
number: '5105105105105100',
month: 11,
year: 2009,
first_... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_jetpay_v2_certification_test.rb | Ruby | mit | 4,597 | master | 14,175 | require 'test_helper'
class RemoteJetpayV2CertificationTest < Test::Unit::TestCase
def setup
@gateway = JetpayV2Gateway.new(fixtures(:jetpay_v2))
@unique_id = ''
@options = {
device: 'spreedly',
application: 'spreedly',
developer_id: 'GenkID',
billing_address: address(address1: ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_quickpay_v10_test.rb | Ruby | mit | 4,597 | master | 9,282 | require 'test_helper'
class RemoteQuickPayV10Test < Test::Unit::TestCase
def setup
@gateway = QuickpayV10Gateway.new(fixtures(:quickpay_v10_api_key))
@amount = 100
@options = {
order_id: generate_unique_id[0...10],
billing_address: address(country: 'DNK')
}
@valid_card = credit_ca... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_payflow_express_test.rb | Ruby | mit | 4,597 | master | 7,032 | require 'test_helper'
class RemotePayflowExpressTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = PayflowExpressGateway.new(fixtures(:payflow))
@options = {
billing_address: {
name: 'Cody Fauser',
address1: '1234 Shady Brook Lane',
city: 'Ottaw... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_merchant_warrior_test.rb | Ruby | mit | 4,597 | master | 7,359 | require 'test_helper'
class RemoteMerchantWarriorTest < Test::Unit::TestCase
def setup
@gateway = MerchantWarriorGateway.new(fixtures(:merchant_warrior).merge(test: true))
@success_amount = 100
@failure_amount = 205
@credit_card = credit_card(
'4564710000000004',
month: '2',
year:... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_adyen_test.rb | Ruby | mit | 4,597 | master | 65,558 | require 'test_helper'
class RemoteAdyenTest < Test::Unit::TestCase
def setup
@gateway = AdyenGateway.new(fixtures(:adyen))
@amount = 100
@bank_account = check(account_number: '123456789', routing_number: '121000358')
@adyen_bank_account = check(account_number: '9876543210', routing_number: '021000... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_decidir_plus_test.rb | Ruby | mit | 4,597 | master | 11,689 | require 'test_helper'
require 'securerandom'
class RemoteDecidirPlusTest < Test::Unit::TestCase
def setup
@gateway_purchase = DecidirPlusGateway.new(fixtures(:decidir_plus))
@gateway_auth = DecidirPlusGateway.new(fixtures(:decidir_plus_preauth))
@amount = 100
@credit_card = credit_card('448459015992... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_fat_zebra_test.rb | Ruby | mit | 4,597 | master | 9,180 | require 'test_helper'
class RemoteFatZebraTest < Test::Unit::TestCase
def setup
@gateway = FatZebraGateway.new(fixtures(:fat_zebra))
@amount = 100
@credit_card = credit_card('5123456789012346')
@declined_card = credit_card('4557012345678902')
@options = {
order_id: generate_unique_id,
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_flo2cash_test.rb | Ruby | mit | 4,597 | master | 2,979 | require 'test_helper'
class RemoteFlo2cashTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = Flo2cashGateway.new(fixtures(:flo2cash))
@amount = 100
@credit_card = credit_card('5123456789012346', brand: :master, month: 5, year: 2017, verification_value: 111)
@declined_card = cred... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_stripe_emv_test.rb | Ruby | mit | 4,597 | master | 8,513 | require 'test_helper'
class RemoteStripeEmvTest < Test::Unit::TestCase
CHARGE_ID_REGEX = /ch_[a-zA-Z\d]{24}/
def setup
@gateway = StripeGateway.new(fixtures(:stripe))
@amount = 100
@emv_credit_cards = {
uk: ActiveMerchant::Billing::CreditCard.new(icc_data: '5A08476173900101011957114761739001010... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_trans_first_test.rb | Ruby | mit | 4,597 | master | 4,226 | require 'test_helper'
class RemoteTransFirstTest < Test::Unit::TestCase
def setup
@gateway = TransFirstGateway.new(fixtures(:trans_first))
@credit_card = credit_card('4485896261017708', verification_value: 999)
@check = check
@amount = 1201
@options = {
order_id: generate_unique_id,
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_qbms_test.rb | Ruby | mit | 4,597 | master | 3,283 | require 'test_helper'
class QbmsTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway_options = fixtures(:qbms)
@gateway = QbmsGateway.new(@gateway_options)
@amount = 100
@card = credit_card('4111111111111111')
@options = {
billing_address: address
}
end
def t... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_visanet_peru_test.rb | Ruby | mit | 4,597 | master | 5,750 | require 'test_helper'
class RemoteVisanetPeruTest < Test::Unit::TestCase
def setup
@gateway = VisanetPeruGateway.new(fixtures(:visanet_peru))
@amount = 100
@credit_card = credit_card('4500340090000016', verification_value: '377')
@declined_card = credit_card('4111111111111111')
@options = {
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_cardknox_test.rb | Ruby | mit | 4,597 | master | 9,408 | require 'test_helper'
class RemoteCardknoxTest < Test::Unit::TestCase
def setup
@gateway = CardknoxGateway.new(fixtures(:cardknox))
@amount = rand(100..499)
@declined_amount = 500
@credit_card = credit_card('4000100011112224')
@declined_card = credit_card('4000300011112220', verification_value: ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_vpos_test.rb | Ruby | mit | 4,597 | master | 4,746 | require 'test_helper'
class RemoteVposTest < Test::Unit::TestCase
def setup
@gateway = VposGateway.new(fixtures(:vpos))
# some test fails due duplicated transactions
@amount = rand(100..100000)
@credit_card = credit_card('5418630110000014', month: 8, year: 2026, verification_value: '277')
@decli... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/remote/gateways/remote_paypal_test.rb | Ruby | mit | 4,597 | master | 11,325 | require 'test_helper'
class PaypalTest < Test::Unit::TestCase
def setup
@gateway = PaypalGateway.new(fixtures(:paypal_signature))
@credit_card = credit_card('4381258770269608') # Use a generated CC from the paypal Sandbox
@declined_card = credit_card('234234234234')
@params = {
order_id: gene... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.