workarea-forter 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.eslintrc.json +35 -0
- data/.github/workflows/ci.yml +54 -0
- data/.rubocop.yml +3 -0
- data/.stylelintrc.json +8 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -2
- data/app/services/workarea/forter/tender/paypal.rb +0 -1
- data/lib/workarea/forter/gateway.rb +0 -1
- data/lib/workarea/forter/version.rb +1 -1
- data/test/integration/workarea/forter_checkoutdotcom_integration_test.rb +1 -1
- data/test/integration/workarea/storefront/forter_integration_test.rb +0 -1
- data/test/models/workarea/forter_payment_test.rb +0 -1
- data/test/models/workarea/payment/forter_credit_card_test.rb +0 -1
- data/test/system/workarea/storefront/forter_tracking_system_test.rb +0 -1
- data/test/vcr_cassettes/forter/integration/checkoutdotcom_response_code.yml +53 -46
- data/test/workers/forter/update_status_test.rb +0 -1
- metadata +7 -4
- data/LICENSE.md +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca3dfe4d3b7803e1d9c76644c4df4f50b6dea205349b220d38f010160970fda6
|
4
|
+
data.tar.gz: b562e2893713a08e9ebc878f55cf7a503b8702c1377627a5cab3ab6e3aaed9d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 831c1bc85896e8ff76b8b3b53c0566081c0aba02af58dc3153490489d282a3c37a93e170d6d62b04edf10e302ec209092d4067f13891404c346ed3ac9706505c
|
7
|
+
data.tar.gz: c705e20608fdd0046ffc269e094725971f0ad28ae93a7caf79a7b4d47eba85e25addf41f37ac4a576a57885cd26224016151c73ccde9344aba8bcc9516c4e965
|
data/.eslintrc.json
ADDED
@@ -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
|
data/.rubocop.yml
ADDED
data/.stylelintrc.json
ADDED
data/CHANGELOG.md
CHANGED
@@ -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| "
|
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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
module Workarea
|
4
|
-
class
|
4
|
+
class ForterCheckoutdotcomIntegrationTest < Workarea::IntegrationTest
|
5
5
|
if Workarea::Plugin.installed?(:Checkoutdotcom)
|
6
6
|
include ForterApiConfig
|
7
7
|
include CheckoutdotcomGatewayVCRConfig
|
@@ -2,16 +2,16 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.checkout.com/
|
5
|
+
uri: https://api.sandbox.checkout.com/payments
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"
|
9
|
-
Crouse","number":"4242424242424242","cvv":100,"
|
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
|
-
-
|
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:
|
26
|
-
message:
|
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.
|
48
|
-
Request-Id:
|
49
|
-
-
|
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":"
|
63
|
-
Verified","
|
64
|
-
Crouse","
|
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:
|
69
|
+
recorded_at: Tue, 10 Sep 2019 18:10:46 GMT
|
67
70
|
- request:
|
68
71
|
method: post
|
69
|
-
uri: https://sandbox.checkout.com/
|
72
|
+
uri: https://api.sandbox.checkout.com/payments
|
70
73
|
body:
|
71
74
|
encoding: UTF-8
|
72
|
-
string: '{"
|
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
|
-
-
|
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:
|
89
|
-
message:
|
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.
|
111
|
-
Request-Id:
|
112
|
-
-
|
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":"
|
126
|
-
Crouse","
|
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:
|
135
|
+
recorded_at: Tue, 10 Sep 2019 18:10:47 GMT
|
129
136
|
recorded_with: VCR 2.9.3
|
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.
|
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-
|
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.
|
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