workarea-forter 1.2.2 → 1.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8677c1ba833efc27b03b9268a5b3fec4c1ec08e489e7129b1a4cd06e4b2a80b1
4
- data.tar.gz: 10b6c5bb01c38a7b24c2d255f03100dc5685169a2f7caaecda03d8935bb606d8
3
+ metadata.gz: ca3dfe4d3b7803e1d9c76644c4df4f50b6dea205349b220d38f010160970fda6
4
+ data.tar.gz: b562e2893713a08e9ebc878f55cf7a503b8702c1377627a5cab3ab6e3aaed9d7
5
5
  SHA512:
6
- metadata.gz: 0bc6361719646f98994bdee5bdbe868becb86bd45d3cc28a2997a02dbfffeb609e77c2bc810c61c836b39eda7acbf03cf96c72497dd01f7b6e5ed635b5dfb469
7
- data.tar.gz: e3a963a6e9155da34bfeee2bfcca89ca2603e8e8895dad5978b86033f23a3f109e2414a22c348ca58f9e238d6d75a42ce2367ea0d98712e4be1fd346fa29010d
6
+ metadata.gz: 831c1bc85896e8ff76b8b3b53c0566081c0aba02af58dc3153490489d282a3c37a93e170d6d62b04edf10e302ec209092d4067f13891404c346ed3ac9706505c
7
+ data.tar.gz: c705e20608fdd0046ffc269e094725971f0ad28ae93a7caf79a7b4d47eba85e25addf41f37ac4a576a57885cd26224016151c73ccde9344aba8bcc9516c4e965
@@ -0,0 +1,35 @@
1
+ {
2
+ "extends": "eslint:recommended",
3
+ "rules": {
4
+ "semi": ["error", "always"],
5
+ "eqeqeq": ["error", "always"]
6
+ },
7
+ "globals": {
8
+ "window": true,
9
+ "document": true,
10
+ "WORKAREA": true,
11
+ "$": true,
12
+ "jQuery": true,
13
+ "_": true,
14
+ "feature": true,
15
+ "JST": true,
16
+ "Turbolinks": true,
17
+ "I18n": true,
18
+ "Chart": true,
19
+ "Dropzone": true,
20
+ "strftime": true,
21
+ "Waypoint": true,
22
+ "wysihtml": true,
23
+ "LocalTime": true,
24
+ "describe": true,
25
+ "after": true,
26
+ "afterEach": true,
27
+ "before": true,
28
+ "beforeEach": true,
29
+ "it": true,
30
+ "expect": true,
31
+ "sinon": true,
32
+ "fixture": true,
33
+ "chai": true
34
+ }
35
+ }
@@ -0,0 +1,54 @@
1
+ name: CI
2
+ on: [push]
3
+
4
+ jobs:
5
+ static_analysis:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v1
9
+ - uses: workarea-commerce/ci/bundler-audit@v1
10
+ - uses: workarea-commerce/ci/rubocop@v1
11
+
12
+ admin_tests:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v1
16
+ - uses: actions/setup-ruby@v1
17
+ with:
18
+ ruby-version: 2.6.x
19
+ - uses: workarea-commerce/ci/test@v1
20
+ with:
21
+ command: bin/rails app:workarea:test:admin
22
+
23
+ core_tests:
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v1
27
+ - uses: actions/setup-ruby@v1
28
+ with:
29
+ ruby-version: 2.6.x
30
+ - uses: workarea-commerce/ci/test@v1
31
+ with:
32
+ command: bin/rails app:workarea:test:core
33
+
34
+ storefront_tests:
35
+ runs-on: ubuntu-latest
36
+ steps:
37
+ - uses: actions/checkout@v1
38
+ - uses: actions/setup-ruby@v1
39
+ with:
40
+ ruby-version: 2.6.x
41
+ - uses: workarea-commerce/ci/test@v1
42
+ with:
43
+ command: bin/rails app:workarea:test:storefront
44
+
45
+ plugins_tests:
46
+ runs-on: ubuntu-latest
47
+ steps:
48
+ - uses: actions/checkout@v1
49
+ - uses: actions/setup-ruby@v1
50
+ with:
51
+ ruby-version: 2.6.x
52
+ - uses: workarea-commerce/ci/test@v1
53
+ with:
54
+ command: bin/rails app:workarea:test:plugins
@@ -0,0 +1,3 @@
1
+ inherit_from:
2
+ - https://raw.githubusercontent.com/workarea-commerce/workarea/master/.rubocop.yml
3
+
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "stylelint-config-recommended-scss",
3
+ "rules": {
4
+ "block-no-empty": null,
5
+ "no-descending-specificity": null,
6
+ "property-no-unknown": [true, { "ignoreProperties": ["mso-hide"] }]
7
+ }
8
+ }
@@ -1,3 +1,8 @@
1
+ Workarea Forter 1.2.3 (2019-09-17)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Fix integration test name
5
+
1
6
  Workarea Forter 1.2.2 (2019-08-21)
2
7
  --------------------------------------------------------------------------------
3
8
 
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
- git_source(:github) { |repo| "git@github.com:#{repo}.git" }
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
3
 
4
4
  gemspec
5
5
 
@@ -20,6 +20,6 @@ group :test do
20
20
  when 'cyber_source'
21
21
  gem 'workarea-cyber_source'
22
22
  when 'checkoutdotcom'
23
- gem 'workarea-checkoutdotcom'
23
+ gem 'workarea-checkoutdotcom', source: 'https://gems.weblinc.com'
24
24
  end
25
25
  end
@@ -2,7 +2,6 @@ module Workarea
2
2
  module Forter
3
3
  module Tender
4
4
  class Paypal
5
-
6
5
  class PaypalDependencyError < StandardError; end
7
6
  attr_reader :tender, :options
8
7
 
@@ -1,7 +1,6 @@
1
1
  module Workarea
2
2
  module Forter
3
3
  class Gateway
4
-
5
4
  attr_reader :options
6
5
 
7
6
  def initialize(options = {})
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module Forter
3
- VERSION = "1.2.2"
3
+ VERSION = "1.2.3"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  module Workarea
4
- class ForterAuthorizeCimResponseCodeIntegrationTest < Workarea::IntegrationTest
4
+ class ForterCheckoutdotcomIntegrationTest < Workarea::IntegrationTest
5
5
  if Workarea::Plugin.installed?(:Checkoutdotcom)
6
6
  include ForterApiConfig
7
7
  include CheckoutdotcomGatewayVCRConfig
@@ -3,7 +3,6 @@ require 'test_helper'
3
3
  module Workarea
4
4
  module Storefront
5
5
  class ForterIntegrationTest < Workarea::IntegrationTest
6
-
7
6
  def test_decision_approved
8
7
  complete_checkout("approved@workarea.com", 'W3blinc1')
9
8
 
@@ -2,7 +2,6 @@ require 'test_helper'
2
2
 
3
3
  module Workarea
4
4
  class ForterPaymentTest < TestCase
5
-
6
5
  def response
7
6
  ActiveMerchant::Billing::Response.new(
8
7
  true,
@@ -2,7 +2,6 @@ require 'test_helper'
2
2
  module Workarea
3
3
  class Payment
4
4
  class ForterCreditCardTest < TestCase
5
-
6
5
  def credit_card
7
6
  @credit_card ||= Workarea::Payment::Tender::CreditCard.new
8
7
  end
@@ -3,7 +3,6 @@ require 'test_helper'
3
3
  module Workarea
4
4
  module Storefront
5
5
  class ForterTrackingSystemTest < Workarea::SystemTest
6
-
7
6
  def test_forter_tracking_js
8
7
  Workarea.with_config do |config|
9
8
  config.forter.site_id = "abcdefg"
@@ -2,16 +2,16 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.checkout.com/api2/v2/charges/card
5
+ uri: https://api.sandbox.checkout.com/payments
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"autoCapture":"n","value":"0","trackId":null,"currency":"USD","descriptor":{},"card":{"name":"Ben
9
- Crouse","number":"4242424242424242","cvv":100,"expiryYear":"2020","expiryMonth":"01"},"email":"user@workarea.com","transactionIndicator":1}'
8
+ string: '{"capture":false,"amount":"0","reference":null,"currency":"USD","metadata":{"udf5":"ActiveMerchant"},"source":{"type":"card","name":"Ben
9
+ Crouse","number":"4242424242424242","cvv":100,"expiry_year":"2020","expiry_month":"01"},"customer":{"email":"user@workarea.com"}}'
10
10
  headers:
11
11
  Content-Type:
12
12
  - application/json;charset=UTF-8
13
13
  Authorization:
14
- - sk_test_c4a2323c-3e03-4c02-9988-2906f466b8b5
14
+ - sk_test_f4c1d728-928c-4381-bc6b-03c0888fb877
15
15
  Connection:
16
16
  - close
17
17
  Accept-Encoding:
@@ -22,31 +22,27 @@ http_interactions:
22
22
  - Ruby
23
23
  response:
24
24
  status:
25
- code: 200
26
- message: OK
25
+ code: 201
26
+ message: Created
27
27
  headers:
28
- Date:
29
- - Thu, 28 Mar 2019 15:26:39 GMT
30
- Content-Type:
31
- - application/json; charset=utf-8
32
- Content-Length:
33
- - '1055'
34
- Connection:
35
- - close
36
- Server:
37
- - Reblaze Secure Web Gateway
38
28
  Cache-Control:
39
29
  - no-cache
40
30
  Pragma:
41
31
  - no-cache
32
+ Content-Length:
33
+ - '1166'
34
+ Content-Type:
35
+ - application/json; charset=utf-8
42
36
  Expires:
43
37
  - "-1"
38
+ Location:
39
+ - https://api.sandbox.checkout.com/payments/pay_fgnnndfiyquunaubppr3jxfofq
44
40
  Product:
45
41
  - Gateway
46
- Version:
47
- - 3.27.4
48
- Request-Id:
49
- - 00c71b32-36fd-46df-b2b2-bfe75f026eda
42
+ Cko-Version:
43
+ - 3.31.11
44
+ Cko-Request-Id:
45
+ - 510824d8-13d6-4fcf-b3f8-85aacafede04
50
46
  Access-Control-Allow-Origin:
51
47
  - "*"
52
48
  Access-Control-Allow-Headers:
@@ -57,24 +53,32 @@ http_interactions:
57
53
  - OPTIONS,POST,GET,PUT,DELETE
58
54
  Access-Control-Request-Headers:
59
55
  - authorization
56
+ Date:
57
+ - Tue, 10 Sep 2019 18:10:46 GMT
58
+ Connection:
59
+ - close
60
60
  body:
61
61
  encoding: UTF-8
62
- string: '{"id":"charge_test_1E1819BE842N65FA5FE4","liveMode":false,"created":"2019-03-28T15:26:37Z","value":0,"currency":"USD","trackId":null,"description":null,"email":"user@workarea.com","chargeMode":1,"transactionIndicator":1,"customerIp":null,"responseMessage":"Approved","responseAdvancedInfo":"Approved","responseCode":"10000","status":"Card
63
- Verified","authCode":"574647","isCascaded":false,"autoCapture":"N","autoCapTime":0.0,"card":{"customerId":"cust_6E3774DC-51F9-492A-A442-ADB96774DA78","expiryMonth":"01","expiryYear":"2020","billingDetails":null,"id":"card_EDD286C1-E6C8-4466-84A8-BE7062007D77","last4":"4242","bin":"424242","paymentMethod":"Visa","fingerprint":"A24ADA27CDDFF03B3607A0E4EA30E189F84B198ABDB346E39C3619982E7474AD","name":"Ben
64
- Crouse","cvvCheck":"Y","avsCheck":"S"},"riskCheck":true,"customerPaymentPlans":null,"metadata":{},"shippingDetails":{"addressLine1":null,"addressLine2":null,"postcode":null,"country":null,"city":null,"state":null,"phone":{}},"products":[],"udf1":null,"udf2":null,"udf3":null,"udf4":null,"udf5":null,"eci":"05"}'
62
+ string: '{"id":"pay_fgnnndfiyquunaubppr3jxfofq","action_id":"act_fgnnndfiyquunaubppr3jxfofq","amount":0,"currency":"USD","approved":true,"status":"Card
63
+ Verified","auth_code":"085870","eci":"05","scheme_id":"638500575273231","response_code":"10000","response_summary":"Approved","risk":{"flagged":false},"source":{"id":"src_22walxx34p4utlilnus4rlm4l4","type":"card","expiry_month":1,"expiry_year":2020,"name":"Ben
64
+ Crouse","scheme":"Visa","last4":"4242","fingerprint":"A24ADA27CDDFF03B3607A0E4EA30E189F84B198ABDB346E39C3619982E7474AD","bin":"424242","card_type":"Credit","card_category":"Consumer","issuer":"JPMORGAN
65
+ CHASE BANK NA","issuer_country":"US","product_id":"A","product_type":"Visa
66
+ Traditional","avs_check":"S","cvv_check":"Y"},"customer":{"id":"cus_pc5upvoxfcte5fvqushqkksf7i","email":"user@workarea.com","name":"Ben
67
+ Crouse"},"processed_on":"2019-09-10T18:10:46Z","processing":{"acquirer_transaction_id":"1434678100","retrieval_reference_number":"221719408493"},"_links":{"self":{"href":"https://api.sandbox.checkout.com/payments/pay_fgnnndfiyquunaubppr3jxfofq"},"actions":{"href":"https://api.sandbox.checkout.com/payments/pay_fgnnndfiyquunaubppr3jxfofq/actions"}}}'
65
68
  http_version:
66
- recorded_at: Thu, 28 Mar 2019 15:26:39 GMT
69
+ recorded_at: Tue, 10 Sep 2019 18:10:46 GMT
67
70
  - request:
68
71
  method: post
69
- uri: https://sandbox.checkout.com/api2/v2/charges/card
72
+ uri: https://api.sandbox.checkout.com/payments
70
73
  body:
71
74
  encoding: UTF-8
72
- string: '{"autoCapture":"n","value":"500","trackId":"593E2B5D40","currency":"USD","descriptor":{},"cardId":"card_EDD286C1-E6C8-4466-84A8-BE7062007D77","customerId":"cust_6E3774DC-51F9-492A-A442-ADB96774DA78","transactionIndicator":1}'
75
+ string: '{"capture":false,"amount":"500","reference":"2B2EFCF4F1","currency":"USD","metadata":{"udf5":"ActiveMerchant"},"source":{"type":"id","id":"src_22walxx34p4utlilnus4rlm4l4","billing_address":{"address_line1":"22
76
+ s. 3rd st.","city":"Philadelphia","state":"PA","country":"US","zip":"19106"}},"customer":{"email":"user@workarea.com"}}'
73
77
  headers:
74
78
  Content-Type:
75
79
  - application/json;charset=UTF-8
76
80
  Authorization:
77
- - sk_test_c4a2323c-3e03-4c02-9988-2906f466b8b5
81
+ - sk_test_f4c1d728-928c-4381-bc6b-03c0888fb877
78
82
  Connection:
79
83
  - close
80
84
  Accept-Encoding:
@@ -85,31 +89,27 @@ http_interactions:
85
89
  - Ruby
86
90
  response:
87
91
  status:
88
- code: 200
89
- message: OK
92
+ code: 201
93
+ message: Created
90
94
  headers:
91
- Date:
92
- - Thu, 28 Mar 2019 15:26:40 GMT
93
- Content-Type:
94
- - application/json; charset=utf-8
95
- Content-Length:
96
- - '1165'
97
- Connection:
98
- - close
99
- Server:
100
- - Reblaze Secure Web Gateway
101
95
  Cache-Control:
102
96
  - no-cache
103
97
  Pragma:
104
98
  - no-cache
99
+ Content-Length:
100
+ - '1390'
101
+ Content-Type:
102
+ - application/json; charset=utf-8
105
103
  Expires:
106
104
  - "-1"
105
+ Location:
106
+ - https://api.sandbox.checkout.com/payments/pay_z4mhqgzybogudjb4x4jo6tf6ha
107
107
  Product:
108
108
  - Gateway
109
- Version:
110
- - 3.27.4
111
- Request-Id:
112
- - c75e1872-b188-4bba-aa17-0608ffbc4eab
109
+ Cko-Version:
110
+ - 3.31.11
111
+ Cko-Request-Id:
112
+ - ed379e26-63c3-4bf7-af29-b6bda895ee64
113
113
  Access-Control-Allow-Origin:
114
114
  - "*"
115
115
  Access-Control-Allow-Headers:
@@ -120,10 +120,17 @@ http_interactions:
120
120
  - OPTIONS,POST,GET,PUT,DELETE
121
121
  Access-Control-Request-Headers:
122
122
  - authorization
123
+ Date:
124
+ - Tue, 10 Sep 2019 18:10:47 GMT
125
+ Connection:
126
+ - close
123
127
  body:
124
128
  encoding: UTF-8
125
- string: '{"id":"charge_test_196819BE842W65FA5F12","liveMode":false,"created":"2019-03-28T15:26:40Z","value":500,"currency":"USD","trackId":"593E2B5D40","description":null,"email":"user@workarea.com","chargeMode":1,"transactionIndicator":1,"customerIp":null,"responseMessage":"Approved","responseAdvancedInfo":"Approved","responseCode":"10000","status":"Authorised","authCode":"291930","isCascaded":false,"autoCapture":"N","autoCapTime":0.0,"card":{"customerId":"cust_6E3774DC-51F9-492A-A442-ADB96774DA78","expiryMonth":"01","expiryYear":"2020","billingDetails":{"addressLine1":null,"addressLine2":null,"postcode":null,"country":null,"city":null,"state":null,"phone":{}},"id":"card_EDD286C1-E6C8-4466-84A8-BE7062007D77","last4":"4242","bin":"424242","paymentMethod":"Visa","fingerprint":"A24ADA27CDDFF03B3607A0E4EA30E189F84B198ABDB346E39C3619982E7474AD","name":"Ben
126
- Crouse","cvvCheck":"","avsCheck":"S"},"riskCheck":true,"customerPaymentPlans":null,"metadata":{},"shippingDetails":{"addressLine1":null,"addressLine2":null,"postcode":null,"country":null,"city":null,"state":null,"phone":{}},"products":[],"udf1":null,"udf2":null,"udf3":null,"udf4":null,"udf5":null,"eci":"05"}'
129
+ string: '{"id":"pay_z4mhqgzybogudjb4x4jo6tf6ha","action_id":"act_z4mhqgzybogudjb4x4jo6tf6ha","amount":500,"currency":"USD","approved":true,"status":"Authorized","auth_code":"180212","eci":"05","scheme_id":"768193587887811","response_code":"10000","response_summary":"Approved","risk":{"flagged":false},"source":{"id":"src_22walxx34p4utlilnus4rlm4l4","type":"card","expiry_month":1,"expiry_year":2020,"name":"Ben
130
+ Crouse","scheme":"Visa","last4":"4242","fingerprint":"A24ADA27CDDFF03B3607A0E4EA30E189F84B198ABDB346E39C3619982E7474AD","bin":"424242","card_type":"Credit","card_category":"Consumer","issuer":"JPMORGAN
131
+ CHASE BANK NA","issuer_country":"US","product_id":"A","product_type":"Visa
132
+ Traditional","avs_check":"S","cvv_check":"Y"},"customer":{"id":"cus_pc5upvoxfcte5fvqushqkksf7i","email":"user@workarea.com","name":"Ben
133
+ Crouse"},"processed_on":"2019-09-10T18:10:47Z","reference":"2B2EFCF4F1","processing":{"acquirer_transaction_id":"1579683508","retrieval_reference_number":"726563618060"},"_links":{"self":{"href":"https://api.sandbox.checkout.com/payments/pay_z4mhqgzybogudjb4x4jo6tf6ha"},"actions":{"href":"https://api.sandbox.checkout.com/payments/pay_z4mhqgzybogudjb4x4jo6tf6ha/actions"},"capture":{"href":"https://api.sandbox.checkout.com/payments/pay_z4mhqgzybogudjb4x4jo6tf6ha/captures"},"void":{"href":"https://api.sandbox.checkout.com/payments/pay_z4mhqgzybogudjb4x4jo6tf6ha/voids"}}}'
127
134
  http_version:
128
- recorded_at: Thu, 28 Mar 2019 15:26:40 GMT
135
+ recorded_at: Tue, 10 Sep 2019 18:10:47 GMT
129
136
  recorded_with: VCR 2.9.3
@@ -2,7 +2,6 @@ require 'test_helper'
2
2
 
3
3
  module Workarea
4
4
  class Forter::UpdateStatusTest < TestCase
5
-
6
5
  def test_decision_status_update
7
6
  decision = Workarea::Forter::Decision.create(id: '1234')
8
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-forter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Yucis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-22 00:00:00.000000000 Z
11
+ date: 2019-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -52,16 +52,19 @@ extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
54
  - ".editorconfig"
55
+ - ".eslintrc.json"
55
56
  - ".github/ISSUE_TEMPLATE/bug_report.md"
56
57
  - ".github/ISSUE_TEMPLATE/documentation-request.md"
57
58
  - ".github/ISSUE_TEMPLATE/feature_request.md"
59
+ - ".github/workflows/ci.yml"
58
60
  - ".gitignore"
61
+ - ".rubocop.yml"
62
+ - ".stylelintrc.json"
59
63
  - CHANGELOG.md
60
64
  - CODE_OF_CONDUCT.md
61
65
  - CONTRIBUTING.md
62
66
  - Gemfile
63
67
  - LICENSE
64
- - LICENSE.md
65
68
  - README.md
66
69
  - Rakefile
67
70
  - app/controllers/workarea/admin/orders_controller.decorator
@@ -188,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
191
  - !ruby/object:Gem::Version
189
192
  version: '0'
190
193
  requirements: []
191
- rubygems_version: 3.0.4
194
+ rubygems_version: 3.0.6
192
195
  signing_key:
193
196
  specification_version: 4
194
197
  summary: Forter Fraud Protection integration with Workarea
data/LICENSE.md DELETED
@@ -1,3 +0,0 @@
1
- View this plugin's license here:
2
-
3
- <https://github.com/workarea-commerce/workarea/blob/master/LICENSE.md>