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 | lib/active_merchant/billing/gateways/quickpay/quickpay_v4to7.rb | Ruby | mit | 4,597 | master | 7,223 | require 'rexml/document'
require 'digest/md5'
require 'active_merchant/billing/gateways/quickpay/quickpay_common'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class QuickpayV4to7Gateway < Gateway
include QuickpayCommon
self.live_url = self.test_url = 'https://secure.quickpay.dk/api'
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb | Ruby | mit | 4,597 | master | 9,490 | require 'json'
require 'active_merchant/billing/gateways/quickpay/quickpay_common'
module ActiveMerchant
module Billing
class QuickpayV10Gateway < Gateway
include QuickpayCommon
API_VERSION = 10
self.live_url = self.test_url = 'https://api.quickpay.net'
def initialize(options = {})
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/active_merchant/billing/gateways/quickpay/quickpay_common.rb | Ruby | mit | 4,597 | master | 7,215 | module QuickpayCommon
MD5_CHECK_FIELDS = {
3 => {
authorize: %w(protocol msgtype merchant ordernumber amount
currency autocapture cardnumber expirationdate
cvd cardtypelock testmode),
capture: %w(protocol msgtype merchant amount finalize transaction),
ca... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/active_merchant/billing/gateways/first_pay/first_pay_json.rb | Ruby | mit | 4,597 | master | 5,717 | require 'active_merchant/billing/gateways/first_pay/first_pay_common'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class FirstPayJsonGateway < Gateway
include FirstPayCommon
ACTIONS = {
purchase: 'Sale',
authorize: 'Auth',
capture: 'Settle',
refund: 'Refun... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/active_merchant/billing/gateways/first_pay/first_pay_common.rb | Ruby | mit | 4,597 | master | 375 | module FirstPayCommon
def self.included(base)
base.supported_countries = ['US']
base.default_currency = 'USD'
base.money_format = :dollars
base.supported_cardtypes = %i[visa master american_express discover]
base.homepage_url = 'http://1stpaygateway.net/'
base.display_name = '1stPayGateway.Ne... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/active_merchant/billing/gateways/first_pay/first_pay_xml.rb | Ruby | mit | 4,597 | master | 5,920 | require 'active_merchant/billing/gateways/first_pay/first_pay_common'
require 'nokogiri'
module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class FirstPayXmlGateway < Gateway
include FirstPayCommon
self.live_url = 'https://secure.goemerchant.com/secure/gateway/xmlgateway.aspx'
# Creates... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/active_merchant/billing/gateways/migs/migs_codes.rb | Ruby | mit | 4,597 | master | 5,401 | module ActiveMerchant
module Billing
module MigsCodes
TXN_RESPONSE_CODES = {
'?' => 'Response Unknown',
'0' => 'Transaction Successful',
'1' => 'Transaction Declined - Bank Error',
'2' => 'Bank Declined Transaction',
'3' => 'Transaction Declined - No Reply from Bank',... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/active_merchant/billing/gateways/cyber_source/cyber_source_common.rb | Ruby | mit | 4,597 | master | 890 | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
module CyberSourceCommon
def check_billing_field_value(default, submitted)
if submitted.nil?
nil
elsif submitted.blank?
default
else
submitted
end
end
def address_names(address... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb | Ruby | mit | 4,597 | master | 1,864 | module ActiveMerchant # :nodoc:
module Billing # :nodoc:
class OrbitalSoftDescriptors < Model
PHONE_FORMAT_1 = /\A\d{3}-\d{3}-\d{4}\z/
PHONE_FORMAT_2 = /\A\d{3}-\w{7}\z/
# ==== Tampa PNS Soft Descriptors
# The support for Soft Descriptors via the PNS Host is only for customers processing ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/active_merchant/billing/gateways/orbital/orbital_codes.rb | Ruby | mit | 4,597 | master | 11,438 | module ActiveMerchant
module Billing
module OrbitalCodes
CURRENCY_CODES = {
'DZD' => '012', # Algerian Dinar
'ARS' => '032', # Argentine Peso
'AMD' => '051', # Armenian Dram
'AWG' => '533', # Aruban Guilder
'AUD' => '036', # Australian Dollar
'AZN' =... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/support/gateway_support.rb | Ruby | mit | 4,597 | master | 1,768 | require 'rubygems'
require 'active_support'
require 'active_merchant'
class GatewaySupport # :nodoc:
ACTIONS = %i[purchase authorize capture void credit recurring]
include ActiveMerchant::Billing
attr_reader :gateways
def initialize
Dir[File.expand_path(File.dirname(__FILE__) + '/../active_merchant/bill... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/support/ssl_version.rb | Ruby | mit | 4,597 | master | 2,121 | require 'active_merchant'
require 'support/gateway_support'
class SSLVersion
attr_accessor :success, :failed, :missing, :errored
def initialize
@gateways = GatewaySupport.new.gateways
@success, @failed, @missing, @errored = [], [], [], []
end
def test_gateways(min_version = :TLS1_1)
raise 'Requir... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/support/ssl_verify.rb | Ruby | mit | 4,597 | master | 2,024 | require 'active_merchant'
require 'support/gateway_support'
class SSLVerify
def initialize
@gateways = GatewaySupport.new.gateways
end
def test_gateways
success, failed, missing, errored, disabled = [], [], [], [], []
puts "Verifying #{@gateways.count} SSL certificates\n\n"
@gateways.each do |... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | lib/support/outbound_hosts.rb | Ruby | mit | 4,597 | master | 558 | require 'uri'
require 'set'
class OutboundHosts
def self.list
hosts = Set.new
invalid_lines = Set.new
Dir['lib/**/*.rb'].each do |file|
content = File.read(file)
content.each_line do |line|
next if line =~ /homepage_url/
if line =~ /("|')(https:\/\/[^'"]*)("|')/
b... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/test_helper.rb | Ruby | mit | 4,597 | master | 10,186 | $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'bundler/setup'
require 'test/unit'
require 'mocha/test_unit'
require 'yaml'
require 'json'
require 'active_merchant'
require 'comm_stub'
require 'active_support/core_ext/integer/time'
require 'active_support/core_ext/numeric/time'
require 'active_s... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/comm_stub.rb | Ruby | mit | 4,597 | master | 1,486 | module CommStub
class Stub
def initialize(gateway, method_to_stub, action)
@gateway = gateway
@action = action
@complete = false
@method_to_stub = method_to_stub
@check = nil
end
def check_request(skip_response: false, &block)
if skip_response
@complete = true
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/support/mercury_helper.rb | Ruby | mit | 4,597 | master | 1,942 | module MercuryHelper
module BatchClosing
def close_batch
xml = Builder::XmlMarkup.new
xml.tag! 'TStream' do
xml.tag! 'Admin' do
xml.tag! 'MerchantID', @options[:login]
xml.tag! 'TranCode', 'BatchSummary'
end
end
xml = xml.target!
response = commit(... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/country_code_test.rb | Ruby | mit | 4,597 | master | 849 | require 'test_helper'
class CountryCodeTest < Test::Unit::TestCase
def test_alpha2_country_code
code = ActiveMerchant::CountryCode.new('CA')
assert_equal 'CA', code.value
assert_equal 'CA', code.to_s
assert_equal :alpha2, code.format
end
def test_lower_alpha2_country_code
code = ActiveMercha... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/base_test.rb | Ruby | mit | 4,597 | master | 1,991 | require 'test_helper'
class BaseTest < Test::Unit::TestCase
def setup
ActiveMerchant::Billing::Base.mode = :test
end
def teardown
ActiveMerchant::Billing::Base.mode = :test
end
def test_should_return_a_new_gateway_specified_by_symbol_name
assert_equal BogusGateway, Base.gateway(:bogus)
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/credit_card_test.rb | Ruby | mit | 4,597 | master | 12,987 | require 'test_helper'
class CreditCardTest < Test::Unit::TestCase
def setup
CreditCard.require_verification_value = false
@visa = credit_card('4779139500118580', brand: 'visa')
@maestro = credit_card('676700000000000000', brand: 'maestro', verification_value: '')
@bp_plus = credit_card('70501 5010216... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/connection_test.rb | Ruby | mit | 4,597 | master | 8,066 | require 'test_helper'
class ConnectionTest < Test::Unit::TestCase
def setup
@ok = stub(code: 200, message: 'OK', body: 'success')
@endpoint = 'https://example.com/tx.php'
@connection = ActiveMerchant::Connection.new(@endpoint)
@connection.logger = stub(info: nil, debug: nil, error: nil)
end
d... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/rails_compatibility_test.rb | Ruby | mit | 4,597 | master | 411 | require 'test_helper'
class RailsCompatibilityTest < Test::Unit::TestCase
def test_should_be_able_to_access_errors_indifferently
cc = credit_card('4779139500118580', first_name: '')
silence_deprecation_warnings do
assert !cc.valid?
assert cc.errors.on(:first_name)
assert cc.errors.on('firs... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/credit_card_methods_test.rb | Ruby | mit | 4,597 | master | 23,999 | require 'test_helper'
class CreditCardMethodsTest < Test::Unit::TestCase
include ActiveMerchant::Billing::CreditCardMethods
class CreditCard
include ActiveMerchant::Billing::CreditCardMethods
end
def maestro_card_numbers
%w[
5612590000000000 5817500000000000 5818000000000000
6390000000000... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/country_test.rb | Ruby | mit | 4,597 | master | 3,412 | require 'test_helper'
class CountryTest < Test::Unit::TestCase
def test_country_from_hash
country = ActiveMerchant::Country.new(name: 'Canada', alpha2: 'CA', alpha3: 'CAN', numeric: '124')
assert_equal 'CA', country.code(:alpha2).value
assert_equal 'CAN', country.code(:alpha3).value
assert_equal '124... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/multi_response_test.rb | Ruby | mit | 4,597 | master | 8,506 | require 'test_helper'
class MultiResponseTest < Test::Unit::TestCase
def test_initial_state
r = MultiResponse.new
assert r.success?
assert_nil r.params
assert !r.test?
end
def test_processes_sub_requests
r1 = Response.new(true, '1', {})
r2 = Response.new(true, '2', {})
m = MultiRespo... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/fixtures_test.rb | Ruby | mit | 4,597 | master | 247 | require 'test_helper'
class FixturesTest < Test::Unit::TestCase
def test_sort
keys = YAML.safe_load(File.read(ActiveMerchant::Fixtures::DEFAULT_CREDENTIALS), aliases: true).keys
assert_equal(
keys,
keys.sort
)
end
end |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/versionable_test.rb | Ruby | mit | 4,597 | master | 3,698 | require 'test_helper'
class VersionableTest < Test::Unit::TestCase
class ParentClass
include ActiveMerchant::Versionable
end
class DummyClass < ParentClass
end
class FakeClass < ParentClass
end
class DummyChildClass < DummyClass
end
def setup
@dummy_instance = DummyClass.new
@fake_ins... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/check_test.rb | Ruby | mit | 4,597 | master | 3,962 | require 'test_helper'
class CheckTest < Test::Unit::TestCase
VALID_ABA = '111000025'
INVALID_ABA = '999999999'
MALFORMED_ABA = 'I like fish'
VALID_ELECTRONIC_CBA = '000194611'
VALID_MICR_CBA = '94611001'
INVALID_NINE_DIGIT_CBA = '012345678'
INVALID_SEVEN_DIGIT_ROUTING_NUMBER = '0123456'
ACCOUNT_... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/apple_pay_payment_token_test.rb | Ruby | mit | 4,597 | master | 245 | require 'test_helper'
class ApplePayPaymentTokenTest < Test::Unit::TestCase
def setup
@token = ActiveMerchant::Billing::ApplePayPaymentToken.new(payment_data: {})
end
def test_type
assert_equal 'apple_pay', @token.type
end
end |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/response_test.rb | Ruby | mit | 4,597 | master | 1,192 | require 'test_helper'
class ResponseTest < Test::Unit::TestCase
def test_response_success
assert Response.new(true, 'message', param: 'value').success?
assert !Response.new(false, 'message', param: 'value').success?
end
def test_response_without_avs
response = Response.new(true, 'message', param: 'v... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/network_tokenization_credit_card_test.rb | Ruby | mit | 4,597 | master | 3,195 | require 'test_helper'
class NetworkTokenizationCreditCardTest < Test::Unit::TestCase
def setup
@tokenized_card = ActiveMerchant::Billing::NetworkTokenizationCreditCard.new(
number: '4242424242424242', brand: 'visa',
month: default_expiration_date.month, year: default_expiration_date.year,
payme... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/posts_data_test.rb | Ruby | mit | 4,597 | master | 2,896 | require 'test_helper'
class PostsDataTests < Test::Unit::TestCase
def setup
@url = 'http://example.com'
@gateway = SimpleTestGateway.new
@ok = stub(body: '', code: '200', message: 'OK')
@error = stub(code: 500, message: 'Internal Server Error', body: 'failure')
end
def teardown
SimpleTestGat... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/three_d_secure_eci_mapper_test.rb | Ruby | mit | 4,597 | master | 1,641 | require 'test_helper'
class ThreeDSecureEciMapperTest < Test::Unit::TestCase
ThreeDSecureEciMapper = ActiveMerchant::Billing::ThreeDSecureEciMapper
[
{ eci: '00', brands: %i[master maestro], expected_eci_mapping: ThreeDSecureEciMapper::NON_THREE_D_SECURE_TRANSACTION },
{ eci: '01', brands: %i[master maest... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/cvv_result_test.rb | Ruby | mit | 4,597 | master | 777 | require 'test_helper'
class CVVResultTest < Test::Unit::TestCase
def test_nil_data
result = CVVResult.new(nil)
assert_nil result.code
assert_nil result.message
end
def test_blank_data
result = CVVResult.new('')
assert_nil result.code
assert_nil result.message
end
def test_successful... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/avs_result_test.rb | Ruby | mit | 4,597 | master | 1,518 | require 'test_helper'
class AVSResultTest < Test::Unit::TestCase
def test_nil
AVSResult.new(nil)
end
def test_no_match
result = AVSResult.new(code: 'N')
assert_equal 'N', result.code
assert_equal 'N', result.street_match
assert_equal 'N', result.postal_match
assert_equal AVSResult.messag... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/credit_card_formatting_test.rb | Ruby | mit | 4,597 | master | 896 | require 'test_helper'
class CreditCardFormattingTest < Test::Unit::TestCase
include ActiveMerchant::Billing::CreditCardFormatting
def test_should_format_number_by_rule
assert_equal 2005, format(2005, :steven_colbert)
assert_equal '2022', format(22, :four_digits_year)
assert_equal '2022', format(2022,... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/network_connection_retries_test.rb | Ruby | mit | 4,597 | master | 5,203 | require 'test_helper'
class NetworkConnectionRetriesTest < Test::Unit::TestCase
class MyNewError < StandardError
end
include ActiveMerchant::NetworkConnectionRetries
def setup
@logger = stubs(:logger)
@requester = stubs(:requester)
@ok = stub(code: 200, message: 'OK', body: 'success')
end
de... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/expiry_date_test.rb | Ruby | mit | 4,597 | master | 904 | require 'test_helper'
class ExpiryDateTest < Test::Unit::TestCase
def test_should_be_expired
last_month = 2.months.ago
date = CreditCard::ExpiryDate.new(last_month.month, last_month.year)
assert date.expired?
end
def test_today_should_not_be_expired
today = Time.now.utc
date = CreditCard::Ex... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/post_data_test.rb | Ruby | mit | 4,597 | master | 1,193 | require 'test_helper'
class MyPost < ActiveMerchant::PostData
self.required_fields = %i[ccnumber ccexp firstname lastname username password order_id key time]
end
class PostDataTest < Test::Unit::TestCase
def teardown
ActiveMerchant::PostData.required_fields = []
end
def test_element_assignment
name ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/usa_epay_test.rb | Ruby | mit | 4,597 | master | 678 | require 'test_helper'
require 'logger'
class UsaEpayTest < Test::Unit::TestCase
def test_transaction_gateway_created
gateway = UsaEpayGateway.new(
login: 'X'
)
assert_kind_of UsaEpayTransactionGateway, gateway
end
def test_advanced_gateway_created_with_software_id
gateway = UsaEpayGateway.... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/hps_test.rb | Ruby | mit | 4,597 | master | 65,665 | require 'test_helper'
class HpsTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = HpsGateway.new({ secret_api_key: '12' })
@credit_card = credit_card
@amount = 100
@check = check(account_number: '1357902468', routing_number: '122000030', number: '1234', account_type: 'SAVINGS')
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/nmi_test.rb | Ruby | mit | 4,597 | master | 41,316 | require 'test_helper'
class NmiTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = NmiGateway.new(fixtures(:nmi))
@gateway_secure = NmiGateway.new(fixtures(:nmi_secure))
@amount = 100
@credit_card = credit_card
@check = check
@merchant_defined_fields = { merchant_defined_fi... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/s5_test.rb | Ruby | mit | 4,597 | master | 20,495 | require 'test_helper'
class S5Test < Test::Unit::TestCase
include CommStub
def setup
@gateway = S5Gateway.new(
sender: 'sender',
channel: 'channel',
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/epay_test.rb | Ruby | mit | 4,597 | master | 10,419 | require 'test_helper'
class EpayTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = EpayGateway.new(
login: '10100111001',
password: 'http://example.com'
)
@credit_card = credit_card
@options = { three_d_secure: { eci: '7', xid: '123', cavv: '456', version: '2', ds_tr... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/ipg_test.rb | Ruby | mit | 4,597 | master | 45,490 | require 'test_helper'
class IpgTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = IpgGateway.new(fixtures(:ipg))
@gateway_ma = IpgGateway.new(fixtures(:ipg_ma))
@credit_card = credit_card
@amount = 100
@options = {
currency: 'ARS'
}
end
def test_successful_purcha... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/card_stream_test.rb | Ruby | mit | 4,597 | master | 33,243 | require 'test_helper'
class CardStreamTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = CardStreamGateway.new(
login: 'login',
shared_secret: 'secret'
)
@visacreditcard = credit_card(
'4929421234600821',
month: '12',
year: '2014',
verification_value... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/quickbooks_test.rb | Ruby | mit | 4,597 | master | 32,419 | require 'test_helper'
class QuickBooksTest < Test::Unit::TestCase
include CommStub
def setup
@oauth_1_gateway = QuickbooksGateway.new(
consumer_key: 'consumer_key',
consumer_secret: 'consumer_secret',
access_token: 'access_token',
token_secret: 'token_secret',
realm: 'realm_ID'
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/global_collect_test.rb | Ruby | mit | 4,597 | master | 56,744 | require 'test_helper'
class GlobalCollectTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = GlobalCollectGateway.new(merchant_id: '1234',
api_key_id: '39u4193urng12',
secret_api_key: '109H/288H*50Y18W4/0G8571F245KA=... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/iats_payments_test.rb | Ruby | mit | 4,597 | master | 28,237 | require 'test_helper'
class IatsPaymentsTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = IatsPaymentsGateway.new(
agent_code: 'login',
password: 'password',
region: 'uk'
)
@amount = 100
@credit_card = credit_card
@check = check
@address = {
name: ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/kushki_test.rb | Ruby | mit | 4,597 | master | 19,557 | require 'test_helper'
class KushkiTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = KushkiGateway.new(public_merchant_id: '_', private_merchant_id: '_')
@amount = 100
@credit_card = credit_card
end
def test_successful_purchase_with_version_endpoint_header
# Set up expected ver... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/authorize_net_arb_test.rb | Ruby | mit | 4,597 | master | 4,394 | require 'test_helper'
class AuthorizeNetArbTest < Test::Unit::TestCase
include CommStub
def setup
ActiveMerchant.expects(:deprecated).with('ARB functionality in ActiveMerchant is deprecated and will be removed in a future version. Please contact the ActiveMerchant maintainers if you have an interest in taking... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/webpay_test.rb | Ruby | mit | 4,597 | master | 12,078 | require 'test_helper'
class WebpayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = WebpayGateway.new(login: 'sk_test_login')
@credit_card = credit_card()
@amount = 40000
@refund_amount = 20000
@options = {
billing_address: address(),
description: 'Test Purchase'
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/stripe_test.rb | Ruby | mit | 4,597 | master | 130,333 | require 'test_helper'
class StripeTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = StripeGateway.new(login: 'sk_test_login')
@credit_card = credit_card()
@threeds_card = credit_card('4000000000003063')
@non_3ds_card = credit_card('378282246310005')
@amount = 400
@refund_a... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pay_trace_test.rb | Ruby | mit | 4,597 | master | 25,127 | require 'test_helper'
class PayTraceTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = PayTraceGateway.new(username: 'username', password: 'password', integrator_id: 'uniqueintegrator', access_token: SecureRandom.hex(16))
@credit_card = credit_card
@echeck = check(account_number: '12345... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/jetpay_v2_test.rb | Ruby | mit | 4,597 | master | 9,703 | require 'test_helper'
class JetpayV2Test < Test::Unit::TestCase
include CommStub
def setup
@gateway = JetpayV2Gateway.new(login: 'login')
@credit_card = credit_card
@amount = 100
@options = {
device: 'spreedly',
application: 'spreedly',
developer_id: 'GenkID',
billing_add... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/redsys_rest_test.rb | Ruby | mit | 4,597 | master | 21,660 | require 'test_helper'
class RedsysRestTest < Test::Unit::TestCase
include CommStub
def setup
@credentials = {
login: '091952713',
secret_key: 'sq7HjrUOBfKmC576ILgskD5srU870gJ7',
terminal: '201'
}
@gateway = RedsysRestGateway.new(@credentials)
@credit_card = credit_card
@amoun... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/borgun_test.rb | Ruby | mit | 4,597 | master | 30,098 | require 'test_helper'
class BorgunTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = BorgunGateway.new(
processor: '118',
merchant_id: '118',
username: 'dude',
password: 'secret'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/pay_secure_test.rb | Ruby | mit | 4,597 | master | 1,930 | require 'test_helper'
class PaySecureTest < Test::Unit::TestCase
def setup
@gateway = PaySecureGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@options = {
order_id: '1000',
billing_address: address,
description: 'Test purchase'
}
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/dibs_test.rb | Ruby | mit | 4,597 | master | 8,757 | require 'test_helper'
class DibsTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = DibsGateway.new(
merchant_id: 'merchantId',
secret_key: 'secretKey'
)
@credit_card = credit_card
@amount = 100
end
def test_successful_purchase
response = stub_comms do
@ga... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/card_save_test.rb | Ruby | mit | 4,597 | master | 13,437 | require 'test_helper'
class CardSaveTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = CardSaveGateway.new(login: 'login', password: 'password')
@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/transact_pro_test.rb | Ruby | mit | 4,597 | master | 6,850 | require 'test_helper'
class TransactProTest < Test::Unit::TestCase
def setup
@gateway = TransactProGateway.new(
guid: 'login',
password: 'password',
terminal: 'terminal'
)
@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/nab_transact_test.rb | Ruby | mit | 4,597 | master | 19,346 | require 'test_helper'
class NabTransactTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = NabTransactGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 200
@options = {
order_id: '1',
billing_address: address,
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/orbital_cvv_result_test.rb | Ruby | mit | 4,597 | master | 1,397 | require 'test_helper'
class OrbitalCVVResultTest < Test::Unit::TestCase
def test_nil_data
result = ActiveMerchant::Billing::OrbitalGateway::CVVResult.new(nil)
assert_equal '', result.code
assert_equal ActiveMerchant::Billing::OrbitalGateway::CVVResult.messages[''], result.message
end
def test_blank_... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/versa_pay_test.rb | Ruby | mit | 4,597 | master | 39,348 | require 'test_helper'
class VersaPayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = VersaPayGateway.new(fixtures(:versa_pay))
@credit_card = credit_card
@amount = 100
@options = {
email: 'test@gmail.com',
billing_address: address.merge(name: 'Cure Tester')
}
@... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/eway_rapid_test.rb | Ruby | mit | 4,597 | master | 40,782 | require 'test_helper'
class EwayRapidTest < Test::Unit::TestCase
include CommStub
def setup
ActiveMerchant::Billing::EwayRapidGateway.partner_id = nil
@gateway = EwayRapidGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 100
@address = {... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/wompi_test.rb | Ruby | mit | 4,597 | master | 15,416 | require 'test_helper'
class WompiTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = WompiGateway.new(test_public_key: 'pub_test_1234', test_private_key: 'priv_test_5678')
@prod_gateway = WompiGateway.new(prod_public_key: 'pub_prod_1234', prod_private_key: 'priv_prod_5678')
@ambidextrous... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/linkpoint_test.rb | Ruby | mit | 4,597 | master | 8,470 | require 'test_helper'
class LinkpointTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = LinkpointGateway.new(
login: 123123,
pem: 'PEM'
)
@amount = 100
@credit_card = credit_card('4111111111111111')
@options = { order_id: 1000, billing_address: address }
end
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/braintree_orange_test.rb | Ruby | mit | 4,597 | master | 7,947 | require 'test_helper'
class BraintreeOrangeTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = BraintreeOrangeGateway.new(
login: 'LOGIN',
password: 'PASSWORD'
)
@credit_card = credit_card
@amount = 100
@options = { billing_address: address }
end
def test_succe... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/qvalent_test.rb | Ruby | mit | 4,597 | master | 18,811 | require 'test_helper'
class QvalentTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = QvalentGateway.new(
username: 'username',
password: 'password',
merchant: 'merchant',
pem: 'pem',
pem_password: 'pempassword'
)
@credit_card = credit_card
@amount = 1... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/cyber_source_rest_test.rb | Ruby | mit | 4,597 | master | 47,893 | require 'test_helper'
class CyberSourceRestTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = CyberSourceRestGateway.new(
merchant_id: 'abc123',
public_key: 'def345',
private_key: "NYlM1sgultLjvgaraWvDCXykdz1buqOW8yXE3pMlmxQ=\n"
)
@bank_account = check(account_number: ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/first_giving_test.rb | Ruby | mit | 4,597 | master | 4,023 | require 'test_helper'
class FirstGivingTest < Test::Unit::TestCase
def setup
@gateway = FirstGivingGateway.new(
application_key: 'application_key',
security_token: 'security_token',
charity_id: 'charity_id'
)
@credit_card = credit_card
@amount = 100
@options = {}
end
def ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/wepay_test.rb | Ruby | mit | 4,597 | master | 21,809 | require 'test_helper'
class WepayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = WepayGateway.new(
client_id: 'client_id',
account_id: 'account_id',
access_token: 'access_token'
)
@credit_card = credit_card
@amount = 20000
@options = {
email: 'test@e... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/rapyd_test.rb | Ruby | mit | 4,597 | master | 48,560 | require 'test_helper'
class RapydTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = RapydGateway.new(secret_key: 'secret_key', access_key: 'access_key')
@gateway_payment_redirect = RapydGateway.new(secret_key: 'secret_key', access_key: 'access_key', url_override: 'payment_redirect')
@cr... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/secure_pay_au_test.rb | Ruby | mit | 4,597 | master | 31,915 | require 'test_helper'
class SecurePayAuTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = SecurePayAuGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: 'order123',
billing_address: address... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/hi_pay_test.rb | Ruby | mit | 4,597 | master | 25,140 | require 'test_helper'
class HiPayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = HiPayGateway.new(fixtures(:hi_pay))
@credit_card = credit_card
@amount = 100
@options = {
order_id: SecureRandom.random_number(1000000000),
description: 'Short_description',
email:... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/shift4_v2_test.rb | Ruby | mit | 4,597 | master | 6,611 | require 'test_helper'
require_relative 'securion_pay_test'
class Shift4V2Test < SecurionPayTest
include CommStub
def setup
super
@gateway = Shift4V2Gateway.new(
secret_key: 'pr_test_random_key'
)
@check = check
end
def test_invalid_raw_response
@gateway.expects(:ssl_request).returns... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/verifi_test.rb | Ruby | mit | 4,597 | master | 3,344 | require 'test_helper'
class VerifiTest < Test::Unit::TestCase
include ActiveMerchant::Billing
def setup
@gateway = VerifiGateway.new(
login: 'l',
password: 'p'
)
@credit_card = credit_card('4111111111111111')
@options = {
order_id: '37',
email: 'paul@example.com',
b... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/redsys_sha256_test.rb | Ruby | mit | 4,597 | master | 54,690 | require 'test_helper'
class RedsysSHA256Test < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@credentials = {
login: '091952713',
secret_key: 'QIK77hYl6UFcoCYFKcj+ZjJg8Q6I93Dx',
signature_algorithm: 'sha256'
}
@gateway = RedsysGateway.new(@credentials)
@cr... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/modern_payments_cim_test.rb | Ruby | mit | 4,597 | master | 7,156 | require 'test_helper'
class ModernPaymentsCimTest < Test::Unit::TestCase
def setup
Base.mode = :test
@gateway = ModernPaymentsCimGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address:... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/stripe_payment_intents_test.rb | Ruby | mit | 4,597 | master | 178,613 | require 'test_helper'
class StripePaymentIntentsTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = StripePaymentIntentsGateway.new(login: 'sk_test_login')
@credit_card = credit_card()
@threeds_2_card = credit_card('4000000000003220')
@visa_token = 'pm_card_visa'
@three_ds_auth... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/card_connect_test.rb | Ruby | mit | 4,597 | master | 18,844 | require 'test_helper'
class CardConnectTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = CardConnectGateway.new(username: 'username', password: 'password', merchant_id: 'merchand_id')
@credit_card = credit_card('4788250000121443')
@declined_card = credit_card('4387751111111053')
@am... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/forte_test.rb | Ruby | mit | 4,597 | master | 25,308 | require 'test_helper'
class ForteTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = ForteGateway.new(location_id: 'location_id', account_id: 'account_id', api_key: 'api_key', secret: 'secret')
@credit_card = credit_card
@check = check
@amount = 100
@options = {
order_id: ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/axcessms_test.rb | Ruby | mit | 4,597 | master | 17,812 | require 'test_helper'
class AxcessmsTest < Test::Unit::TestCase
include CommStub
TEST_AUTHORIZATION = '8a8294494830a3bb01483174f1827b9a'
TEST_PURCHASE = '8a82944a4830c4810148350aeeec5e58'
def setup
@gateway = AxcessmsGateway.new(fixtures(:axcessms))
@amount = 1500
@credit_card = credit_card('420... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/loan_payment_pro_test.rb | Ruby | mit | 4,597 | master | 7,570 | require 'test_helper'
class LoanPaymentProTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = LoanPaymentProGateway.new(transaction_key: 'login')
@credit_card = credit_card('4000100011112224', month: 9, year: 2025, verification_value: '123')
@amount = 500
@options = {
order_id... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/ebanx_test.rb | Ruby | mit | 4,597 | master | 29,853 | require 'test_helper'
class EbanxTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = EbanxGateway.new(integration_key: 'key')
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase'
}
@ne... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/gateway_test.rb | Ruby | mit | 4,597 | master | 5,724 | require 'test_helper'
class GatewayTest < Test::Unit::TestCase
def setup
@gateway = Gateway.new
end
def teardown
Gateway.money_format = :dollars
end
def test_should_detect_if_a_card_is_supported
Gateway.supported_cardtypes = %i[visa bogus]
assert(%i[visa bogus].all? { |supported_cardtype| G... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/xpay_test.rb | Ruby | mit | 4,597 | master | 15,704 | require 'test_helper'
class XpayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = XpayGateway.new(
api_key: 'some api key'
)
@credit_card = credit_card
@amount = 100
@base_url = @gateway.test_url
@options = {
order_id: 'ngGFbpHStk',
order: {
curren... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/sage_pay_test.rb | Ruby | mit | 4,597 | master | 23,190 | require 'test_helper'
class SagePayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = SagePayGateway.new(login: 'X')
@credit_card = credit_card('4242424242424242', brand: 'visa')
@electron_credit_card = credit_card('4245190000000000', brand: 'visa')
@options = {
billing_addre... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/flo2cash_simple_test.rb | Ruby | mit | 4,597 | master | 4,776 | require 'test_helper'
class Flo2cashSimpleTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = Flo2cashSimpleGateway.new(
username: 'username',
password: 'password',
account_id: 'account_id'
)
@credit_card = credit_card
@amount = 100
end
... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/beanstream_test.rb | Ruby | mit | 4,597 | master | 16,860 | require 'test_helper'
class BeanstreamTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = BeanstreamGateway.new(
login: 'merchant id',
user: 'username',
password: 'password',
api_key: 'api_key'
)
@credit_card = credit_card
@decrypted_c... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/mercury_test.rb | Ruby | mit | 4,597 | master | 14,276 | require 'test_helper'
class MercuryTest < Test::Unit::TestCase
include CommStub
def setup
Base.mode = :test
@gateway = MercuryGateway.new(fixtures(:mercury))
@amount = 100
@credit_card = credit_card('5499990123456781', brand: 'master')
@declined_card = credit_card('4000300011112220')
@o... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/so_easy_pay_test.rb | Ruby | mit | 4,597 | master | 10,560 | require 'test_helper'
class SoEasyPayTest < Test::Unit::TestCase
def setup
@gateway = SoEasyPayGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Pur... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payflow_test.rb | Ruby | mit | 4,597 | master | 49,253 | require 'test_helper'
class PayflowTest < Test::Unit::TestCase
include CommStub
# From `BuyerAuthStatusEnum` in https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pp_payflowpro_xmlpay_guide.pdf, page 109
SUCCESSFUL_AUTHENTICATION_STATUS = 'Y'
CHALLENGE_REQUIRED_AUTHENTICATION_STATUS = 'C'
def... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/multi_pay_test.rb | Ruby | mit | 4,597 | master | 5,439 | require 'test_helper'
class MultiPayTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = MultiPayGateway.new(
company: 'company123',
branch: 'branch456',
pos: 'pos123',
user: 'test_user',
password: 'test_password'
)
@credit_card = credit_card
@amount = 10... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/barclays_epdq_extra_plus_test.rb | Ruby | mit | 4,597 | master | 26,692 | require 'test_helper'
class BarclaysEpdqExtraPlusTest < Test::Unit::TestCase
def setup
@credentials = { login: 'pspid',
user: 'username',
password: 'password',
signature: 'mynicesig',
signature_encryptor: 'sha512' }
@gateway ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/merchant_warrior_test.rb | Ruby | mit | 4,597 | master | 18,244 | require 'test_helper'
class MerchantWarriorTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = MerchantWarriorGateway.new(
merchant_uuid: '4e922de8c2a4c',
api_key: 'g6jrxa9o',
api_passphrase: 'vp4ujoem'
)
@credit_card = credit_card
@success_amount = 10000
@tran... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/network_merchants_test.rb | Ruby | mit | 4,597 | master | 9,055 | require 'test_helper'
class NetworkMerchantsTest < Test::Unit::TestCase
def setup
@gateway = NetworkMerchantsGateway.new(
login: 'login',
password: 'password'
)
@credit_card = credit_card
@check = check
@amount = 100
@options = {
order_id: '1',
billing_address: addre... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/shift4_test.rb | Ruby | mit | 4,597 | master | 49,510 | require 'test_helper'
class Shift4Test < Test::Unit::TestCase
include CommStub
def setup
@gateway = Shift4Gateway.new(client_guid: '123456', auth_token: 'abcder123')
@credit_card = credit_card('4000100011112224', verification_value: '333', first_name: 'John', last_name: 'Doe')
@amount = 5
@options ... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/latitude19_test.rb | Ruby | mit | 4,597 | master | 21,969 | require 'test_helper'
class Latitude19Test < Test::Unit::TestCase
include CommStub
def setup
@gateway = Latitude19Gateway.new(fixtures(:latitude19))
@amount = 100
@credit_card = credit_card('4000100011112224', verification_value: '747')
@declined_card = credit_card('0000000000000000')
@optio... |
github | activemerchant/active_merchant | https://github.com/activemerchant/active_merchant | test/unit/gateways/payscout_test.rb | Ruby | mit | 4,597 | master | 14,448 | require 'test_helper'
class PayscoutTest < Test::Unit::TestCase
def setup
@gateway = PayscoutGateway.new(
username: 'xxx',
password: 'xxx'
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.