smulube-activemerchant 1.5.1.4 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. data.tar.gz.sig +0 -0
  2. data/CHANGELOG +9 -0
  3. data/CONTRIBUTORS +5 -1
  4. data/gem-public_cert.pem +18 -18
  5. data/lib/active_merchant.rb +9 -9
  6. data/lib/active_merchant/billing/gateways/braintree.rb +11 -11
  7. data/lib/active_merchant/billing/gateways/braintree/braintree_common.rb +9 -0
  8. data/lib/active_merchant/billing/gateways/braintree_blue.rb +210 -0
  9. data/lib/active_merchant/billing/gateways/braintree_orange.rb +17 -0
  10. data/lib/active_merchant/billing/gateways/payflow_nvp_uk.rb +10 -5
  11. data/lib/active_merchant/billing/integrations/action_view_helper.rb +1 -1
  12. data/lib/active_merchant/common.rb +14 -0
  13. data/lib/active_merchant/{lib → common}/connection.rb +2 -5
  14. data/lib/active_merchant/{lib → common}/country.rb +1 -1
  15. data/lib/active_merchant/common/error.rb +26 -0
  16. data/lib/active_merchant/common/post_data.rb +24 -0
  17. data/lib/active_merchant/{lib → common}/posts_data.rb +0 -0
  18. data/lib/active_merchant/{lib → common}/requires_parameters.rb +0 -0
  19. data/lib/active_merchant/{lib → common}/utils.rb +0 -0
  20. data/lib/active_merchant/{lib → common}/validateable.rb +0 -0
  21. data/lib/active_merchant/version.rb +1 -1
  22. data/lib/active_merchant/version.rb.orig +7 -0
  23. data/lib/activemerchant.rb +1 -0
  24. data/lib/support/outbound_hosts.rb +25 -0
  25. metadata +175 -493
  26. metadata.gz.sig +0 -0
  27. data/.gitignore +0 -7
  28. data/Rakefile +0 -85
  29. data/generators/gateway/USAGE +0 -5
  30. data/generators/gateway/gateway_generator.rb +0 -61
  31. data/generators/gateway/templates/gateway.rb +0 -77
  32. data/generators/gateway/templates/gateway_test.rb +0 -49
  33. data/generators/gateway/templates/remote_gateway_test.rb +0 -57
  34. data/generators/integration/USAGE +0 -5
  35. data/generators/integration/integration_generator.rb +0 -68
  36. data/generators/integration/templates/helper.rb +0 -34
  37. data/generators/integration/templates/helper_test.rb +0 -54
  38. data/generators/integration/templates/integration.rb +0 -18
  39. data/generators/integration/templates/module_test.rb +0 -9
  40. data/generators/integration/templates/notification.rb +0 -100
  41. data/generators/integration/templates/notification_test.rb +0 -41
  42. data/init.rb +0 -3
  43. data/lib/active_merchant/lib/error.rb +0 -4
  44. data/lib/active_merchant/lib/post_data.rb +0 -22
  45. data/script/destroy +0 -14
  46. data/script/generate +0 -14
  47. data/test/fixtures.yml +0 -360
  48. data/test/remote/gateways/remote_authorize_net_cim_test.rb +0 -460
  49. data/test/remote/gateways/remote_authorize_net_test.rb +0 -145
  50. data/test/remote/gateways/remote_beanstream_interac_test.rb +0 -53
  51. data/test/remote/gateways/remote_beanstream_test.rb +0 -150
  52. data/test/remote/gateways/remote_braintree_test.rb +0 -147
  53. data/test/remote/gateways/remote_card_stream_test.rb +0 -148
  54. data/test/remote/gateways/remote_cyber_source_test.rb +0 -146
  55. data/test/remote/gateways/remote_data_cash_test.rb +0 -356
  56. data/test/remote/gateways/remote_efsnet_test.rb +0 -81
  57. data/test/remote/gateways/remote_elavon_test.rb +0 -66
  58. data/test/remote/gateways/remote_eway_test.rb +0 -74
  59. data/test/remote/gateways/remote_exact_test.rb +0 -60
  60. data/test/remote/gateways/remote_first_pay_test.rb +0 -87
  61. data/test/remote/gateways/remote_garanti_test.rb +0 -58
  62. data/test/remote/gateways/remote_instapay_test.rb +0 -61
  63. data/test/remote/gateways/remote_jetpay_test.rb +0 -103
  64. data/test/remote/gateways/remote_linkpoint_test.rb +0 -121
  65. data/test/remote/gateways/remote_merchant_e_solutions_test.rb +0 -173
  66. data/test/remote/gateways/remote_merchant_ware_test.rb +0 -113
  67. data/test/remote/gateways/remote_modern_payments_cim_test.rb +0 -58
  68. data/test/remote/gateways/remote_modern_payments_test.rb +0 -57
  69. data/test/remote/gateways/remote_moneris_test.rb +0 -82
  70. data/test/remote/gateways/remote_net_registry_test.rb +0 -85
  71. data/test/remote/gateways/remote_netbilling_test.rb +0 -70
  72. data/test/remote/gateways/remote_ogone_test.rb +0 -115
  73. data/test/remote/gateways/remote_pay_junction_test.rb +0 -143
  74. data/test/remote/gateways/remote_pay_secure_test.rb +0 -39
  75. data/test/remote/gateways/remote_payflow_express_test.rb +0 -50
  76. data/test/remote/gateways/remote_payflow_nvp_uk_test.rb +0 -57
  77. data/test/remote/gateways/remote_payflow_test.rb +0 -237
  78. data/test/remote/gateways/remote_payflow_uk_test.rb +0 -173
  79. data/test/remote/gateways/remote_payment_express_test.rb +0 -136
  80. data/test/remote/gateways/remote_paypal_express_test.rb +0 -49
  81. data/test/remote/gateways/remote_paypal_test.rb +0 -191
  82. data/test/remote/gateways/remote_plugnpay_test.rb +0 -72
  83. data/test/remote/gateways/remote_psigate_test.rb +0 -50
  84. data/test/remote/gateways/remote_psl_card_test.rb +0 -123
  85. data/test/remote/gateways/remote_quickpay_test.rb +0 -190
  86. data/test/remote/gateways/remote_realex_test.rb +0 -224
  87. data/test/remote/gateways/remote_sage_bankcard_test.rb +0 -109
  88. data/test/remote/gateways/remote_sage_pay_test.rb +0 -219
  89. data/test/remote/gateways/remote_sage_test.rb +0 -87
  90. data/test/remote/gateways/remote_sage_virtual_check_test.rb +0 -62
  91. data/test/remote/gateways/remote_sallie_mae_test.rb +0 -51
  92. data/test/remote/gateways/remote_secure_pay_au_test.rb +0 -40
  93. data/test/remote/gateways/remote_secure_pay_tech_test.rb +0 -37
  94. data/test/remote/gateways/remote_secure_pay_test.rb +0 -28
  95. data/test/remote/gateways/remote_skipjack_test.rb +0 -105
  96. data/test/remote/gateways/remote_trans_first_test.rb +0 -34
  97. data/test/remote/gateways/remote_transax_test.rb +0 -112
  98. data/test/remote/gateways/remote_trust_commerce_test.rb +0 -152
  99. data/test/remote/gateways/remote_usa_epay_test.rb +0 -46
  100. data/test/remote/gateways/remote_verifi_test.rb +0 -107
  101. data/test/remote/gateways/remote_viaklix_test.rb +0 -43
  102. data/test/remote/gateways/remote_wirecard_test.rb +0 -111
  103. data/test/remote/integrations/remote_gestpay_integration_test.rb +0 -37
  104. data/test/remote/integrations/remote_paypal_integration_test.rb +0 -26
  105. data/test/test_helper.rb +0 -184
  106. data/test/unit/avs_result_test.rb +0 -59
  107. data/test/unit/base_test.rb +0 -54
  108. data/test/unit/check_test.rb +0 -88
  109. data/test/unit/connection_test.rb +0 -137
  110. data/test/unit/country_code_test.rb +0 -33
  111. data/test/unit/country_test.rb +0 -64
  112. data/test/unit/credit_card_formatting_test.rb +0 -19
  113. data/test/unit/credit_card_methods_test.rb +0 -192
  114. data/test/unit/credit_card_test.rb +0 -318
  115. data/test/unit/cvv_result_test.rb +0 -33
  116. data/test/unit/expiry_date_test.rb +0 -32
  117. data/test/unit/gateways/authorize_net_cim_test.rb +0 -676
  118. data/test/unit/gateways/authorize_net_test.rb +0 -290
  119. data/test/unit/gateways/beanstream_interac_test.rb +0 -51
  120. data/test/unit/gateways/beanstream_test.rb +0 -144
  121. data/test/unit/gateways/bogus_test.rb +0 -58
  122. data/test/unit/gateways/braintree_test.rb +0 -118
  123. data/test/unit/gateways/card_stream_test.rb +0 -90
  124. data/test/unit/gateways/cyber_source_test.rb +0 -188
  125. data/test/unit/gateways/data_cash_test.rb +0 -133
  126. data/test/unit/gateways/efsnet_test.rb +0 -123
  127. data/test/unit/gateways/elavon_test.rb +0 -139
  128. data/test/unit/gateways/eway_test.rb +0 -118
  129. data/test/unit/gateways/exact_test.rb +0 -156
  130. data/test/unit/gateways/first_pay_test.rb +0 -125
  131. data/test/unit/gateways/garanti_test.rb +0 -86
  132. data/test/unit/gateways/gateway_test.rb +0 -48
  133. data/test/unit/gateways/instapay_test.rb +0 -102
  134. data/test/unit/gateways/jetpay_test.rb +0 -185
  135. data/test/unit/gateways/linkpoint_test.rb +0 -197
  136. data/test/unit/gateways/merchant_e_solutions_test.rb +0 -169
  137. data/test/unit/gateways/merchant_ware_test.rb +0 -188
  138. data/test/unit/gateways/modern_payments_cim_test.rb +0 -162
  139. data/test/unit/gateways/moneris_test.rb +0 -158
  140. data/test/unit/gateways/net_registry_test.rb +0 -416
  141. data/test/unit/gateways/netbilling_test.rb +0 -54
  142. data/test/unit/gateways/ogone_test.rb +0 -319
  143. data/test/unit/gateways/pay_junction_test.rb +0 -123
  144. data/test/unit/gateways/pay_secure_test.rb +0 -71
  145. data/test/unit/gateways/payflow_express_test.rb +0 -173
  146. data/test/unit/gateways/payflow_express_uk_test.rb +0 -86
  147. data/test/unit/gateways/payflow_nvp_uk_test.rb +0 -205
  148. data/test/unit/gateways/payflow_test.rb +0 -305
  149. data/test/unit/gateways/payflow_uk_test.rb +0 -30
  150. data/test/unit/gateways/payment_express_test.rb +0 -195
  151. data/test/unit/gateways/paypal_express_test.rb +0 -389
  152. data/test/unit/gateways/paypal_test.rb +0 -569
  153. data/test/unit/gateways/plugnpay_test.rb +0 -86
  154. data/test/unit/gateways/psigate_test.rb +0 -169
  155. data/test/unit/gateways/psl_card_test.rb +0 -64
  156. data/test/unit/gateways/quickpay_test.rb +0 -112
  157. data/test/unit/gateways/realex_test.rb +0 -151
  158. data/test/unit/gateways/sage_bankcard_test.rb +0 -196
  159. data/test/unit/gateways/sage_pay_test.rb +0 -139
  160. data/test/unit/gateways/sage_virtual_check_test.rb +0 -71
  161. data/test/unit/gateways/sallie_mae_test.rb +0 -53
  162. data/test/unit/gateways/secure_pay_au_test.rb +0 -207
  163. data/test/unit/gateways/secure_pay_tech_test.rb +0 -44
  164. data/test/unit/gateways/secure_pay_test.rb +0 -101
  165. data/test/unit/gateways/skip_jack_test.rb +0 -228
  166. data/test/unit/gateways/trans_first_test.rb +0 -112
  167. data/test/unit/gateways/trust_commerce_test.rb +0 -90
  168. data/test/unit/gateways/usa_epay_test.rb +0 -128
  169. data/test/unit/gateways/verifi_test.rb +0 -96
  170. data/test/unit/gateways/viaklix_test.rb +0 -78
  171. data/test/unit/gateways/wirecard_test.rb +0 -250
  172. data/test/unit/generators/test_gateway_generator.rb +0 -46
  173. data/test/unit/generators/test_generator_helper.rb +0 -20
  174. data/test/unit/generators/test_integration_generator.rb +0 -53
  175. data/test/unit/integrations/action_view_helper_test.rb +0 -50
  176. data/test/unit/integrations/bogus_module_test.rb +0 -20
  177. data/test/unit/integrations/chronopay_module_test.rb +0 -13
  178. data/test/unit/integrations/gestpay_module_test.rb +0 -14
  179. data/test/unit/integrations/helpers/bogus_helper_test.rb +0 -28
  180. data/test/unit/integrations/helpers/chronopay_helper_test.rb +0 -110
  181. data/test/unit/integrations/helpers/gestpay_helper_test.rb +0 -100
  182. data/test/unit/integrations/helpers/hi_trust_helper_test.rb +0 -16
  183. data/test/unit/integrations/helpers/nochex_helper_test.rb +0 -53
  184. data/test/unit/integrations/helpers/paypal_helper_test.rb +0 -171
  185. data/test/unit/integrations/helpers/quickpay_helper_test.rb +0 -40
  186. data/test/unit/integrations/helpers/two_checkout_helper_test.rb +0 -92
  187. data/test/unit/integrations/hi_trust_module_test.rb +0 -13
  188. data/test/unit/integrations/nochex_module_test.rb +0 -13
  189. data/test/unit/integrations/notifications/chronopay_notification_test.rb +0 -66
  190. data/test/unit/integrations/notifications/gestpay_notification_test.rb +0 -60
  191. data/test/unit/integrations/notifications/hi_trust_notification_test.rb +0 -59
  192. data/test/unit/integrations/notifications/nochex_notification_test.rb +0 -51
  193. data/test/unit/integrations/notifications/notification_test.rb +0 -54
  194. data/test/unit/integrations/notifications/paypal_notification_test.rb +0 -85
  195. data/test/unit/integrations/notifications/quickpay_notification_test.rb +0 -69
  196. data/test/unit/integrations/notifications/two_checkout_notification_test.rb +0 -55
  197. data/test/unit/integrations/paypal_module_test.rb +0 -28
  198. data/test/unit/integrations/quickpay_module_test.rb +0 -9
  199. data/test/unit/integrations/returns/chronopay_return_test.rb +0 -11
  200. data/test/unit/integrations/returns/gestpay_return_test.rb +0 -10
  201. data/test/unit/integrations/returns/hi_trust_return_test.rb +0 -24
  202. data/test/unit/integrations/returns/nochex_return_test.rb +0 -10
  203. data/test/unit/integrations/returns/paypal_return_test.rb +0 -10
  204. data/test/unit/integrations/returns/return_test.rb +0 -11
  205. data/test/unit/integrations/returns/two_checkout_return_test.rb +0 -24
  206. data/test/unit/integrations/two_checkout_module_test.rb +0 -13
  207. data/test/unit/post_data_test.rb +0 -55
  208. data/test/unit/posts_data_test.rb +0 -48
  209. data/test/unit/response_test.rb +0 -28
  210. data/test/unit/utils_test.rb +0 -7
  211. data/test/unit/validateable_test.rb +0 -60
@@ -1,54 +0,0 @@
1
- require 'test_helper'
2
-
3
- class <%= class_name %>HelperTest < Test::Unit::TestCase
4
- include ActiveMerchant::Billing::Integrations
5
-
6
- def setup
7
- @helper = <%= class_name %>::Helper.new('order-500','cody@example.com', :amount => 500, :currency => 'USD')
8
- end
9
-
10
- def test_basic_helper_fields
11
- assert_field '', 'cody@example.com'
12
-
13
- assert_field '', '5.00'
14
- assert_field '', 'order-500'
15
- end
16
-
17
- def test_customer_fields
18
- @helper.customer :first_name => 'Cody', :last_name => 'Fauser', :email => 'cody@example.com'
19
- assert_field '', 'Cody'
20
- assert_field '', 'Fauser'
21
- assert_field '', 'cody@example.com'
22
- end
23
-
24
- def test_address_mapping
25
- @helper.billing_address :address1 => '1 My Street',
26
- :address2 => '',
27
- :city => 'Leeds',
28
- :state => 'Yorkshire',
29
- :zip => 'LS2 7EE',
30
- :country => 'CA'
31
-
32
- assert_field '', '1 My Street'
33
- assert_field '', 'Leeds'
34
- assert_field '', 'Yorkshire'
35
- assert_field '', 'LS2 7EE'
36
- end
37
-
38
- def test_unknown_address_mapping
39
- @helper.billing_address :farm => 'CA'
40
- assert_equal 3, @helper.fields.size
41
- end
42
-
43
- def test_unknown_mapping
44
- assert_nothing_raised do
45
- @helper.company_address :address => '500 Dwemthy Fox Road'
46
- end
47
- end
48
-
49
- def test_setting_invalid_address_field
50
- fields = @helper.fields.dup
51
- @helper.billing_address :street => 'My Street'
52
- assert_equal fields, @helper.fields
53
- end
54
- end
@@ -1,18 +0,0 @@
1
- require File.dirname(__FILE__) + '/<%= name %>/helper.rb'
2
- require File.dirname(__FILE__) + '/<%= name %>/notification.rb'
3
-
4
- module ActiveMerchant #:nodoc:
5
- module Billing #:nodoc:
6
- module Integrations #:nodoc:
7
- module <%= class_name %>
8
-
9
- mattr_accessor :service_url
10
- self.service_url = 'https://www.example.com'
11
-
12
- def self.notification(post)
13
- Notification.new(post)
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- class <%= class_name %>ModuleTest < Test::Unit::TestCase
4
- include ActiveMerchant::Billing::Integrations
5
-
6
- def test_notification_method
7
- assert_instance_of <%= class_name %>::Notification, <%= class_name %>.notification('name=cody')
8
- end
9
- end
@@ -1,100 +0,0 @@
1
- require 'net/http'
2
-
3
- module ActiveMerchant #:nodoc:
4
- module Billing #:nodoc:
5
- module Integrations #:nodoc:
6
- module <%= class_name %>
7
- class Notification < ActiveMerchant::Billing::Integrations::Notification
8
- def complete?
9
- params['']
10
- end
11
-
12
- def item_id
13
- params['']
14
- end
15
-
16
- def transaction_id
17
- params['']
18
- end
19
-
20
- # When was this payment received by the client.
21
- def received_at
22
- params['']
23
- end
24
-
25
- def payer_email
26
- params['']
27
- end
28
-
29
- def receiver_email
30
- params['']
31
- end
32
-
33
- def security_key
34
- params['']
35
- end
36
-
37
- # the money amount we received in X.2 decimal.
38
- def gross
39
- params['']
40
- end
41
-
42
- # Was this a test transaction?
43
- def test?
44
- params[''] == 'test'
45
- end
46
-
47
- def status
48
- params['']
49
- end
50
-
51
- # Acknowledge the transaction to <%= class_name %>. This method has to be called after a new
52
- # apc arrives. <%= class_name %> will verify that all the information we received are correct and will return a
53
- # ok or a fail.
54
- #
55
- # Example:
56
- #
57
- # def ipn
58
- # notify = <%= class_name %>Notification.new(request.raw_post)
59
- #
60
- # if notify.acknowledge
61
- # ... process order ... if notify.complete?
62
- # else
63
- # ... log possible hacking attempt ...
64
- # end
65
- def acknowledge
66
- payload = raw
67
-
68
- uri = URI.parse(<%= class_name %>.notification_confirmation_url)
69
-
70
- request = Net::HTTP::Post.new(uri.path)
71
-
72
- request['Content-Length'] = "#{payload.size}"
73
- request['User-Agent'] = "Active Merchant -- http://home.leetsoft.com/am"
74
- request['Content-Type'] = "application/x-www-form-urlencoded"
75
-
76
- http = Net::HTTP.new(uri.host, uri.port)
77
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE unless @ssl_strict
78
- http.use_ssl = true
79
-
80
- response = http.request(request, payload)
81
-
82
- # Replace with the appropriate codes
83
- raise StandardError.new("Faulty <%= class_name %> result: #{response.body}") unless ["AUTHORISED", "DECLINED"].include?(response.body)
84
- response.body == "AUTHORISED"
85
- end
86
- private
87
-
88
- # Take the posted data and move the relevant data into a hash
89
- def parse(post)
90
- @raw = post
91
- for line in post.split('&')
92
- key, value = *line.scan( %r{^(\w+)\=(.*)$} ).flatten
93
- params[key] = value
94
- end
95
- end
96
- end
97
- end
98
- end
99
- end
100
- end
@@ -1,41 +0,0 @@
1
- require 'test_helper'
2
-
3
- class <%= class_name %>NotificationTest < Test::Unit::TestCase
4
- include ActiveMerchant::Billing::Integrations
5
-
6
- def setup
7
- @<%= name %> = <%= class_name %>::Notification.new(http_raw_data)
8
- end
9
-
10
- def test_accessors
11
- assert @<%= name %>.complete?
12
- assert_equal "", @<%= name %>.status
13
- assert_equal "", @<%= name %>.transaction_id
14
- assert_equal "", @<%= name %>.item_id
15
- assert_equal "", @<%= name %>.gross
16
- assert_equal "", @<%= name %>.currency
17
- assert_equal "", @<%= name %>.received_at
18
- assert @<%= name %>.test?
19
- end
20
-
21
- def test_compositions
22
- assert_equal Money.new(3166, 'USD'), @<%= name %>.amount
23
- end
24
-
25
- # Replace with real successful acknowledgement code
26
- def test_acknowledgement
27
-
28
- end
29
-
30
- def test_send_acknowledgement
31
- end
32
-
33
- def test_respond_to_acknowledge
34
- assert @<%= name %>.respond_to?(:acknowledge)
35
- end
36
-
37
- private
38
- def http_raw_data
39
- ""
40
- end
41
- end
data/init.rb DELETED
@@ -1,3 +0,0 @@
1
- require 'active_merchant'
2
- require 'active_merchant/billing/integrations/action_view_helper'
3
- ActionView::Base.send(:include, ActiveMerchant::Billing::Integrations::ActionViewHelper)
@@ -1,4 +0,0 @@
1
- module ActiveMerchant #:nodoc:
2
- class ActiveMerchantError < StandardError #:nodoc:
3
- end
4
- end
@@ -1,22 +0,0 @@
1
- require 'cgi'
2
-
3
- class PostData < Hash
4
- class_inheritable_accessor :required_fields, :instance_writer => false
5
- self.required_fields = []
6
-
7
- def []=(key, value)
8
- return if value.blank? && !required?(key)
9
- super
10
- end
11
-
12
- def to_post_data
13
- collect { |key, value| "#{key}=#{CGI.escape(value.to_s)}" }.join("&")
14
- end
15
-
16
- alias_method :to_s, :to_post_data
17
-
18
- private
19
- def required?(key)
20
- required_fields.include?(key)
21
- end
22
- end
data/script/destroy DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.join(File.dirname(__FILE__), '..')
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:activemerchant, :rubygems, :test_unit]
14
- RubiGen::Scripts::Destroy.new.run(ARGV)
data/script/generate DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.join(File.dirname(__FILE__), '..')
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/generate'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:activemerchant, :rubygems, :test_unit]
14
- RubiGen::Scripts::Generate.new.run(ARGV)
data/test/fixtures.yml DELETED
@@ -1,360 +0,0 @@
1
- # This file has all of the ActiveMerchant test account credentials.
2
- # Many gateways do not offer publicly available test accounts. In
3
- # order to make testing the gateways easy you can copy this file to
4
- # your home directory as the file ~/.active_merchant/fixtures.yml
5
- # You can then place your own test account credentials in your local
6
- # copy of the file.
7
- #
8
- # If the login is numeric, ensure that you place quotes around it.
9
- # Leading zeros will be lost when YAML parses the file if you don't.
10
- #
11
- # Paste any required PEM certificates after the pem key.
12
- #
13
- authorize_net:
14
- login: X
15
- password: Y
16
-
17
- beanstream:
18
- login: merchant id
19
- user: username
20
- password: password
21
-
22
- beanstream_interac:
23
- login: merchant id
24
- user: username
25
- password: password
26
-
27
- braintree:
28
- login: demo
29
- password: password
30
-
31
- card_stream:
32
- login: X
33
- password: Y
34
-
35
- cyber_source:
36
- login: X
37
- password: Y
38
-
39
- data_cash:
40
- login: X
41
- password: Y
42
-
43
- efsnet:
44
- login: X
45
- password: Y
46
-
47
- elavon:
48
- login: LOGIN
49
- password: PASSWORD
50
-
51
- # Working credentials, no need to replace
52
- eway:
53
- login: '87654321'
54
-
55
- # Working credentials, no need to replace
56
- exact:
57
- login: "A00427-01"
58
- password: testus
59
-
60
- first_pay:
61
- login:
62
- password:
63
-
64
- ideal_ing_postbank:
65
- login: LOGIN
66
- password: PASSWORD
67
- pem: |--
68
- PASTE YOUR PEM FILE HERE
69
-
70
- instapay:
71
- login: TEST0
72
- password:
73
-
74
- jetpay:
75
- login: TESTTERMINAL
76
-
77
- linkpoint:
78
- login: STOREID
79
- pem: |--
80
- PASTE YOUR PEM FILE HERE
81
-
82
- merchant_ware:
83
- login:
84
- password:
85
- name:
86
-
87
- modern_payments:
88
- login: login
89
- password: password
90
-
91
- # Working credentials, no need to replace
92
- moneris:
93
- login: store1
94
- password: yesguy
95
-
96
- # Working credentials, no need to replace
97
- # Contact Netbilling for login info to the admin area
98
- netbilling:
99
- login: '104901072025'
100
-
101
- net_registry:
102
- login: X
103
- password: Y
104
-
105
- ogone:
106
- login: LOGIN
107
- user: USER
108
- password: PASSWORD
109
- signature: SIGNATURE
110
-
111
- payflow:
112
- login: LOGIN
113
- password: PASSWORD
114
- partner: PayPal
115
-
116
- payflow_uk:
117
- login: LOGIN
118
- password: PASSWORD
119
- partner: PayPalUk
120
-
121
- # Working credentials, no need to replace
122
- pay_junction:
123
- login: 'pj-ql-01'
124
- password: 'pj-ql-01p'
125
-
126
- payment_express:
127
- login: LOGIN
128
- password: PASSWORD
129
-
130
- # You can use either your API PEM file or API signature with PayPal.
131
- paypal_certificate:
132
- login: LOGIN
133
- password: PASSWORD
134
- subject:
135
- pem: |--
136
- PASTE YOUR PEM FILE HERE
137
-
138
- paypal_signature:
139
- login: LOGIN
140
- password: PASSWORD
141
- signature: SIGNATURE
142
-
143
- pay_secure:
144
- login: LOGIN
145
- password: PASSWORD
146
-
147
- plugnpay:
148
- login: LOGIN
149
- password: PASSWORD
150
-
151
- sage_pay:
152
- login: LOGIN
153
-
154
- # Working credentials, no need to replace
155
- psigate:
156
- login: teststore
157
- password: psigate1234
158
-
159
- psl_card:
160
- login: LOGIN
161
-
162
- # PSL doesn't want the test data made public
163
- psl_maestro:
164
- number:
165
- month:
166
- year:
167
- verification_value:
168
- issue_number:
169
-
170
- psl_maestro_address:
171
- address1:
172
- address2:
173
- city:
174
- state:
175
- zip:
176
-
177
- psl_solo:
178
- number:
179
- month:
180
- year:
181
- verification_value:
182
- issue_number:
183
-
184
- psl_solo_address:
185
- address1:
186
- city:
187
- state:
188
- zip:
189
-
190
- psl_visa:
191
- number:
192
- month:
193
- year:
194
- verification_value:
195
-
196
- psl_visa_address:
197
- address1:
198
- address2:
199
- address3:
200
- city:
201
- zip:
202
-
203
- psl_visa_debit:
204
- first_name:
205
- last_name:
206
- number:
207
- month:
208
- year:
209
- verification_value:
210
-
211
- psl_visa_debit_address:
212
- address1:
213
- address2:
214
- address3:
215
- city:
216
- state:
217
- zip:
218
-
219
- quickpay:
220
- login: 89898989
221
- password: "n5KrR5e2538awi9hUk6728LHTQ6E4uG1z4IFSb2pPN9j76DqJ2vA4698X315M1cd"
222
-
223
- realex:
224
- login: X
225
- password: Y
226
-
227
- realex_with_account:
228
- login: X
229
- password: Y
230
- account: testaccount
231
-
232
- # Realex doesn't provide public testing data
233
- # Fill in the card numbers with the Realex test
234
- # data.
235
- realex_visa:
236
- number:
237
- month: '6'
238
- year: '2020'
239
- verification_value: '123'
240
-
241
- realex_visa_declined:
242
- number:
243
- month: '6'
244
- year: '2020'
245
- verification_value: '123'
246
-
247
- realex_visa_referral_a:
248
- number:
249
- month: '6'
250
- year: '2020'
251
- verification_value: '123'
252
-
253
- realex_visa_referral_b:
254
- number:
255
- month: '6'
256
- year: '2020'
257
- verification_value: '123'
258
-
259
- realex_visa_coms_error:
260
- number:
261
- month: '6'
262
- year: '2020'
263
- verification_value: '123'
264
-
265
- realex_mastercard:
266
- number:
267
- month: '6'
268
- year: '2020'
269
- verification_value: '123'
270
-
271
- realex_mastercard_declined:
272
- number:
273
- month: '6'
274
- year: '2020'
275
- verification_value: '123'
276
-
277
- realex_mastercard_referral_a:
278
- number:
279
- month: '6'
280
- year: '2020'
281
- verification_value: '123'
282
-
283
- realex_mastercard_referral_b:
284
- number:
285
- month: '6'
286
- year: '2020'
287
- verification_value: '123'
288
-
289
- realex_mastercard_coms_error:
290
- number:
291
- month: '6'
292
- year: '2020'
293
- verification_value: '123'
294
-
295
- sage:
296
- login: login
297
- password: password
298
-
299
- sallie_mae:
300
- login: TEST0
301
-
302
- secure_pay:
303
- login: LOGIN
304
- password: PASSWORD
305
-
306
- secure_pay_tech:
307
- login: TESTDIGISPL1
308
- password: d557591484cb2cd12bba445aba420d2c69cd6a88
309
-
310
- secure_pay_au:
311
- login:
312
- password:
313
-
314
- # Replace with your serial numbers for the skipjack test environment
315
- skipjack:
316
- login: X
317
- password: Y
318
-
319
- trans_first:
320
- login: LOGIN
321
- password: PASSWORD
322
-
323
- transax:
324
- login: demo
325
- password: password
326
-
327
- # Working credentials, no need to replace
328
- trust_commerce:
329
- login: 'TestMerchant'
330
- password: 'password'
331
-
332
- # Working credentials, no need to replace
333
- usa_epay:
334
- login: 'yCaWGYQsSVR0S48B6AKMK07RQhaxHvGu'
335
-
336
- # Working credentials, no need to replace
337
- verify:
338
- login: 'demo'
339
- password: 'password'
340
-
341
- viaklix:
342
- login: LOGIN
343
- password: PASSWORD
344
- user: USER
345
-
346
- # Working test credentials, no need to replace
347
- wirecard:
348
- login: 56500
349
- password: TestXAPTER
350
-
351
- # Working test credentials, no need to replace
352
- merchant_esolutions:
353
- login: "94100008043900000004"
354
- password: "gvQzgKXOTEoDzpzJzROrQQzoKLaEqxjf"
355
-
356
- garanti:
357
- client_id: '100104'
358
- login: 'paymentuser'
359
- password: 'userpayment'
360
-