Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master of upstream to Repairshopr #3

Open
wants to merge 447 commits into
base: v1.105.0_rs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
447 commits
Select commit Hold shift + click to select a range
20ba24d
Adyen: Safely add execute_threeds: false
curiousepic Sep 4, 2020
03a81c4
RuboCop: Fix Layout/SpaceAroundEqualsInParameterDefault
leila-alderman Aug 11, 2020
9a6f02a
iATS Payments: Pass email address outside of the billing address scope
naashton Sep 2, 2020
be295c5
Orbital: Don't pass xid for txns using network tokens
britth Sep 9, 2020
09c0523
Forte: Add service_fee_amount field
meagabeth Sep 2, 2020
1648fed
Worldpay: Add Support for Idempotency Key
cdmackeyfree Sep 10, 2020
d21b76d
Orbital: Fix line_tot conditional check
naashton Sep 10, 2020
372c33d
RuboCop: Fix Lint/UnusedMethodArgument
leila-alderman Aug 11, 2020
8b6754c
RuboCop: Fix Naming/MemoizedInstanceVariableName
leila-alderman Aug 11, 2020
623d577
RuboCop: Fix Style/BlockComments
leila-alderman Aug 12, 2020
b917abd
Checkout V2: Move to single-transaction Purchases
curiousepic Sep 11, 2020
b12014d
RuboCop: Fix Naming/ConstantName
leila-alderman Aug 11, 2020
bcb7d1e
Orbital: Fix schema errors
britth Sep 15, 2020
61a7f7f
Checkout V2: Start testing via amount code
curiousepic Sep 15, 2020
57ea8a2
CyberSource: Only include non-nil `mdd_` fields
Sep 9, 2020
65ed8cf
RuboCop: Fix Naming/VariableNumber
leila-alderman Aug 12, 2020
3187833
$0 Auth on Checkout gateway (#3762)
jessiagee Sep 21, 2020
3f63b10
Update Elo BIN Validation
cdmackeyfree Sep 21, 2020
164d7f6
[Paybox Direct] Add support for 3ds 1.0 (#3335)
jcpaybox Sep 24, 2020
a761e01
Orbital: Resolve CardIndicators issue
meagabeth Sep 24, 2020
8801b58
Adyen: Add subMerchant fields
naashton Sep 25, 2020
ef26841
PayPal Express: reduce param requirements
shasum Sep 28, 2020
c7fd2fd
Update changelog
shasum Sep 29, 2020
38285e6
PayU Latam: Support partial refunds
leila-alderman Sep 28, 2020
c7a8903
RuboCop: Fix Style/Alias
leila-alderman Aug 12, 2020
e4edf68
Stripe Payment Intents: `on_behalf_of` can be passed independently (#…
Sep 30, 2020
6d162b0
RuboCop: Fix Performance/RedundantMatch
leila-alderman Sep 14, 2020
a6f2986
RuboCop: Fix Layout/MultilineMethodCallBraceLayout
leila-alderman Sep 14, 2020
3ff5092
NMI: Add standardized 3DS fields.
meagabeth Sep 28, 2020
291ae07
Mundipagg: Add support for SubMerchant fields
meagabeth Oct 2, 2020
ee639d8
Stripe Payment Intents: Add request_three_d_secure option
molbrown Oct 7, 2020
8c811c0
Decidir: Add csmdds gsf for fraud detection
naashton Oct 7, 2020
d104a46
RuboCop: Fix Performance/StringReplacement
leila-alderman Oct 5, 2020
467fb31
RuboCop: Fix Naming/HeredocDelimiterCase & Naming
leila-alderman Oct 5, 2020
b5973c3
Blue Snap: Pass shipping info from the shipping_address params
naashton Oct 1, 2020
90be621
RuboCop: Fix Layout/SpaceInsideHashLiteralBraces
leila-alderman Oct 5, 2020
4d2b3b4
RuboCop: Fix Style/AndOr
leila-alderman Oct 5, 2020
e364bae
Checkout V2: Support ability to pass attempt_n3d 3ds field
naashton Oct 14, 2020
e6b34f8
Elavon: Upgrade to `processxml.do` endpoint
leila-alderman Jul 8, 2020
6e7941c
Update changelog for #3784
therufs Oct 15, 2020
2fc606d
Checkout V2: Support for attempt_n3d 3DS field
naashton Oct 16, 2020
043e8bb
Elavon: remove ampersand character
therufs Oct 16, 2020
212c770
Bump to v1.115.0
Oct 27, 2020
787cf60
Remove Braintree specific version dependency (#3800)
Oct 28, 2020
e8b5d55
Bump to v1.116.0
Oct 28, 2020
04243c6
Checkout V2: Pass attempt_n3d along with 3ds enabled
naashton Oct 30, 2020
4b0b733
GlobalCollect: Add support for Third-party 3DS2 data
molbrown Oct 9, 2020
949b80d
Authorize.net: pass stored credential info
therufs Oct 29, 2020
27ffc12
Authorize.net: Don't pass isFirstSubsequentAuth
therufs Oct 30, 2020
020de57
Litle: Add support for general credit transactions
naashton Oct 30, 2020
3c14156
Redsys: Add 3DS2 Integration Support
esmitperez Oct 6, 2020
c2fe654
Redsys: Add 3DS2 Integration Support
esmitperez Oct 6, 2020
8b42e12
[Cybersource] Use firstname/lastname from the address instead of the …
Nov 2, 2020
e03c9e0
Add MPI functionality for SafeCharge gateway
Aug 21, 2020
87d3e41
SafeCharge: Standardize MPI fields
curiousepic Oct 30, 2020
d439be2
Credorax: Add AMEX to supported cards and add 1A error code
LinTrieu Oct 16, 2020
ed01055
Stripe PI: Pass external 3DS auth data
curiousepic Nov 3, 2020
f6743c4
Credorax: Allow 3DS1 normalized pass-through, ease version matching
britth Nov 4, 2020
a54903d
Redsys: Harden 3DS v1/v2 check for External MPI
esmitperez Nov 6, 2020
89c85af
Stripe, Worldpay, Checkout.com: Add card types
LinTrieu Nov 3, 2020
4688b43
Bump to v1.117.0
Nov 13, 2020
7ad6def
Decidir: Add addtitional fraud detection fields
cdmackeyfree Nov 10, 2020
42fcf53
Worldpay: Add support for challengeWindowSize
Nov 17, 2020
2337122
Correct capitalization for SubmerchantID field on Adyen
cdmackeyfree Nov 17, 2020
839a478
Maestro and Elo: Update BIN ranges
meagabeth Nov 16, 2020
c3e0131
HPS: Truncate invoice numbers that are too long
curiousepic Nov 18, 2020
2b1fcc3
Response: network_transaction_id attribute
therufs Nov 10, 2020
adbea17
Elavon: standardized stored creds framework
therufs Nov 9, 2020
f807109
Litle: Create overridable third URL for PostLive endpoint (#3828)
Nov 19, 2020
1698ebd
Decidir: correct field name for fraud prevention
cdmackeyfree Nov 20, 2020
1915ba5
Revert "Decidir: correct field name for fraud prevention"
cdmackeyfree Nov 20, 2020
94efc9a
Decidir: correct field name for fraud prevention
cdmackeyfree Nov 20, 2020
5528922
Paymentez: Add Serfinanza cardtype
meagabeth Nov 20, 2020
b919143
Paymentez: Revise Serfinanza to be Olimpica card type
meagabeth Nov 23, 2020
53cf444
SafeCharge: 3DS external MPI data refinements
curiousepic Nov 12, 2020
cf0b4f0
Credorax: Add support for 3DS Adviser
meagabeth Nov 9, 2020
7bb8433
Adyen: add subMerchant and subSeller fields
mymir Nov 30, 2020
d1780c8
Maestro: add BINs
therufs Dec 4, 2020
9f33566
Update fraud detection field: device_unique_id on Decidir gateway
cdmackeyfree Dec 7, 2020
af823d0
BraintreeBlue: Add support for account_type field
Dec 8, 2020
d04fba5
Decidir: Update nesting for device_unique_identifier field
cdmackeyfree Dec 9, 2020
e99bf4f
Redsys: Add support for stored_credential
meagabeth Dec 9, 2020
cc21128
Redsys: add_payment method solution
meagabeth Dec 11, 2020
abc50bf
Stripe Payment Intents: Add error_on_requires_action Support
Dec 11, 2020
d43be84
Add 3DS 2.0 values to paypal
dilannebioglu Jul 24, 2019
183e769
Redsys: Update Mpi Fields
Dec 29, 2020
750bf55
Paypal: Update AuthStatus3ds MPI field
curiousepic Dec 31, 2020
4241d0a
Orbital: Update 3DS support for Mastercard
meagabeth Dec 23, 2020
b12d890
Payeezy: support standardized stored credentials
therufs Jan 7, 2021
ef6da72
Replace Travis CI with Github Actions (#3859)
Jan 7, 2021
cd58963
passthrough 3DS for Pin Payments (#3848)
montdidier Jan 8, 2021
09015ff
CyberSource: Update `billing_address` override
meagabeth Jan 7, 2021
ac878c7
Paymentez: Add 3DS MPI field support
Dec 31, 2020
113e472
BlueSnap: Add support `fraud-session-id` field
meagabeth Jan 9, 2021
d46b39f
BlueSnap: Update handling of `transaction-fraud-info` fields
meagabeth Jan 12, 2021
c269b90
Payeezy: Allow no stored credential initiator
therufs Jan 8, 2021
60a8dd1
orbital echeck processing added
ajawadmirza Jan 18, 2021
e6714b3
[Firstdatae427] Fixes some apple pay transaction issues (#3872)
Jan 22, 2021
ada9a4b
Bump to v1.118.0
Jan 22, 2021
33efbf7
Payment Express: support validate/verify
therufs Jan 26, 2021
18101cd
GlobalCollect: Truncate address fields
meagabeth Jan 27, 2021
1c1fd3c
Litle: Truncate address fields
meagabeth Jan 27, 2021
c53aa8b
Decidir: Improve error mapping
meagabeth Jan 26, 2021
9201598
Worldpay: allow purchase without capture
therufs Jan 28, 2021
de874bd
When customers purchase and authorize, we add customer detail informa…
rockyhakjoong Jan 29, 2021
d032acb
Redsys: Add code 0195, fix typo
britth Jan 31, 2021
a5f05a5
Updating add_ecp_details
jessiagee Feb 1, 2021
ab66ac8
Run GitHub Actions CI on PRs (#3884)
Feb 3, 2021
f113101
Alelo: Add additional BIN ranges
meagabeth Feb 2, 2021
9dac2d4
HPS: Add support for general credit
naashton Feb 3, 2021
4f27b89
HPS: Add support for general credit
naashton Feb 3, 2021
0272db0
Elavon: Truncate strings with special characters
naashton Jan 26, 2021
441836a
Updating Orbital ECP requirements
jessiagee Feb 1, 2021
f691865
feat: eway -> add 3ds field when do direct payment (#3860)
GavinSun9527 Feb 9, 2021
b29087d
Add changelog for eway update (#3887)
BranLiang Feb 9, 2021
c0f8928
Support Creditel cardtype
therufs Feb 1, 2021
f8ea50f
Release 1.119.0 (#3888)
BranLiang Feb 10, 2021
a9b59ff
Fix the tests for Gemfile.rails_master (#3889)
BranLiang Feb 10, 2021
1aea217
Ensure `setup_future_sage` and `off_session` work when using SetupInt…
esmitperez Jan 26, 2021
dae04ec
Ensure `setup_future_sage` and `off_session` work when using SetupInt…
esmitperez Jan 26, 2021
281c1b4
Adding retry_logic to params
jessiagee Feb 10, 2021
b5efdb3
Elavon: Remove ampersand char from fields
naashton Feb 12, 2021
0d77f11
Updating remote_orbital_test to use three_ds_gateway
jessiagee Feb 12, 2021
5aab533
Mercado Pago: update tests
therufs Feb 1, 2021
ebda511
Mercado Pago: support Creditel cardtype
therufs Feb 12, 2021
5641fdf
Payeezy: Update error mapping
meagabeth Feb 12, 2021
238751d
Add Support for Stored Credentials on HPS gateway
cdmackeyfree Feb 15, 2021
2c7c895
Orbital: Ensure payment_detail sends for ECP
jessiagee Feb 18, 2021
e1d974c
Payeezy: Update `error_code_from` method
meagabeth Feb 19, 2021
f438767
Worldpay: Add support for `statementNarrative` field
meagabeth Feb 19, 2021
d3502d5
Mercado Pago: Give ability to pass capture option in authroize transa…
naashton Feb 17, 2021
68a90fc
Orbital: Send ECP details with refund
jessiagee Feb 22, 2021
aed8e09
WorldPay: remove some defaults in billing address
Feb 22, 2021
7e76dcb
Adyen: Support for General Credit
naashton Feb 23, 2021
dd0cb46
Worldpay: reintroduce address1 and city defaults
Feb 24, 2021
75a7470
Stripe: ensure potentially nested data is scrubbed
esmitperez Feb 26, 2021
6b088b1
Adjust the avs and cvv return code in shopify (#3833)
rockyhakjoong Feb 26, 2021
f51bd6e
Stripe PI: Send Validate on Payment Method Attach
Mar 1, 2021
19386a2
Adyen: Update handling of authorization returned from gateway
meagabeth Mar 3, 2021
bb8865d
Update gateway skeleton templates
therufs Mar 4, 2021
82bfb02
Send AVSname for all eCheck transactions
jessiagee Mar 4, 2021
3666a56
Correct customer_id field on Litle/Vantiv Gateway
cdmackeyfree Mar 8, 2021
373af99
Payment Express: standardize verify operation
therufs Mar 8, 2021
fc24862
Forte: Send xdata fields
dsmcclain Mar 9, 2021
c0e1e3a
PaywayDotCom: Add New Gateway
DanAtPayway Feb 17, 2021
cb1fdf5
Fix Changelog
Mar 15, 2021
6b5c3b0
Orbital: Remove unnecessary requirements checks
jessiagee Mar 12, 2021
3d7841d
Add network tokenization support for Nuvei (formerly safecharge)
Dec 16, 2020
3de10be
Stripe PI: Enhance testing of SetupIntents API
esmitperez Feb 27, 2021
18e75c2
SafeCharge: Fix nil error for NT flow
Mar 17, 2021
3633283
Worldpay: Only override cardholdername for 3ds tests
curiousepic Mar 15, 2021
aab2dca
Orbital: Add support for general credit
meagabeth Mar 17, 2021
9b20c4d
Banco Sabadell: Ensure sca_exemption field is used
esmitperez Mar 18, 2021
af85869
Redsys: Refactor XML character escape logic
esmitperez Mar 21, 2021
48f5ad2
HPS: Strip zip codes of non-alphanumeric characters
dsmcclain Mar 19, 2021
ca47cef
Orbital: $0 PreNote authorize & ECP force_capture
jessiagee Mar 22, 2021
ad161db
Worldpay: synchronous response changes
naashton Mar 17, 2021
8d0240a
PaywayDotCom: Improve Scrubbing
Mar 23, 2021
5cd3b13
Remove `CONTRIBUTING.md`, update links in `README.md` to point to wiki
dsmcclain Mar 26, 2021
887a717
Adyen: Pass Network Tx Reference for MIT
curiousepic Mar 29, 2021
3cdcce6
Qvalent: add `customer_reference_number`
fredo- Mar 29, 2021
547cdeb
Orbital: Add 'ND' ECPActionCode to $0 Prenote Check
jessiagee Mar 30, 2021
9a0dc66
Checkout: Add support for stored_credential
meagabeth Mar 29, 2021
efbaa94
Revert "Adyen: Pass Network Tx Reference for MIT"
curiousepic Mar 30, 2021
6d55f97
Credorax: Add support for 3ds_reqchallengeind
dsmcclain Mar 30, 2021
47ee511
remove line leftover from debugging
dsmcclain Mar 31, 2021
f7cc47a
Adyen: cancelOrRefund endpoint when passed as option
naashton Mar 31, 2021
f08b2f9
Qvalent: Add customer reference number
fredo- Apr 5, 2021
4c9a929
Qvalent: Update Changelog for fix PR
fredo- Apr 5, 2021
a9c588f
Orbital: Pass line_items on capture
jessiagee Apr 5, 2021
c992add
Braintree: Add support for $0 auth verification
meagabeth Apr 8, 2021
7d61252
Update JCB BIN Range
dsmcclain Apr 9, 2021
bc78912
vPOS: Support gateway
therufs Feb 15, 2021
fe9752f
Braintree: Add support for AVS and CVV results in $0 credit card veri…
meagabeth Apr 16, 2021
e1c8e78
Braintree: Return `cvv_code` and `avs_code` in response
meagabeth Apr 21, 2021
50a251b
vPOS: Convert values to string
therufs Apr 22, 2021
46703b8
Payeezy: Send `customer_ref` field
dsmcclain Apr 22, 2021
aa53b4a
Braintree: Add support for `risk_data` fields
meagabeth Apr 26, 2021
2af6e1b
Credorax: do not send 3ds shipping address fields if any are blank
dsmcclain Apr 27, 2021
28fba2f
Update CHANGELOG for PR#3959
dsmcclain Apr 27, 2021
c747b95
Orbital: Always send AvsName for eCheck
jessiagee Apr 29, 2021
038d72d
Orbital: Add middle name to EWSMiddleName for ECP
jessiagee Apr 29, 2021
7c4b3ae
Support Canadian Bank Accounts
naashton Apr 27, 2021
cc11644
Windcave/Payment Express: Add support for AvsAction and EnableAVSData…
meagabeth Apr 29, 2021
6eab45f
CyberSource: Update XML tag for merchantDefinedData
meagabeth May 4, 2021
2c2f708
dLocal: Add supported cardtypes
dsmcclain May 5, 2021
35fb066
Elavon: Send `ssl_vendor_id` field
dsmcclain May 6, 2021
9f6c174
Credorax: Add support for `echo` field
meagabeth May 7, 2021
27aac97
Worldpay: support cancelOrRefund via options
therufs May 10, 2021
42735e5
Enable General Credit on Payeezy gateway
cdmackeyfree May 6, 2021
db68b54
Bin Range Update
naashton May 12, 2021
ab7eb67
Adyen: Set default card holder name
shasum May 13, 2021
74a4761
Update changelog
shasum May 17, 2021
2342771
PaywayDotCom: make `source_id` a required field
dsmcclain May 17, 2021
edd5406
Qvalent: remove `pem_password` from required creds
dsmcclain May 17, 2021
5178a04
Authorize.Net: Stored Credential Support Improvements
May 6, 2021
7865287
Update ruby-ci.yml
May 20, 2021
967f029
Revert "Update ruby-ci.yml"
May 20, 2021
5d9f77c
CyberSource: Support multiple new fields
dsmcclain May 20, 2021
c676b4f
Update Changelog
dsmcclain May 20, 2021
42dc844
Add 'unmaskExpirationDate' and 'includeIssuerInfo' to customer profil…
dewyze May 26, 2021
9c71133
CASHNet: Update Gateway Adapter
dsmcclain May 14, 2021
01a0b64
Elavon: pass ssl_vendor_id
dsmcclain May 26, 2021
d2da0da
Support braintree 3.0.1 (#3987)
Smittttty May 28, 2021
7fb41ed
Release 1.120.0
Smittttty May 28, 2021
1e447f4
Remove Braintree Version Restriction
naashton Jun 1, 2021
76b3062
Enable PayPal express reference transaction request to send optional …
janees-e Jun 4, 2021
6ebd4b1
Add amount to verify calls for Payment Express/Windcave
cdmackeyfree Jun 3, 2021
499c22b
Orbital: Use billing_address name as fallback
curiousepic Apr 26, 2021
2360145
vPOS: handle shop_process_id correctly
therufs Jun 3, 2021
d182381
Checkout: add support for `metadata` fields
May 28, 2021
42e731f
Adyen: Support networkTxReference field
naashton Jun 8, 2021
9a14d13
Release 1.121.0
fmarois87 Jun 9, 2021
84a0f15
PayTrace: Support gateway
meagabeth May 20, 2021
fcc3673
Add specific amount for verify
cdmackeyfree Jun 10, 2021
80129ce
updated unit tests
cdmackeyfree Jun 10, 2021
ce3f2a4
vPOS: credit + refund
therufs Jun 2, 2021
a1d182e
PayArc: Support new gateway integration
senthil-code May 11, 2021
4839717
Update NMI 3DS2 field for eci
cdmackeyfree Jun 11, 2021
983b240
Confiable: support card type
therufs Jun 14, 2021
8fb951f
Add Maestro bin
therufs Jun 14, 2021
fa24614
PayULatam: adjust phone number mapping
dsmcclain Jun 14, 2021
1c70a4e
Nuvei: Add 3ds2 parameter
klaiv Jun 10, 2021
ef9ba30
Adyen: Pass networkTxReference in additionalData hash
naashton Jun 16, 2021
01f2cb0
Adyen: select correct reference for `cancelOrRefund`
dsmcclain Jun 16, 2021
564d8d5
Changelog update
dsmcclain Jun 17, 2021
a2a4d4a
PayTrace: Support level_3_data fields
meagabeth Jun 16, 2021
1639421
BluePay: Add Stored Credentials
dsmcclain Jun 21, 2021
0194e59
Orbital: Adding MC SCARecurringPayment field
jessiagee Jun 22, 2021
2a5db9c
Braintree: Support recurring_first and moto reasons
curiousepic Jun 23, 2021
06185d3
Amend changelog
curiousepic Jun 24, 2021
86d2a7f
PayTrace: Adjust capture method
meagabeth Jun 24, 2021
0e36ad9
Vantiv Express: Add DuplicateOverrideFlag
Jun 23, 2021
b32d571
BarclaysEpdqExtraPlus: Remote test custom eci option
yyapuncich Jun 16, 2021
b3627ec
CyberSource: Add customerID field
DeeMeyers Jun 21, 2021
f371a2c
Mercado Pago: Added more fields purchase requests.
DustinHaefele Jun 25, 2021
50d6cc0
usaEPay gateway: Added pin as a gateway setting
DustinHaefele Jun 30, 2021
df0d58e
CyberSource: Adjust Auth
naashton Apr 26, 2021
c9a7d2e
Valid Canadian Institution Numbers
naashton Jun 29, 2021
99a434f
Worldpay: Add support for Network Tokenization purchases
klaiv Jun 25, 2021
67e363e
PayTrace: Adjust purchase and capture methods to handle MultiResponse…
meagabeth Jul 1, 2021
7cb4c29
Payflow: Add support for MERCHDESCR field.
rachelkirk Jul 2, 2021
a76caf1
Orbital: Correct Success Logic for Refund
Jun 24, 2021
4135f7b
PayTrace: Support $0 authorize in verify method
meagabeth Jul 7, 2021
b707df6
Merge branch 'master' of https://github.com/RepairShopr/active_mercha…
LindaKadz Jul 8, 2021
5ccdd07
return method accidentally deleted while resolving conflicts
LindaKadz Jul 9, 2021
132a419
re-name method while resolving conflicts
LindaKadz Jul 9, 2021
903dccc
re-name method while resolving conflicts
LindaKadz Jul 9, 2021
c728844
add health check to see if it resolves the error
LindaKadz Jul 15, 2021
0bc8235
use previous check for purchase
LindaKadz Jul 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions .github/workflows/ruby-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
pull_request:
branches:
- '**'
push:
branches:
- master

jobs:
build:
name: Ruby ${{ matrix.version }} ${{ matrix.gemfile }}
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
strategy:
matrix:
version:
- 2.5
- 2.6
- 2.7
gemfile:
- gemfiles/Gemfile.rails50
- gemfiles/Gemfile.rails51
- gemfiles/Gemfile.rails52
- gemfiles/Gemfile.rails60
- gemfiles/Gemfile.rails_master
exclude:
- version: 2.6
gemfile: gemfiles/Gemfile.rails_master
- version: 2.5
gemfile: gemfiles/Gemfile.rails_master
steps:
- uses: actions/checkout@v2

- name: Set up Ruby ${{ matrix.version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.version }}
bundler-cache: true

- name: Test
run: bundle exec rake test
5 changes: 4 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ AllCops:
- "lib/active_merchant/billing/gateways/paypal_express.rb"
- "vendor/**/*"
ExtraDetails: false
TargetRubyVersion: 2.3
TargetRubyVersion: 2.5

# Active Merchant gateways are not amenable to length restrictions
Metrics/ClassLength:
Expand All @@ -36,3 +36,6 @@ Layout/CaseIndentation:
Layout/IndentHash:
EnforcedStyle: consistent

Naming/PredicateName:
Exclude:
- "lib/active_merchant/billing/gateways/payeezy.rb"
235 changes: 0 additions & 235 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
Exclude:
- 'activemerchant.gemspec'

# Offense count: 1828
# Cop supports --auto-correct.
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
Expand All @@ -23,41 +15,6 @@ Gemspec/OrderedDependencies:
Layout/AlignHash:
Enabled: false

# Offense count: 392
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
Layout/IndentHeredoc:
Enabled: false

# Offense count: 232
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineMethodCallBraceLayout:
Enabled: false

# Offense count: 649
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, no_space
Layout/SpaceAroundEqualsInParameterDefault:
Enabled: false

# Offense count: 782
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Layout/SpaceAroundOperators:
Enabled: false

# Offense count: 1186
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideHashLiteralBraces:
Enabled: false

# Offense count: 150
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Expand All @@ -79,12 +36,6 @@ Lint/RescueException:
Exclude:
- 'lib/active_merchant/billing/gateways/quantum.rb'

# Offense count: 1502
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Enabled: false

# Offense count: 284
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
Expand Down Expand Up @@ -131,35 +82,6 @@ Naming/AccessorMethodName:
- 'test/remote/gateways/remote_authorize_net_cim_test.rb'
- 'test/unit/gateways/authorize_net_cim_test.rb'

# Offense count: 1
Naming/ConstantName:
Exclude:
- 'test/test_helper.rb'

# Offense count: 46
# Configuration parameters: EnforcedStyle.
# SupportedStyles: lowercase, uppercase
Naming/HeredocDelimiterCase:
Exclude:
- 'test/unit/gateways/authorize_net_test.rb'
- 'test/unit/gateways/card_stream_test.rb'
- 'test/unit/gateways/hps_test.rb'
- 'test/unit/gateways/litle_test.rb'
- 'test/unit/gateways/moneris_test.rb'

# Offense count: 85
# Configuration parameters: Blacklist.
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Enabled: false

# Offense count: 1
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/active_merchant/billing/compatibility.rb'

# Offense count: 15
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, camelCase
Expand All @@ -174,21 +96,6 @@ Naming/MethodName:
- 'test/remote/gateways/remote_sage_pay_test.rb'
- 'test/unit/gateways/sage_pay_test.rb'

# Offense count: 5
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'lib/active_merchant/billing/gateways/authorize_net.rb'
- 'lib/active_merchant/billing/gateways/payeezy.rb'
- 'lib/active_merchant/billing/gateways/paymill.rb'
- 'lib/active_merchant/billing/gateways/redsys.rb'
- 'lib/active_merchant/billing/gateways/sage_pay.rb'

# Offense count: 14
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db
Expand Down Expand Up @@ -221,42 +128,6 @@ Naming/VariableName:
- 'test/unit/gateways/card_stream_test.rb'
- 'test/unit/gateways/worldpay_online_payments_test.rb'

# Offense count: 11
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, normalcase, non_integer
Naming/VariableNumber:
Exclude:
- 'lib/active_merchant/billing/gateways/merchant_partners.rb'
- 'lib/active_merchant/billing/gateways/mercury.rb'
- 'lib/active_merchant/billing/gateways/orbital.rb'
- 'test/remote/gateways/remote_paypal_test.rb'
- 'test/unit/gateways/merchant_ware_test.rb'
- 'test/unit/gateways/merchant_ware_version_four_test.rb'
- 'test/unit/gateways/orbital_test.rb'
- 'test/unit/gateways/paypal/paypal_common_api_test.rb'

# Offense count: 4
# Cop supports --auto-correct.
Performance/RedundantMatch:
Exclude:
- 'lib/active_merchant/billing/gateways/opp.rb'
- 'test/unit/gateways/payu_latam_test.rb'

# Offense count: 11
# Cop supports --auto-correct.
Performance/StringReplacement:
Exclude:
- 'lib/active_merchant/billing/compatibility.rb'
- 'lib/active_merchant/billing/gateways/card_connect.rb'
- 'lib/active_merchant/billing/gateways/firstdata_e4.rb'
- 'lib/active_merchant/billing/gateways/merchant_ware.rb'
- 'lib/active_merchant/billing/gateways/merchant_ware_version_four.rb'
- 'lib/active_merchant/billing/gateways/orbital.rb'
- 'lib/active_merchant/billing/gateways/quickbooks.rb'
- 'lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb'
- 'lib/active_merchant/billing/gateways/realex.rb'
- 'test/unit/gateways/nab_transact_test.rb'

# Offense count: 2
# Configuration parameters: EnforcedStyle.
# SupportedStyles: inline, group
Expand All @@ -265,36 +136,6 @@ Style/AccessModifierDeclarations:
- 'test/unit/gateways/metrics_global_test.rb'
- 'test/unit/gateways/optimal_payment_test.rb'

# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: prefer_alias, prefer_alias_method
Style/Alias:
Exclude:
- 'lib/active_merchant/billing/gateways/beanstream.rb'
- 'lib/active_merchant/billing/gateways/braintree_blue.rb'
- 'lib/active_merchant/billing/gateways/inspire.rb'
- 'lib/active_merchant/billing/gateways/migs.rb'
- 'lib/active_merchant/billing/gateways/smart_ps.rb'
- 'lib/active_merchant/billing/gateways/spreedly_core.rb'
- 'lib/active_merchant/post_data.rb'
- 'test/unit/gateways/bpoint_test.rb'
- 'test/unit/gateways/paymentez_test.rb'

# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, conditionals
Style/AndOr:
Exclude:
- 'lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb'
- 'lib/active_merchant/billing/gateways/eway.rb'
- 'lib/active_merchant/billing/gateways/iridium.rb'
- 'lib/active_merchant/billing/gateways/pac_net_raven.rb'
- 'lib/active_merchant/billing/gateways/smart_ps.rb'
- 'lib/active_merchant/billing/gateways/stripe.rb'
- 'lib/active_merchant/billing/gateways/webpay.rb'

# Offense count: 47
# Configuration parameters: AllowedChars.
Style/AsciiComments:
Expand All @@ -313,12 +154,6 @@ Style/AsciiComments:
- 'test/remote/gateways/remote_data_cash_test.rb'
- 'test/remote/gateways/remote_nab_transact_test.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/Attr:
Exclude:
- 'test/unit/gateways/forte_test.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
Expand All @@ -328,14 +163,6 @@ Style/BarePercentLiterals:
- 'test/unit/gateways/eway_rapid_test.rb'
- 'test/unit/gateways/orbital_test.rb'

# Offense count: 3
# Cop supports --auto-correct.
Style/BlockComments:
Exclude:
- 'test/remote/gateways/remote_barclays_epdq_extra_plus_test.rb'
- 'test/remote/gateways/remote_netpay_test.rb'
- 'test/remote/gateways/remote_payu_in_test.rb'

# Offense count: 77
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
Expand Down Expand Up @@ -588,13 +415,6 @@ Style/GlobalVars:
Style/GuardClause:
Enabled: false

# Offense count: 7482
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
Style/HashSyntax:
Enabled: false

# Offense count: 6
Style/IdenticalConditionalBranches:
Exclude:
Expand Down Expand Up @@ -895,41 +715,6 @@ Style/SingleLineMethods:
Exclude:
- 'test/unit/gateways/paypal/paypal_common_api_test.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: .
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
EnforcedStyle: use_perl_names

# Offense count: 27
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiteralsInInterpolation:
Exclude:
- 'lib/active_merchant/billing/gateways/banwire.rb'
- 'lib/active_merchant/billing/gateways/cams.rb'
- 'lib/active_merchant/billing/gateways/checkout_v2.rb'
- 'lib/active_merchant/billing/gateways/credorax.rb'
- 'lib/active_merchant/billing/gateways/digitzs.rb'
- 'lib/active_merchant/billing/gateways/ebanx.rb'
- 'lib/active_merchant/billing/gateways/merchant_one.rb'
- 'lib/active_merchant/billing/gateways/micropayment.rb'
- 'lib/active_merchant/billing/gateways/pagarme.rb'
- 'lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb'
- 'lib/active_merchant/billing/gateways/stripe.rb'
- 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb'
- 'lib/active_merchant/billing/gateways/worldpay.rb'
- 'test/unit/gateways/eway_managed_test.rb'

# Offense count: 309
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinSize.
# SupportedStyles: percent, brackets
Style/SymbolArray:
Enabled: false

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
Expand All @@ -940,26 +725,6 @@ Style/TrailingCommaInArrayLiteral:
- 'test/unit/gateways/netaxept_test.rb'
- 'test/unit/gateways/usa_epay_transaction_test.rb'

# Offense count: 160
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Enabled: false

# Offense count: 38
# Cop supports --auto-correct.
# Configuration parameters: AllowNamedUnderscoreVariables.
Style/TrailingUnderscoreVariable:
Enabled: false

# Offense count: 119
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray:
Enabled: false

# Offense count: 34
# Cop supports --auto-correct.
Style/ZeroLengthPredicate:
Expand Down
Loading