Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2241 commits
Select commit Hold shift + click to select a range
34342e1
NMI: add NTID override
yunnydang May 24, 2024
291fc01
Elavon: Add support for ApplePay and GooglePay
Feb 28, 2024
77bd386
Add L2/L3 data for cybersource rest and worldpay (#5117)
aenand May 29, 2024
00ab3fe
Add new UATP card type (#5137)
javierpedrozaing May 31, 2024
a2ef301
Release v1.136.0 (#5140)
DustinHaefele Jun 3, 2024
81f6eb2
Upgrade ruby 3.1 (#5104)
DustinHaefele Jun 3, 2024
569d3a4
FlexCharge: Update inquire call
Heavyblade May 31, 2024
b035ef4
Litle: Add 141 and 142 as successful responses
May 24, 2024
283127f
Braintree and Worldpay: support overriding NTID (#5129)
aenand Jun 5, 2024
6d0d996
Cybersource Rest: Stored Credential refactor (#5083)
aenand Jun 6, 2024
5d1455e
Plexo: Add support to NetworkToken payments (#5130)
edgarv09 Jun 6, 2024
e282efb
Update the error_code_from method to grab and alpha_numeric character…
DustinHaefele Jun 12, 2024
32e4da3
Braintree Blue: add graceul failure if zipcode is not present
yunnydang Jun 4, 2024
23169a5
DLocal: update the zip and ip fields
yunnydang Jun 6, 2024
5bd880f
Litle: Add tests for network tokenization (#5145)
Buitragox Jun 18, 2024
b636002
Datatrans: Add support for verify transactions (#5148)
pipe2442 Jun 21, 2024
d31c20c
Checkout V2: add support for risk data fields
yunnydang Jun 20, 2024
94377a3
Pin: Add new 3DS params mentioned in Pin Payments docs (#4720)
hudakh Jun 24, 2024
80c3cb5
RedsysRest: Add support for stored credentials & 3DS exemptions
jherreraa May 22, 2024
3805b4b
Fix rubocop error
Jun 25, 2024
2aa3c32
Datatrans: Fix InvalidCountryCodeError (#5156)
pipe2442 Jun 27, 2024
819907d
CheckoutV2: truncate the reference id for amex transactions
yunnydang Jun 24, 2024
17b9ff8
Worldpay: Support AFTs (#5154)
curiousepic Jun 28, 2024
a26afd1
CommerceHub: Add billing address name overide
yunnydang Jun 27, 2024
d6b4500
Stripe PI: add optional ability for 3DS exemption on verify calls
yunnydang Jul 1, 2024
c5a4d22
CyberSource: Update Stored Credential flow
May 29, 2024
3274d5b
Orbital: Update to accept UCAF Indicator GSF
Jun 24, 2024
b72e61f
FlexCharge: Adding authorize-capture functionality
Heavyblade Jul 2, 2024
00b2ae7
CyberSource: Add the merchant_descriptor_city and submerchant_id fields
yunnydang Jul 1, 2024
83bb31d
FlexCharge: Enabling void call
Heavyblade Jul 9, 2024
b3e12ee
CyberSource: bugfix - send correct card type/code for carnet
rachelkirk Jul 9, 2024
6f024c9
MerchantWarrior: Update phone, email, ip and store_ID
Jun 28, 2024
4f34933
Credorax: Update 3DS version mapping
Jul 1, 2024
0ae0158
FlexCharge - NoMethodError: nil CreditCard#number (#5164)
pipe2442 Jul 11, 2024
8dc76a4
FlexCharge: quick fix on void call
Heavyblade Jul 10, 2024
19d3979
Fix bug where `add_payment_method` was incorrectly returned early if …
naashton Jul 12, 2024
f270a60
Add neew Bins: Maestro
yunnydang Jul 11, 2024
dfaccf4
Braintree: Remove stored credential v1
Jul 12, 2024
957dd75
Plexo: Update Network Token implementation (#5169)
javierpedrozaing Jul 16, 2024
941c6d2
NMI: Adding GooglePay and ApplePay (#5146)
javierpedrozaing Jul 17, 2024
568466b
Braintree: Pass overridden mid into client token for GS 3DS (#5166)
sinourain Jul 17, 2024
27ae6b7
Moneris: Update crypt_type for 3DS
Jul 2, 2024
4b4ccb9
Update CheckoutV2 3DS message & error code
Jul 12, 2024
214d483
SER-1386 add ExtraData and Source GSFs
Heavyblade Jul 15, 2024
a2b79f4
SER-1387 fix shipping address and idempotency key
Heavyblade Jul 19, 2024
39878f6
Datatrans: Add TPV
Jul 17, 2024
cc7ec9b
FlexCharge: change transactionType placement
Heavyblade Jul 23, 2024
3f85ecd
Rapyd: Add support for save_payment_method field
rachelkirk Jul 24, 2024
efd27e7
Datatrans: Modify authorization_from string for store (#5193)
gasb150 Jul 26, 2024
d0f7615
DecidirPlus: Update error_message to add safety navigator
Jul 18, 2024
d4b63b4
Elavon: Update Stored Credentials
Jul 10, 2024
e9ea86f
Elavon: Update cvv for stored credential
Aug 1, 2024
0c9acc1
Adyen: Include header fields in response body
yunnydang Jul 17, 2024
d9cffb6
Stripe and Stripe PI: add headers to response body
yunnydang Jul 17, 2024
f788fd8
Fatzebra: fix directory_server_transaction_id mapping (#5197)
gasb150 Aug 1, 2024
f2ed5b6
Upgrade rexml to 3.3.4 to address CVE-2024-39908, 41123, 41946 (#5181)
raymzag Aug 2, 2024
f52d344
Release 1.137.0
byroot Aug 2, 2024
3e7aa32
Repair Mecury and TransFirst (#5206)
aenand Aug 8, 2024
72d2a33
Repair to mercury
aenand Aug 8, 2024
3ff7e25
NMI: Fix Decrypted indicator for Google/Apple pay (#5196)
javierpedrozaing Aug 9, 2024
d525977
FlexCharge: add more descriptives error messages (#5199)
gasb150 Aug 9, 2024
ebd1db1
BraintreeBlue: Updates to Paypal integration
Jul 19, 2024
57bd93d
Stripe/StripePI: update add metadata for refund and void
yunnydang Aug 5, 2024
615d391
CommerceHub: update test url (#5211)
DustinHaefele Aug 13, 2024
2de6a31
Adyen: add billing address street and house number name error handling
yunnydang Aug 9, 2024
70e9830
Elavon: Update sending CVV for MIT transactions
Aug 12, 2024
19370e2
ECS-3530 Adyen Format error fix
jherreraa Jun 25, 2024
0f2ae6f
HPs: Update NetworkTokenizationCreditCard flow
Jul 15, 2024
4fbb4ae
Braintree: Support override_application_id (#5194)
aenand Aug 14, 2024
edf22c3
Decidir: Pass CVV for NT
Aug 6, 2024
107c1d4
MercadoPago: Adding 3DS gateway specific fields
Heavyblade Aug 1, 2024
59545a5
NMI: add customer vault fields
yunnydang Aug 14, 2024
8e14454
CheckoutV2: Add inquire method
Aug 9, 2024
89ddf53
Iveri: Add AuthReversal for Authorizations
Aug 1, 2024
c4531f4
Decidir & Braintree: Scrub cryptogram and number
Aug 16, 2024
654839e
Add luhn10 check to naranja (#5217)
DustinHaefele Aug 21, 2024
5084609
Cybersource: Add apple_pay params for discover if flag passed (#5213)
DustinHaefele Aug 21, 2024
ef571f5
Decidir: Update scrubbing cryptogram and token
Aug 21, 2024
7df845e
Revert "Iveri: Add AuthReversal for Authorizations"
Aug 22, 2024
6b59d76
Nuvei: Base Gateway Layout
Jul 17, 2024
1549bec
Mercado Pago: add idempotency key field
yunnydang Aug 22, 2024
a3b747a
Nuvei: Adding basic operations
Heavyblade Aug 23, 2024
780a77d
Adyen: Update split refund method
yunnydang Aug 15, 2024
bbf1738
Adyen: Remove raw_error_message
Aug 1, 2024
05a4801
Elavon: Remove old Stored Credential method
Aug 16, 2024
04a6cef
PayTrace: Update MultiResponse for Capture
Aug 5, 2024
b789edf
Ebanx: Add support for Stored Credentials
Aug 20, 2024
c37670f
Revert "Ebanx: Add support for Stored Credentials"
Aug 28, 2024
1f4030f
Adyen: Add support for Pan Only GooglePay
Aug 16, 2024
2771ad5
Decidir - Send extra fields for tokenized NT transactions
Aug 21, 2024
a92bd42
Updated the Adyen NT and stored credential flow. (#5216)
DustinHaefele Aug 29, 2024
3d28e30
Stripe PI: Stored Credentials for ApplePay
Aug 13, 2024
ec6224f
Decidir - Fix scrub method
Aug 28, 2024
b52a283
CyberSource and CyberSourceRest: update carnet card type
rachelkirk Aug 27, 2024
166ca88
Stripe PI: Add challenge as valid value for request_three_d_secure
jcreiff Aug 28, 2024
b70928f
MercadoPago: Sending sponsor_id only on production
Heavyblade Aug 30, 2024
fc0086e
Plexo: remove Bin and Last4 fields from NetworkToken (#5234)
gasb150 Sep 3, 2024
52f3401
StripePI: Add metadata for GooglePay FPAN
Aug 29, 2024
4830fd5
Paypal: Add inquire method
Aug 26, 2024
78d91b0
Adyen: Enable multiple legs within airline data
jcreiff Sep 5, 2024
d615d35
SafeCharge: add card holder verification fields
yunnydang Sep 6, 2024
bb80a88
Add support for Discover Protect Buy Program in Orbital gateway
priceline-rosenfeld Feb 15, 2024
6604589
Support proxy settings with user and password (#5102)
shimoju Sep 11, 2024
b9c50ef
Iveri: Add AuthorisationReversal for Auth Void
Aug 27, 2024
cdd8f62
StripePI: Update Stored Credentials
Aug 27, 2024
5afcc4a
Decidir: Remove pass_cvv_for_nt
Aug 21, 2024
9b8d928
Checkout v2: Update stored_credentials_option function
jherreraa Aug 28, 2024
591523c
Ebanx: Add support for Stored Credentials
Aug 29, 2024
9fd0b22
Nuvei: Add sotred credentials (#5214)
javierpedrozaing Sep 12, 2024
f4d4dfe
Shift4: Update response parsing to account for hostresponse
jcreiff Sep 12, 2024
61393c2
NMI: Add `industry_indicator` field (#5264)
naashton Sep 16, 2024
883c3d6
Rapdy: Add idempotency for all endpoints
Sep 10, 2024
0c348db
Decidir: Map error code -1 to processing_error
Buitragox Sep 10, 2024
536a01d
Nuvei: Add 3DS GS (#5247)
gasb150 Sep 20, 2024
f086089
SumUp: Append partner_id to checkout_reference (#5272)
naashton Sep 20, 2024
1d08847
Adyen: Update shopperInteraction
Sep 20, 2024
ffcf248
Addition of shopper ip address when a network token transaction occur…
rubenmarindev Sep 25, 2024
9f864f3
CenPOS: Add test_url
jcreiff Sep 20, 2024
91f0eb0
Fix stored credentials issue
jherreraa Sep 17, 2024
fd58ee1
StripePI: Update authorization for failed Payment Intents
Sep 12, 2024
8770ec3
Cybersource: Updated commerceIndicator on apple pay with discover (#5…
DustinHaefele Sep 25, 2024
928a24b
Worldpay: Support apple pay recurring (#5268)
KenderBolivarT Sep 25, 2024
8575398
CyberSourceRest: Support Apple Pay recurring (#5270)
bdcano Sep 25, 2024
13e1ce0
update active support version (#5287)
DustinHaefele Oct 2, 2024
e480b60
Adyen: remove unused ecommerce flag for NetworkTokenization cards (#5…
DustinHaefele Oct 3, 2024
a4281f6
CybersourceRest: Update message and error_code
Sep 23, 2024
ec0f7b6
Redsys: update decoding to catch Json errors and try to urlsafe_decod…
DustinHaefele Oct 3, 2024
2981c50
Paysafe: Add `external_initial_transaction_id`
rachelkirk Oct 4, 2024
b964d73
Worldpay: Add customStringFields
jcreiff Oct 1, 2024
2070627
Airwallex: truncate descriptor field to 32 characters
jcreiff Oct 4, 2024
b317b8c
DLocal: add the description field for refund
yunnydang Oct 8, 2024
2329aeb
CyberSource: Update order of XML fields
Sep 17, 2024
f974b4c
Revert "CyberSource: Update order of XML fields"
Oct 9, 2024
d579b24
WorldPay: Add support for encrypted ApplePay and GooglePay (#5271)
DustinHaefele Oct 10, 2024
f65b11d
Orbital: Update alternate_ucaf_flow
Sep 30, 2024
ec93b3a
Adyen: Remove cryptogram flag
Oct 9, 2024
32b58d6
CecabankRest: Add AP/GP (#5295)
gasb150 Oct 16, 2024
41b5794
DLocal: Add X-Dlocal-Payment-Source to header
Sep 30, 2024
a462b3c
StripePI: Update to retrieve_setup_intent and headers
Oct 1, 2024
3b350f1
Upgrade rexml to 3.3.8 to fix CVE-2024-43398
raymzag Sep 3, 2024
82a6fa1
Nuvei: Add partial approval feature (#5250)
javierpedrozaing Oct 18, 2024
74848ea
Nuvei: Add ACH support (#5269)
javierpedrozaing Oct 18, 2024
4d0d1da
Nuvei: Add GSF for verify method (#5278)
javierpedrozaing Oct 18, 2024
9bc26ed
Nuvei: Add Google and Apple pay (#5289)
javierpedrozaing Oct 18, 2024
3e570f7
CyberSource, CyberSource Rest: Add the MCC field
yunnydang Oct 9, 2024
2dcd214
Adyen: add the manual_capture field
yunnydang Oct 21, 2024
6ec6e46
Versapay: First Implementation (#5288)
gasb150 Oct 22, 2024
29158a4
Authorize.net: certificates added for digicert (#5298)
dawoodmalhi Oct 22, 2024
c324f56
Enabling of recurring_detail_reference gateway specific field in othe…
rubenmarindev Oct 2, 2024
0724bf5
Adyen: Update skip_mpi_data
Oct 10, 2024
efce254
Paysafe: Update fields in standalonecredits
Oct 3, 2024
33ea450
GlobalCollect: Add support for $0 Auth
Oct 10, 2024
368076c
Cybersource: Update order of XML fields
Oct 10, 2024
2d1abfa
Cybersouce: Update brand to be symbol
Oct 23, 2024
3840b89
Revert "Cybersouce: Update brand to be symbol"
Oct 23, 2024
b42bd6c
Revert "Cybersource: Update order of XML fields"
Oct 23, 2024
b994ae4
Versapay: Void, Refund, Credit (#5311)
gasb150 Oct 28, 2024
64bbd76
Versapay: Store Unstore (#5315)
gasb150 Oct 28, 2024
e600e53
Nuvei: Add 3DS Global (#5308)
javierpedrozaing Oct 28, 2024
d1700cd
CyberSource: Update NT/AP/GP methods (#5318)
almalee24 Oct 30, 2024
64656e6
Validation added in Worldpay to avoid scheme transaction identifier w…
rubenmarindev Oct 28, 2024
f80ead3
This grabs and sets the 3d secured supported field when running a verify
yunnydang Nov 1, 2024
efa27d7
StripePI: Last4 From Payment Method (#5322)
naashton Nov 4, 2024
0cb22ec
New Credit Card: Patagonia365 (#5265)
gasb150 Nov 6, 2024
d89ed81
Decidir: Patagonia365 Card Type Mapping (#5324)
naashton Nov 6, 2024
60145d9
Ebanx: Add network token support
Buitragox Sep 13, 2024
9f6b5eb
DLocal: add country override optional field
yunnydang Nov 5, 2024
43bd518
Nuvei: Adding account founding transaction (#5307)
javierpedrozaing Nov 8, 2024
63a738b
Nuvei: Add card holder name verification params (#5312)
javierpedrozaing Nov 8, 2024
bd6849c
CommerceHub - Update three_ds_server_trans_id assignation to serverTr…
sinourain Nov 8, 2024
6fbb5a7
Stripe: Remove StripePaymenToken & ApplePayPaymentToken
Oct 10, 2024
7e83296
Update urls
jherreraa Oct 22, 2024
effd397
MIT: Change test URL
Buitragox Oct 28, 2024
6facc70
Nuvei: Fix NTID stored credentials (#5334)
javierpedrozaing Nov 15, 2024
64ca276
Fix the stripe PI add three d supported field logic
yunnydang Nov 14, 2024
ce80330
ticket solved
jherreraa Nov 15, 2024
21d47ff
CommerceHub: Update Production URL
Nov 18, 2024
95c09a8
CommerceHub: Add Network Token support
Nov 11, 2024
88bdf59
Worldpay: Update Stored Credentials
Nov 11, 2024
1e35cca
Update Rubocop 1.26.0
Nov 5, 2024
445e183
Second commit with bundle exec rubocop -a
Nov 5, 2024
c66fc71
Set Style/MapToHash,Style/OpenStructUse & Style/SelectByRegexp enabl…
Nov 5, 2024
e5516f8
RedsysRest: add NetworToken (#5333)
gasb150 Nov 20, 2024
6e98120
Nuvei: Update Payouts request and some fixes (#5327)
javierpedrozaing Nov 21, 2024
364f53e
DLocal: Update the success_from for Void
Nov 14, 2024
1c0f9e3
DLocal: Update void response
Nov 26, 2024
c289403
Ebanx: Fix processing_type header
sinourain Nov 22, 2024
90bc1c7
COMP-71 AP recurring braintree_blue (#5336)
bdcano Nov 26, 2024
6e21157
FlexCharge: Update homePage url (#5351)
javierpedrozaing Dec 3, 2024
0dda1f1
Nuvei: Fix send savePM in false by default (#5353)
javierpedrozaing Dec 3, 2024
f248bd7
Add the wallet_id field for decidir gateways
yunnydang Dec 2, 2024
599f2cc
Fortis: Initial implementation
Heavyblade Nov 15, 2024
bd5245f
OPPS-225 Worldpay Idempotency key fix
jherreraa Nov 22, 2024
bfb4833
Revert "OPPS-225 Worldpay Idempotency key fix"
jherreraa Dec 4, 2024
af2d1af
Worldpay: Update where to pass shopperIPAddress
Nov 26, 2024
2fe6ccb
Braintree: Account for BraintreeError
Nov 25, 2024
80f1d1c
Worldpay: Fix stored credentials unscheduled reason type
Buitragox Nov 29, 2024
320b2ec
StripePI: Update version to 2022-11-15
Oct 22, 2024
447aad3
Revert "StripePI: Update version to 2022-11-15"
Dec 4, 2024
9191189
OPPS-225 Worldpay Idempotency key fix
jherreraa Nov 22, 2024
0c35067
Hi Pay: Dont add 3ds when :three_ds_2 is missing
Buitragox Dec 3, 2024
d7304a1
Fortis: Adding Verify + Reference Purchase
Heavyblade Dec 6, 2024
a5bf968
Nuvei: Fix stored credentials hash (#5362)
javierpedrozaing Dec 9, 2024
bda3c3d
Credorax: Add support for gateway card validation
rachelkirk Nov 11, 2024
b53cc90
Update required Ruby version to 3.2.0
Nov 20, 2024
55935d8
Revert "Update required Ruby version to 3.2.0"
Dec 11, 2024
a8311f2
Normalize API versions
Buitragox Oct 29, 2024
e09bf17
Revert "Normalize API versions"
Buitragox Dec 12, 2024
1dd6531
Nuvei: Update AFT request (#5364)
javierpedrozaing Dec 12, 2024
f378682
SecurePayAU: Send order ID for payments with stored card (#3979)
dacook Jan 6, 2025
b99cdd0
Orbital: Add XSD version testing to unit test
Dec 30, 2024
9a46606
Add the fundingDestination field and fundingSource to authorize call
yunnydang Dec 17, 2024
55b1766
Priority: fix for bin lookup
Buitragox Dec 11, 2024
dfee2a8
CommerceHub: Update merchantInvoiceNumber & merchantTransactionId
Dec 30, 2024
0c8d47a
VersaPay: refactor authorization from structure (#5363)
gasb150 Jan 13, 2025
b4a03cc
VersaPay: Improve Message Error and Error Mapping (#5357)
gasb150 Jan 13, 2025
bf676ed
CheckoutV2: Add metadata to Credit
Nov 8, 2024
9fd7c2b
Normalize API versions
Buitragox Oct 29, 2024
3a3a067
Nuvei: Fix 3ds transaction (#5382)
javierpedrozaing Jan 17, 2025
29d9391
SafeCharge: Add Australia & Canada as supported countries
Jan 3, 2025
87d17cf
Summary
sinourain Jan 10, 2025
40fa9fd
RedsysRest: Improve authorization from in Redsys (#5372)
gasb150 Jan 22, 2025
fa3beaa
Ebanx: add the optional notification_url field
yunnydang Jan 21, 2025
11bde5e
EBANX: add optional payment_type_code override
jcreiff Dec 13, 2024
372bb9f
EBANX: Update list of supported countries
jcreiff Jan 21, 2025
c678a1d
Add alternate spelling for Vietnam
jcreiff Jan 21, 2025
1956636
Checkout v2: add l2/l3 (#5385)
gasb150 Jan 24, 2025
f84bf87
Worldpay: Update passing 3DS data for NT
Jan 22, 2025
626ac72
Ebanx: Add the merchant_payment_code override
yunnydang Jan 29, 2025
868f316
Add AFT fields for credorax
yunnydang Jan 21, 2025
2c9022f
SecurePayAU: Allow custom request_timeout (#5392)
dacook Jan 31, 2025
6980b9e
Adyen: Add support for localized shopper statement
rachelkirk Jan 31, 2025
62378da
Cashnet: Update max_retries to 1
Jan 28, 2025
f681443
Cybersource: Update 3DS fields
Jan 30, 2025
0b194b0
Nuvei: Fix money format (#5399)
javierpedrozaing Feb 7, 2025
3ef3df2
Update authorization_from method so that refunds will populate the pa…
yunnydang Feb 7, 2025
90f59d1
New Credit Card Sol: Add new bin set for Sol credit card (#5380)
javierpedrozaing Feb 12, 2025
37f6f3e
Worldpay: Add AFT support to Authorize and Purchase transaction types
rachelkirk Feb 7, 2025
3d527c9
Adyen: Update shopperInteraction
Jan 23, 2025
820f790
Tarjeta sol: Rename card type name (#5404)
javierpedrozaing Feb 13, 2025
0a94b9f
Credit card support: Add credit card sol support to Gateways (#5383)
javierpedrozaing Feb 13, 2025
b4d9883
Nuvei: Fix mapping ClientRequestId with order id (#5403)
javierpedrozaing Feb 14, 2025
35a21c8
Worldpay: AFT middle name address2 bugfix
rachelkirk Feb 17, 2025
c06b5e9
resolve merge conflict
Feb 18, 2025
179652c
update url
Feb 18, 2025
84ad7ee
update payment express URL
Mar 5, 2025
ffcc66d
update ca.pem
Mar 5, 2025
c839c24
test
Mar 5, 2025
dda28af
use prod url in test env
Mar 5, 2025
b9ef72e
revert the active merchant version
Mar 5, 2025
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:
- 3.1
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
- name: Linter
run: bundle exec rubocop
19 changes: 19 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
stale-issue-message: 'To provide a cleaner slate for the maintenance of the library, this PR/Issue is being labeled stale after 60 days without activity. It will be closed in 14 days unless you comment with an update regarding its applicability to the current build. Thank you!'
stale-pr-message: 'To provide a cleaner slate for the maintenance of the library, this PR/Issue is being labeled stale after 60 days without activity. It will be closed in 14 days unless you comment with an update regarding its applicability to the current build. Thank you!'
days-before-close: 14
exempt-draft-pr: true
156 changes: 155 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,158 @@ AllCops:
- "lib/active_merchant/billing/gateways/paypal_express.rb"
- "vendor/**/*"
ExtraDetails: false
TargetRubyVersion: 2.3
TargetRubyVersion: 3.1

# Active Merchant gateways are not amenable to length restrictions
Metrics/ClassLength:
Enabled: false

Metrics/ModuleLength:
Enabled: false

Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation

Layout/DotPosition:
EnforcedStyle: trailing

Layout/CaseIndentation:
EnforcedStyle: end

Layout/FirstHashElementIndentation:
EnforcedStyle: consistent

Naming/PredicateName:
Exclude:
- "lib/active_merchant/billing/gateways/payeezy.rb"
- 'lib/active_merchant/billing/gateways/airwallex.rb'

Gemspec/DateAssignment: # (new in 1.10)
Enabled: true
Layout/SpaceBeforeBrackets: # (new in 1.7)
Enabled: true
Lint/AmbiguousAssignment: # (new in 1.7)
Enabled: true
Lint/DeprecatedConstants: # (new in 1.8)
Enabled: true # update later in next Update Rubocop PR
Lint/DuplicateBranch: # (new in 1.3)
Enabled: false
Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
Enabled: true
Lint/EmptyBlock: # (new in 1.1)
Enabled: false # update later in next Update Rubocop PR
Exclude:
- 'lib/active_merchant/billing/gateways/authorize_net.rb'
- 'lib/active_merchant/billing/gateways/secure_net.rb'
Lint/EmptyClass: # (new in 1.3)
Enabled: true
Lint/FloatComparison:
Exclude:
- 'lib/active_merchant/billing/gateways/payu_latam.rb'
Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
Enabled: true
Lint/NonDeterministicRequireOrder:
Exclude:
- 'script/generate'
Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
Enabled: true
Exclude:
- 'lib/active_merchant/billing/gateways/fat_zebra.rb'
- 'lib/active_merchant/billing/gateways/netbanx.rb'
- 'lib/active_merchant/billing/gateways/payway_dot_com.rb'
Lint/NumberedParameterAssignment: # (new in 1.9)
Enabled: true
Lint/OrAssignmentToConstant: # (new in 1.9)
Enabled: true
Lint/RedundantDirGlobSort: # (new in 1.8)
Enabled: true
Lint/SymbolConversion: # (new in 1.9)
Enabled: true
Lint/ToEnumArguments: # (new in 1.1)
Enabled: true
Lint/TripleQuotes: # (new in 1.9)
Enabled: true
Lint/UnexpectedBlockArity: # (new in 1.5)
Enabled: true
Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
Enabled: true
Style/ArgumentsForwarding: # (new in 1.1)
Enabled: true
Style/CollectionCompact: # (new in 1.2)
Enabled: false # update later in next Update Rubocop PR
Style/DocumentDynamicEvalDefinition: # (new in 1.1)
Enabled: true
Exclude:
- 'lib/active_merchant/billing/credit_card.rb'
- 'lib/active_merchant/billing/response.rb'
Style/EndlessMethod: # (new in 1.8)
Enabled: true
Style/HashConversion: # (new in 1.10)
Enabled: true
Exclude:
- 'lib/active_merchant/billing/gateways/payscout.rb'
- 'lib/active_merchant/billing/gateways/pac_net_raven.rb'
Style/HashExcept: # (new in 1.7)
Enabled: true
Style/IfWithBooleanLiteralBranches: # (new in 1.9)
Enabled: false # update later in next Update Rubocop PR
Style/NegatedIfElseCondition: # (new in 1.2)
Enabled: true
Style/NilLambda: # (new in 1.3)
Enabled: true
Style/RedundantArgument: # (new in 1.4)
Enabled: false # update later in next Update Rubocop PR
Style/StringChars: # (new in 1.12)
Enabled: false # update later in next Update Rubocop PR
Style/SwapValues: # (new in 1.1)
Enabled: true
Naming/VariableNumber:
Enabled: false
Style/OptionalBooleanParameter:
Enabled: false
Style/RedundantRegexpEscape:
Enabled: false
Gemspec/RequireMFA: # new in 1.23
Enabled: false
Layout/LineEndStringConcatenationIndentation: # new in 1.18
Enabled: true
Lint/AmbiguousOperatorPrecedence: # new in 1.21
Enabled: true
Lint/AmbiguousRange: # new in 1.19
Enabled: true
Lint/EmptyInPattern: # new in 1.16
Enabled: true
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
Enabled: true
Lint/RequireRelativeSelfPath: # new in 1.22
Enabled: true
Lint/UselessRuby2Keywords: # new in 1.23
Enabled: true
Naming/BlockForwarding: # new in 1.24
Enabled: false
Security/IoMethods: # new in 1.22
Enabled: true
Style/FileRead: # new in 1.24
Enabled: true
Style/FileWrite: # new in 1.24
Enabled: true
Style/InPatternThen: # new in 1.16
Enabled: true
Style/MapToHash: # new in 1.24
Enabled: false
Style/MultilineInPatternThen: # new in 1.16
Enabled: true
Style/NestedFileDirname: # new in 1.26
Enabled: true
Style/NumberedParameters: # new in 1.22
Enabled: true
Style/NumberedParametersLimit: # new in 1.22
Enabled: true
Style/OpenStructUse: # new in 1.23
Enabled: false
Style/QuotedSymbols: # new in 1.16
Enabled: true
Style/RedundantSelfAssignmentBranch: # new in 1.19
Enabled: true
Style/SelectByRegexp: # new in 1.22
Enabled: false
Loading
Loading