activemerchant 1.123.0 → 1.124.0
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 +4 -4
- data/CHANGELOG +46 -0
- data/lib/active_merchant/billing/credit_card_methods.rb +6 -3
- data/lib/active_merchant/billing/gateways/adyen.rb +61 -9
- data/lib/active_merchant/billing/gateways/card_stream.rb +17 -13
- data/lib/active_merchant/billing/gateways/d_local.rb +8 -1
- data/lib/active_merchant/billing/gateways/global_collect.rb +5 -0
- data/lib/active_merchant/billing/gateways/mit.rb +260 -0
- data/lib/active_merchant/billing/gateways/moka.rb +24 -11
- data/lib/active_merchant/billing/gateways/nmi.rb +13 -0
- data/lib/active_merchant/billing/gateways/orbital.rb +2 -1
- data/lib/active_merchant/billing/gateways/pay_arc.rb +9 -7
- data/lib/active_merchant/billing/gateways/pay_conex.rb +3 -1
- data/lib/active_merchant/billing/gateways/payflow.rb +14 -6
- data/lib/active_merchant/billing/gateways/paysafe.rb +103 -18
- data/lib/active_merchant/billing/gateways/realex.rb +18 -0
- data/lib/active_merchant/billing/gateways/safe_charge.rb +5 -2
- data/lib/active_merchant/billing/gateways/stripe.rb +11 -1
- data/lib/active_merchant/billing/gateways/stripe_payment_intents.rb +59 -35
- data/lib/active_merchant/billing/gateways/trans_first_transaction_express.rb +2 -1
- data/lib/active_merchant/billing/gateways/trust_commerce.rb +2 -1
- data/lib/active_merchant/billing/gateways/worldpay.rb +15 -0
- data/lib/active_merchant/billing/response.rb +4 -0
- data/lib/active_merchant/version.rb +1 -1
- metadata +3 -2
@@ -317,7 +317,8 @@ module ActiveMerchant #:nodoc:
|
|
317
317
|
gsub(%r((<[^>]+pan>)[^<]+(<))i, '\1[FILTERED]\2').
|
318
318
|
gsub(%r((<[^>]+sec>)[^<]+(<))i, '\1[FILTERED]\2').
|
319
319
|
gsub(%r((<[^>]+id>)[^<]+(<))i, '\1[FILTERED]\2').
|
320
|
-
gsub(%r((<[^>]+regKey>)[^<]+(<))i, '\1[FILTERED]\2')
|
320
|
+
gsub(%r((<[^>]+regKey>)[^<]+(<))i, '\1[FILTERED]\2').
|
321
|
+
gsub(%r((<[^>]+acctNr>)[^<]+(<))i, '\1[FILTERED]\2')
|
321
322
|
end
|
322
323
|
|
323
324
|
private
|
@@ -331,7 +331,8 @@ module ActiveMerchant #:nodoc:
|
|
331
331
|
gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]').
|
332
332
|
gsub(%r((&?cc=)\d*(&?)), '\1[FILTERED]\2').
|
333
333
|
gsub(%r((&?password=)[^&]+(&?)), '\1[FILTERED]\2').
|
334
|
-
gsub(%r((&?cvv=)\d*(&?)), '\1[FILTERED]\2')
|
334
|
+
gsub(%r((&?cvv=)\d*(&?)), '\1[FILTERED]\2').
|
335
|
+
gsub(%r((&?account=)\d*(&?)), '\1[FILTERED]\2')
|
335
336
|
end
|
336
337
|
|
337
338
|
private
|
@@ -215,6 +215,7 @@ module ActiveMerchant #:nodoc:
|
|
215
215
|
add_shopper(xml, options)
|
216
216
|
add_statement_narrative(xml, options)
|
217
217
|
add_risk_data(xml, options[:risk_data]) if options[:risk_data]
|
218
|
+
add_sub_merchant_data(xml, options[:sub_merchant_data]) if options[:sub_merchant_data]
|
218
219
|
add_hcg_additional_data(xml, options) if options[:hcg_additional_data]
|
219
220
|
add_instalments_data(xml, options) if options[:instalments]
|
220
221
|
add_moto_flag(xml, options) if options.dig(:metadata, :manual_entry)
|
@@ -314,6 +315,20 @@ module ActiveMerchant #:nodoc:
|
|
314
315
|
end
|
315
316
|
end
|
316
317
|
|
318
|
+
def add_sub_merchant_data(xml, options)
|
319
|
+
xml.subMerchantData do
|
320
|
+
xml.pfId options[:pf_id] if options[:pf_id]
|
321
|
+
xml.subName options[:sub_name] if options[:sub_name]
|
322
|
+
xml.subId options[:sub_id] if options[:sub_id]
|
323
|
+
xml.subStreet options[:sub_street] if options[:sub_street]
|
324
|
+
xml.subCity options[:sub_city] if options[:sub_city]
|
325
|
+
xml.subState options[:sub_state] if options[:sub_state]
|
326
|
+
xml.subCountryCode options[:sub_country_code] if options[:sub_country_code]
|
327
|
+
xml.subPostalCode options[:sub_postal_code] if options[:sub_postal_code]
|
328
|
+
xml.subTaxId options[:sub_tax_id] if options[:sub_tax_id]
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
317
332
|
def add_shopper_account_risk_data(xml, shopper_account_risk_data)
|
318
333
|
return unless shopper_account_risk_data
|
319
334
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activemerchant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.124.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Luetke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -291,6 +291,7 @@ files:
|
|
291
291
|
- lib/active_merchant/billing/gateways/micropayment.rb
|
292
292
|
- lib/active_merchant/billing/gateways/migs.rb
|
293
293
|
- lib/active_merchant/billing/gateways/migs/migs_codes.rb
|
294
|
+
- lib/active_merchant/billing/gateways/mit.rb
|
294
295
|
- lib/active_merchant/billing/gateways/modern_payments.rb
|
295
296
|
- lib/active_merchant/billing/gateways/modern_payments_cim.rb
|
296
297
|
- lib/active_merchant/billing/gateways/moka.rb
|