activemerchant-paymentech-orbital 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ rescue LoadError
17
17
  end
18
18
 
19
19
  require 'rake/testtask'
20
- Rake::TestTask.new(:test) do |test|
20
+ Rake::TestTask.new(:unit) do |test|
21
21
  test.libs << 'test'
22
22
  test.pattern = 'test/units/**/*_test.rb'
23
23
  test.verbose = true
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -1,92 +1,90 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{activemerchant-paymentech-orbital}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["John Corrigan"]
12
- s.date = %q{2010-07-15}
12
+ s.date = %q{2011-05-12}
13
13
  s.description = %q{A gem to provide a ruby interface for Chase Paymentech Orbital payment gateway. It has been development thus far to meet specific ends, so not all functionality is present.}
14
14
  s.email = %q{john@mintdigital.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "activemerchant-paymentech-orbital.gemspec",
27
- "config/gateway.yml.example",
28
- "lib/active_merchant/billing/paymentech_orbital/gateway.rb",
29
- "lib/active_merchant/billing/paymentech_orbital/request.rb",
30
- "lib/active_merchant/billing/paymentech_orbital/request/end_of_day.rb",
31
- "lib/active_merchant/billing/paymentech_orbital/request/new_order.rb",
32
- "lib/active_merchant/billing/paymentech_orbital/request/profile_management.rb",
33
- "lib/active_merchant/billing/paymentech_orbital/request/void.rb",
34
- "lib/active_merchant/billing/paymentech_orbital/response.rb",
35
- "lib/activemerchant-paymentech-orbital.rb",
36
- "test/activemerchant-paymentech-orbital_test.rb",
37
- "test/factories.rb",
38
- "test/mocks/active_merchant/billing/gateway.rb",
39
- "test/options.rb",
40
- "test/remote/auth_capture_test.rb",
41
- "test/remote/auth_test.rb",
42
- "test/remote/existing_profile_test.rb",
43
- "test/remote/profile_test.rb",
44
- "test/remote/recurring_test.rb",
45
- "test/remote/refund_test.rb",
46
- "test/remote/retry_test.rb",
47
- "test/remote_helper.rb",
48
- "test/test_helper.rb",
49
- "test/unit_helper.rb",
50
- "test/units/paymentech_orbital/gateway_test.rb",
51
- "test/units/paymentech_orbital/request/end_of_day_test.rb",
52
- "test/units/paymentech_orbital/request/new_order_test.rb",
53
- "test/units/paymentech_orbital/request/profile_management_test.rb",
54
- "test/units/paymentech_orbital/request/void_test.rb",
55
- "test/units/paymentech_orbital/request_test.rb"
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "activemerchant-paymentech-orbital.gemspec",
26
+ "config/gateway.yml.example",
27
+ "lib/active_merchant/billing/paymentech_orbital/gateway.rb",
28
+ "lib/active_merchant/billing/paymentech_orbital/request.rb",
29
+ "lib/active_merchant/billing/paymentech_orbital/request/end_of_day.rb",
30
+ "lib/active_merchant/billing/paymentech_orbital/request/new_order.rb",
31
+ "lib/active_merchant/billing/paymentech_orbital/request/profile_management.rb",
32
+ "lib/active_merchant/billing/paymentech_orbital/request/void.rb",
33
+ "lib/active_merchant/billing/paymentech_orbital/response.rb",
34
+ "lib/activemerchant-paymentech-orbital.rb",
35
+ "test/activemerchant-paymentech-orbital_test.rb",
36
+ "test/factories.rb",
37
+ "test/mocks/active_merchant/billing/gateway.rb",
38
+ "test/options.rb",
39
+ "test/remote/auth_capture_test.rb",
40
+ "test/remote/auth_test.rb",
41
+ "test/remote/existing_profile_test.rb",
42
+ "test/remote/profile_test.rb",
43
+ "test/remote/recurring_test.rb",
44
+ "test/remote/refund_test.rb",
45
+ "test/remote/retry_test.rb",
46
+ "test/remote_helper.rb",
47
+ "test/test_helper.rb",
48
+ "test/unit_helper.rb",
49
+ "test/units/paymentech_orbital/gateway_test.rb",
50
+ "test/units/paymentech_orbital/request/end_of_day_test.rb",
51
+ "test/units/paymentech_orbital/request/new_order_test.rb",
52
+ "test/units/paymentech_orbital/request/profile_management_test.rb",
53
+ "test/units/paymentech_orbital/request/void_test.rb",
54
+ "test/units/paymentech_orbital/request_test.rb"
56
55
  ]
57
56
  s.homepage = %q{http://github.com/johnideal/activemerchant-paymentech-orbital}
58
- s.rdoc_options = ["--charset=UTF-8"]
59
57
  s.require_paths = ["lib"]
60
- s.rubygems_version = %q{1.3.6}
58
+ s.rubygems_version = %q{1.3.7}
61
59
  s.summary = %q{A gem to provide a ruby interface for Chase Paymentech Orbital payment gateway.}
62
60
  s.test_files = [
63
61
  "test/activemerchant-paymentech-orbital_test.rb",
64
- "test/factories.rb",
65
- "test/mocks/active_merchant/billing/gateway.rb",
66
- "test/options.rb",
67
- "test/remote/auth_capture_test.rb",
68
- "test/remote/auth_test.rb",
69
- "test/remote/existing_profile_test.rb",
70
- "test/remote/profile_test.rb",
71
- "test/remote/recurring_test.rb",
72
- "test/remote/refund_test.rb",
73
- "test/remote/retry_test.rb",
74
- "test/remote_helper.rb",
75
- "test/test_helper.rb",
76
- "test/unit_helper.rb",
77
- "test/units/paymentech_orbital/gateway_test.rb",
78
- "test/units/paymentech_orbital/request/end_of_day_test.rb",
79
- "test/units/paymentech_orbital/request/new_order_test.rb",
80
- "test/units/paymentech_orbital/request/profile_management_test.rb",
81
- "test/units/paymentech_orbital/request/void_test.rb",
82
- "test/units/paymentech_orbital/request_test.rb"
62
+ "test/factories.rb",
63
+ "test/mocks/active_merchant/billing/gateway.rb",
64
+ "test/options.rb",
65
+ "test/remote/auth_capture_test.rb",
66
+ "test/remote/auth_test.rb",
67
+ "test/remote/existing_profile_test.rb",
68
+ "test/remote/profile_test.rb",
69
+ "test/remote/recurring_test.rb",
70
+ "test/remote/refund_test.rb",
71
+ "test/remote/retry_test.rb",
72
+ "test/remote_helper.rb",
73
+ "test/test_helper.rb",
74
+ "test/unit_helper.rb",
75
+ "test/units/paymentech_orbital/gateway_test.rb",
76
+ "test/units/paymentech_orbital/request/end_of_day_test.rb",
77
+ "test/units/paymentech_orbital/request/new_order_test.rb",
78
+ "test/units/paymentech_orbital/request/profile_management_test.rb",
79
+ "test/units/paymentech_orbital/request/void_test.rb",
80
+ "test/units/paymentech_orbital/request_test.rb"
83
81
  ]
84
82
 
85
83
  if s.respond_to? :specification_version then
86
84
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
87
85
  s.specification_version = 3
88
86
 
89
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
87
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
90
88
  s.add_runtime_dependency(%q<activemerchant>, ["= 1.4.2"])
91
89
  else
92
90
  s.add_dependency(%q<activemerchant>, ["= 1.4.2"])
@@ -6,9 +6,9 @@ module ActiveMerchant #:nodoc:
6
6
 
7
7
  self.urls = {
8
8
  :test => [
9
- 'https://orbitalvar1.paymentech.net/authorize',
9
+ 'https://orbitalvar1.paymentech.net/authorize',
10
10
  'https://orbitalvar2.paymentech.net/authorize'
11
- ],
11
+ ],
12
12
  :live => [
13
13
  'https://orbital1.paymentech.net/authorize',
14
14
  'https://orbital2.paymentech.net/authorize'
@@ -37,7 +37,7 @@ module ActiveMerchant #:nodoc:
37
37
  # Headers
38
38
  self.headers = {
39
39
  "MIME-Version" => "1.0",
40
- "Content-Type" => "Application/PTI46",
40
+ "Content-Type" => "Application/PTI51",
41
41
  "Content-transfer-encoding" => "text",
42
42
  "Request-number" => "1",
43
43
  "Document-type" => "Request"
@@ -48,7 +48,7 @@ module ActiveMerchant #:nodoc:
48
48
  def initialize(options = {})
49
49
  requires!(options, :login, :password, :merchant_id, :bin, :terminal_id)
50
50
  @options = options.merge({
51
- :currency_code => self.class.currency_code,
51
+ :currency_code => self.class.currency_code,
52
52
  :currency_exponent => self.class.currency_exponent
53
53
  })
54
54
  super
@@ -89,7 +89,7 @@ module ActiveMerchant #:nodoc:
89
89
 
90
90
  commit('end of day', @request)
91
91
  end
92
-
92
+
93
93
  def to_a
94
94
  request.to_a + response.to_a
95
95
  end
@@ -14,60 +14,17 @@ require 'remote_helper'
14
14
  class AuthCaptureTest < Test::Unit::TestCase
15
15
  context "Auth/Capture" do
16
16
  setup do
17
+ ActiveMerchant::Billing::PaymentechOrbital::Gateway.currency_code = "978"
17
18
  @gateway = remote_gateway
18
19
  @address = Options(:billing_address)
19
20
  end
20
21
 
21
- context "with amex" do
22
- setup do
23
- @credit_card = Factory(:amex)
24
- @response = @gateway.purchase(100, @credit_card, {
25
- :address => @address,
26
- :order_id => @@order_id,
27
- :soft_descriptors => {
28
- :merchant_name => 'Bitbop',
29
- :merchant_url => 'bitbop.com'
30
- }
31
- })
32
- end
33
-
34
- should "be successful" do
35
- assert @response.success?, "should be successful overall"
36
- assert @response.approved?, "should be approved"
37
- assert @response.profile_proc_success?, "should save profile"
38
- end
39
- end
40
-
41
- context "with discover" do
42
- setup do
43
- @credit_card = Factory(:discover)
44
- @response = @gateway.purchase(100, @credit_card, {
45
- :address => @address,
46
- :order_id => @@order_id,
47
- :soft_descriptors => {
48
- :merchant_name => 'Bitbop',
49
- :merchant_url => 'bitbop.com'
50
- }
51
- })
52
- end
53
-
54
- should "be successful" do
55
- assert @response.success?, "should be successful overall"
56
- assert @response.approved?, "should be approved"
57
- assert @response.profile_proc_success?, "should save profile"
58
- end
59
- end
60
-
61
22
  context "with mastercard" do
62
23
  setup do
63
24
  @credit_card = Factory(:master_card)
64
25
  @response = @gateway.purchase(100, @credit_card, {
65
26
  :address => @address,
66
- :order_id => @@order_id,
67
- :soft_descriptors => {
68
- :merchant_name => 'Bitbop',
69
- :merchant_url => 'bitbop.com'
70
- }
27
+ :order_id => @@order_id
71
28
  })
72
29
  end
73
30
 
@@ -83,11 +40,7 @@ class AuthCaptureTest < Test::Unit::TestCase
83
40
  @credit_card = Factory(:visa)
84
41
  @response = @gateway.purchase(100, @credit_card, {
85
42
  :address => @address,
86
- :order_id => @@order_id,
87
- :soft_descriptors => {
88
- :merchant_name => 'Bitbop',
89
- :merchant_url => 'bitbop.com'
90
- }
43
+ :order_id => @@order_id
91
44
  })
92
45
  end
93
46
 
@@ -3,6 +3,7 @@ require 'remote_helper'
3
3
  class AuthTest < Test::Unit::TestCase
4
4
  context "Auth" do
5
5
  setup do
6
+ ActiveMerchant::Billing::PaymentechOrbital::Gateway.currency_code = "978"
6
7
  @gateway = remote_gateway
7
8
  @address = Options(:billing_address)
8
9
  end
@@ -11,70 +11,9 @@ require 'remote_helper'
11
11
  # Void the above
12
12
 
13
13
  class ProfileTest < Test::Unit::TestCase
14
- context "With an amex" do
15
- setup do
16
- @gateway = remote_gateway
17
- @address = Options(:billing_address)
18
- @credit_card = Factory(:amex)
19
- @create_response = @gateway.profile(:create, @credit_card, {
20
- :address => @address
21
- })
22
- @customer_ref_num = @create_response.customer_ref_num
23
- end
24
-
25
- should "perform an auth/capture then void it" do
26
- @purchase_response = @gateway.purchase(100, nil, {
27
- :customer_ref_num => @customer_ref_num,
28
- :order_id => @@order_id
29
- })
30
-
31
- assert @purchase_response.success?, "should be successful overall"
32
- assert @purchase_response.approved?, "should be approved"
33
- assert @purchase_response.profile_proc_success?, "should save profile"
34
-
35
- @@csv << @gateway.to_a
36
-
37
- @void_response = @gateway.void(@purchase_response.tx_ref_num, @purchase_response.tx_ref_idx, nil, {
38
- :order_id => @@order_id
39
- })
40
-
41
- assert @void_response.success?, "should be successful overall"
42
- end
43
- end
44
-
45
- context "With a discover" do
46
- setup do
47
- @gateway = remote_gateway
48
- @address = Options(:billing_address)
49
- @credit_card = Factory(:discover)
50
- @create_response = @gateway.profile(:create, @credit_card, {
51
- :address => @address
52
- })
53
- @customer_ref_num = @create_response.customer_ref_num
54
- end
55
-
56
- should "perform an auth/capture then void it" do
57
- @purchase_response = @gateway.purchase(100, nil, {
58
- :customer_ref_num => @customer_ref_num,
59
- :order_id => @@order_id
60
- })
61
-
62
- assert @purchase_response.success?, "should be successful overall"
63
- assert @purchase_response.approved?, "should be approved"
64
- assert @purchase_response.profile_proc_success?, "should save profile"
65
-
66
- @@csv << @gateway.to_a
67
-
68
- @void_response = @gateway.void(@purchase_response.tx_ref_num, @purchase_response.tx_ref_idx, nil, {
69
- :order_id => @@order_id
70
- })
71
-
72
- assert @void_response.success?, "should be successful overall"
73
- end
74
- end
75
-
76
14
  context "With a master_card" do
77
15
  setup do
16
+ ActiveMerchant::Billing::PaymentechOrbital::Gateway.currency_code = "978"
78
17
  @gateway = remote_gateway
79
18
  @address = Options(:billing_address)
80
19
  @credit_card = Factory(:master_card)
@@ -83,7 +22,7 @@ class ProfileTest < Test::Unit::TestCase
83
22
  })
84
23
  @customer_ref_num = @create_response.customer_ref_num
85
24
  end
86
-
25
+
87
26
  should "perform an auth/capture then void it" do
88
27
  @purchase_response = @gateway.purchase(100, nil, {
89
28
  :customer_ref_num => @customer_ref_num,
@@ -106,6 +45,7 @@ class ProfileTest < Test::Unit::TestCase
106
45
 
107
46
  context "With a visa" do
108
47
  setup do
48
+ ActiveMerchant::Billing::PaymentechOrbital::Gateway.currency_code = "978"
109
49
  @gateway = remote_gateway
110
50
  @address = Options(:billing_address)
111
51
  @credit_card = Factory(:visa)
@@ -114,7 +54,7 @@ class ProfileTest < Test::Unit::TestCase
114
54
  })
115
55
  @customer_ref_num = @create_response.customer_ref_num
116
56
  end
117
-
57
+
118
58
  should "perform an auth/capture then void it" do
119
59
  @purchase_response = @gateway.purchase(100, nil, {
120
60
  :customer_ref_num => @customer_ref_num,
@@ -5,6 +5,7 @@ require 'remote_helper'
5
5
  class ProfileTest < Test::Unit::TestCase
6
6
  context "Profile CRUD" do
7
7
  setup do
8
+ ActiveMerchant::Billing::PaymentechOrbital::Gateway.currency_code = "978"
8
9
  @gateway = remote_gateway
9
10
  @address = Options(:billing_address)
10
11
  @credit_card = Factory(:visa)
@@ -16,11 +17,11 @@ class ProfileTest < Test::Unit::TestCase
16
17
  :order_default_amount => 100,
17
18
  :customer_account_type => "CC",
18
19
  :mb_type => "R",
19
- :mb_recurring_start_date => "12122010",
20
+ :mb_order_id_generation_method => "IO",
21
+ :mb_recurring_start_date => "06122011",
20
22
  :mb_recurring_no_end_date_flag => "Y",
21
23
  :mb_recurring_frequency => "12 * ?"
22
24
  })
23
-
24
25
  assert @create_response.success?, "should be successful overall"
25
26
  assert @create_response.profile_proc_success?, "should save profile"
26
27
  end
@@ -13,6 +13,7 @@ class RecurringTest < Test::Unit::TestCase
13
13
 
14
14
  context "Recurring" do
15
15
  setup do
16
+ ActiveMerchant::Billing::PaymentechOrbital::Gateway.currency_code = "978"
16
17
  @gateway = remote_gateway
17
18
  @address = Options(:billing_address)
18
19
  @credit_card = Factory(:visa)
@@ -34,14 +35,14 @@ class RecurringTest < Test::Unit::TestCase
34
35
  })
35
36
  assert @purchase.success?
36
37
  @@csv << @gateway.to_a
37
-
38
+
38
39
  @read_response = @gateway.profile(:retrieve, nil, {
39
40
  :customer_ref_num => @purchase.customer_ref_num
40
41
  })
41
-
42
+
42
43
  assert_equal @recurring_start_date, @read_response.mb_recurring_start_date
43
44
  end
44
-
45
+
45
46
  should "remove mb info from a profile" do
46
47
  @@csv << []
47
48
  @@csv << ["Removing mb info from a profile."]
@@ -59,13 +60,13 @@ class RecurringTest < Test::Unit::TestCase
59
60
  assert @purchase.success?
60
61
  @@csv << @gateway.to_a
61
62
  @customer_ref_num = @purchase.customer_ref_num
62
-
63
+
63
64
  @read_response = @gateway.profile(:retrieve, nil, {
64
65
  :customer_ref_num => @customer_ref_num
65
66
  })
66
67
  assert @read_response.success?
67
68
  assert_equal @recurring_start_date, @read_response.mb_recurring_start_date
68
-
69
+
69
70
  @update_response = @gateway.profile(:update, nil, {
70
71
  :customer_ref_num => @customer_ref_num,
71
72
  :mb_remove_flag => "Y",
@@ -97,7 +98,7 @@ class RecurringTest < Test::Unit::TestCase
97
98
  @@csv << @gateway.to_a
98
99
  assert @purchase.success?
99
100
  @customer_ref_num = @purchase.customer_ref_num
100
-
101
+
101
102
  @read_response = @gateway.profile(:retrieve, nil, {
102
103
  :customer_ref_num => @customer_ref_num
103
104
  })
@@ -114,9 +115,10 @@ class RecurringTest < Test::Unit::TestCase
114
115
  @@csv << @gateway.to_a
115
116
  assert @remove_response.success?
116
117
 
117
- @recurring_end_date = "12#{(Date.today + 7).strftime("%d")}2010"
118
+ @recurring_end_date = "12#{(Date.today + 7).strftime("%d")}2011"
118
119
  @update_response = @gateway.profile(:update, nil, {
119
120
  :customer_ref_num => @customer_ref_num,
121
+ :mb_order_id_generation_method => "IO",
120
122
  :mb_recurring_end_date => @recurring_end_date,
121
123
  :mb_recurring_frequency => "#{(Date.today + 7).strftime("%d")} * ?",
122
124
  :mb_recurring_start_date => (Date.today + 7).strftime("%m%d%Y"),
@@ -133,28 +135,30 @@ class RecurringTest < Test::Unit::TestCase
133
135
  assert_equal @recurring_end_date, @updated_response.mb_recurring_end_date
134
136
  end
135
137
 
136
- should "update cancel date" do
137
- @@csv << []
138
- @@csv << ["Cancelling a future, scheduled payment."]
138
+ #should "update cancel date" do
139
+ # @@csv << []
140
+ # @@csv << ["Cancelling a future, scheduled payment."]
139
141
 
140
- @customer_ref_num = "3461056"
141
- @read_response = @gateway.profile(:retrieve, nil, {
142
- :customer_ref_num => @customer_ref_num,
143
- :mb_type => "R"
144
- })
145
-
146
- @update_response = @gateway.profile(:update, nil, {
147
- :customer_ref_num => @customer_ref_num,
148
- :mb_cancel_date => "09132011",
149
- :mb_type => "R"
150
- })
151
- @@csv << @gateway.to_a
152
- assert @update_response.success?
153
-
154
- @updated_profile = @gateway.profile(:retrieve, nil, {
155
- :customer_ref_num => @customer_ref_num
156
- })
157
- assert @updated_profile.success?
158
- end
142
+ # @customer_ref_num = "3461056"
143
+ # @read_response = @gateway.profile(:retrieve, nil, {
144
+ # :customer_ref_num => @customer_ref_num,
145
+ # :mb_type => "R"
146
+ # })
147
+
148
+ # @update_response = @gateway.profile(:update, nil, {
149
+ # :customer_ref_num => @customer_ref_num,
150
+ # :mb_cancel_date => "09132011",
151
+ # :mb_type => "R"
152
+ # })
153
+ # puts @gateway.request.to_xml
154
+ # puts @update_response.to_xml
155
+ # @@csv << @gateway.to_a
156
+ # assert @update_response.success?
157
+
158
+ # @updated_profile = @gateway.profile(:retrieve, nil, {
159
+ # :customer_ref_num => @customer_ref_num
160
+ # })
161
+ # assert @updated_profile.success?
162
+ #end
159
163
  end
160
164
  end
@@ -3,49 +3,11 @@ require 'remote_helper'
3
3
  class RefundTest < Test::Unit::TestCase
4
4
  context "Refund" do
5
5
  setup do
6
+ ActiveMerchant::Billing::PaymentechOrbital::Gateway.currency_code = "978"
6
7
  @gateway = remote_gateway
7
8
  @address = Options(:billing_address)
8
9
  end
9
10
 
10
- context "with amex" do
11
- setup do
12
- @credit_card = Factory(:amex)
13
- @profile = @gateway.profile(:create, @credit_card, {
14
- :address => @address
15
- })
16
-
17
- @response = @gateway.refund(999, nil, {
18
- :customer_ref_num => @profile.customer_ref_num,
19
- :order_id => @@order_id
20
- })
21
- end
22
-
23
- should "be successful" do
24
- assert @response.success?, "should be successful overall"
25
- assert @response.approved?, "should be approved"
26
- assert @response.profile_proc_success?, "should save profile"
27
- end
28
- end
29
-
30
- context "with discover" do
31
- setup do
32
- @credit_card = Factory(:discover)
33
- @profile = @gateway.profile(:create, @credit_card, {
34
- :address => @address
35
- })
36
- @response = @gateway.refund(999, nil, {
37
- :customer_ref_num => @profile.customer_ref_num,
38
- :order_id => @@order_id
39
- })
40
- end
41
-
42
- should "be successful" do
43
- assert @response.success?, "should be successful overall"
44
- assert @response.approved?, "should be approved"
45
- assert @response.profile_proc_success?, "should save profile"
46
- end
47
- end
48
-
49
11
  context "with master_card" do
50
12
  setup do
51
13
  @credit_card = Factory(:master_card)
@@ -7,9 +7,10 @@ require 'remote_helper'
7
7
 
8
8
  class RetryTest < Test::Unit::TestCase
9
9
  def teardown; end
10
-
10
+
11
11
  context "With a visa" do
12
12
  setup do
13
+ ActiveMerchant::Billing::PaymentechOrbital::Gateway.currency_code = "978"
13
14
  @gateway = remote_gateway
14
15
  @address = Options(:billing_address)
15
16
  @credit_card = Factory(:visa)
@@ -7,6 +7,8 @@ require 'shoulda'
7
7
  require 'factory_girl'
8
8
  require 'rr'
9
9
 
10
+ require 'factories'
11
+
10
12
  ActiveMerchant::Billing::Base.mode = :test
11
13
 
12
14
  class Test::Unit::TestCase
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemerchant-paymentech-orbital
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 31
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 3
9
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
10
11
  platform: ruby
11
12
  authors:
12
13
  - John Corrigan
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-07-15 00:00:00 -04:00
18
+ date: 2011-05-12 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: activemerchant
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - "="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 1
29
32
  - 4
@@ -42,7 +45,6 @@ extra_rdoc_files:
42
45
  - README.rdoc
43
46
  files:
44
47
  - .document
45
- - .gitignore
46
48
  - LICENSE
47
49
  - README.rdoc
48
50
  - Rakefile
@@ -82,28 +84,32 @@ homepage: http://github.com/johnideal/activemerchant-paymentech-orbital
82
84
  licenses: []
83
85
 
84
86
  post_install_message:
85
- rdoc_options:
86
- - --charset=UTF-8
87
+ rdoc_options: []
88
+
87
89
  require_paths:
88
90
  - lib
89
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
+ none: false
90
93
  requirements:
91
94
  - - ">="
92
95
  - !ruby/object:Gem::Version
96
+ hash: 3
93
97
  segments:
94
98
  - 0
95
99
  version: "0"
96
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
+ none: false
97
102
  requirements:
98
103
  - - ">="
99
104
  - !ruby/object:Gem::Version
105
+ hash: 3
100
106
  segments:
101
107
  - 0
102
108
  version: "0"
103
109
  requirements: []
104
110
 
105
111
  rubyforge_project:
106
- rubygems_version: 1.3.6
112
+ rubygems_version: 1.3.7
107
113
  signing_key:
108
114
  specification_version: 3
109
115
  summary: A gem to provide a ruby interface for Chase Paymentech Orbital payment gateway.
data/.gitignore DELETED
@@ -1,7 +0,0 @@
1
- *.sw?
2
- .DS_Store
3
- certification.csv
4
- config/gateway.yml
5
- coverage
6
- pkg
7
- rdoc