activemerchant 1.112.0 → 1.118.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +115 -0
- data/README.md +1 -1
- data/lib/active_merchant.rb +1 -1
- data/lib/active_merchant/billing/avs_result.rb +1 -1
- data/lib/active_merchant/billing/compatibility.rb +3 -3
- data/lib/active_merchant/billing/credit_card.rb +3 -1
- data/lib/active_merchant/billing/credit_card_methods.rb +58 -11
- data/lib/active_merchant/billing/gateway.rb +1 -1
- data/lib/active_merchant/billing/gateways/adyen.rb +26 -16
- data/lib/active_merchant/billing/gateways/allied_wallet.rb +7 -7
- data/lib/active_merchant/billing/gateways/authorize_net.rb +50 -18
- data/lib/active_merchant/billing/gateways/authorize_net_arb.rb +3 -4
- data/lib/active_merchant/billing/gateways/authorize_net_cim.rb +3 -2
- data/lib/active_merchant/billing/gateways/axcessms.rb +8 -9
- data/lib/active_merchant/billing/gateways/balanced.rb +5 -4
- data/lib/active_merchant/billing/gateways/bambora_apac.rb +8 -8
- data/lib/active_merchant/billing/gateways/bank_frick.rb +8 -8
- data/lib/active_merchant/billing/gateways/banwire.rb +1 -1
- data/lib/active_merchant/billing/gateways/barclaycard_smartpay.rb +6 -4
- data/lib/active_merchant/billing/gateways/beanstream.rb +3 -3
- data/lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb +4 -5
- data/lib/active_merchant/billing/gateways/blue_pay.rb +2 -3
- data/lib/active_merchant/billing/gateways/blue_snap.rb +85 -23
- data/lib/active_merchant/billing/gateways/bogus.rb +19 -19
- data/lib/active_merchant/billing/gateways/borgun.rb +12 -12
- data/lib/active_merchant/billing/gateways/bpoint.rb +8 -8
- data/lib/active_merchant/billing/gateways/braintree.rb +1 -1
- data/lib/active_merchant/billing/gateways/braintree_blue.rb +20 -17
- data/lib/active_merchant/billing/gateways/bridge_pay.rb +7 -7
- data/lib/active_merchant/billing/gateways/cams.rb +8 -8
- data/lib/active_merchant/billing/gateways/card_connect.rb +1 -1
- data/lib/active_merchant/billing/gateways/card_save.rb +1 -1
- data/lib/active_merchant/billing/gateways/card_stream.rb +2 -2
- data/lib/active_merchant/billing/gateways/cardknox.rb +8 -8
- data/lib/active_merchant/billing/gateways/cardprocess.rb +1 -1
- data/lib/active_merchant/billing/gateways/cecabank.rb +5 -5
- data/lib/active_merchant/billing/gateways/cenpos.rb +11 -11
- data/lib/active_merchant/billing/gateways/checkout.rb +2 -2
- data/lib/active_merchant/billing/gateways/checkout_v2.rb +18 -21
- data/lib/active_merchant/billing/gateways/clearhaus.rb +7 -7
- data/lib/active_merchant/billing/gateways/commercegate.rb +1 -1
- data/lib/active_merchant/billing/gateways/conekta.rb +2 -2
- data/lib/active_merchant/billing/gateways/creditcall.rb +10 -10
- data/lib/active_merchant/billing/gateways/credorax.rb +32 -15
- data/lib/active_merchant/billing/gateways/ct_payment.rb +10 -10
- data/lib/active_merchant/billing/gateways/culqi.rb +10 -10
- data/lib/active_merchant/billing/gateways/cyber_source.rb +61 -37
- data/lib/active_merchant/billing/gateways/d_local.rb +11 -11
- data/lib/active_merchant/billing/gateways/data_cash.rb +2 -3
- data/lib/active_merchant/billing/gateways/decidir.rb +24 -9
- data/lib/active_merchant/billing/gateways/dibs.rb +8 -8
- data/lib/active_merchant/billing/gateways/digitzs.rb +6 -6
- data/lib/active_merchant/billing/gateways/ebanx.rb +9 -9
- data/lib/active_merchant/billing/gateways/efsnet.rb +3 -4
- data/lib/active_merchant/billing/gateways/elavon.rb +279 -227
- data/lib/active_merchant/billing/gateways/element.rb +8 -8
- data/lib/active_merchant/billing/gateways/evo_ca.rb +5 -6
- data/lib/active_merchant/billing/gateways/eway.rb +3 -4
- data/lib/active_merchant/billing/gateways/eway_managed.rb +6 -7
- data/lib/active_merchant/billing/gateways/eway_rapid.rb +8 -8
- data/lib/active_merchant/billing/gateways/exact.rb +8 -9
- data/lib/active_merchant/billing/gateways/ezic.rb +8 -8
- data/lib/active_merchant/billing/gateways/fat_zebra.rb +4 -4
- data/lib/active_merchant/billing/gateways/federated_canada.rb +2 -3
- data/lib/active_merchant/billing/gateways/first_giving.rb +1 -1
- data/lib/active_merchant/billing/gateways/first_pay.rb +6 -6
- data/lib/active_merchant/billing/gateways/firstdata_e4.rb +7 -7
- data/lib/active_merchant/billing/gateways/firstdata_e4_v27.rb +21 -10
- data/lib/active_merchant/billing/gateways/flo2cash.rb +9 -9
- data/lib/active_merchant/billing/gateways/flo2cash_simple.rb +1 -1
- data/lib/active_merchant/billing/gateways/forte.rb +14 -8
- data/lib/active_merchant/billing/gateways/global_collect.rb +29 -10
- data/lib/active_merchant/billing/gateways/global_transport.rb +7 -7
- data/lib/active_merchant/billing/gateways/hdfc.rb +10 -10
- data/lib/active_merchant/billing/gateways/hps.rb +17 -14
- data/lib/active_merchant/billing/gateways/iats_payments.rb +9 -4
- data/lib/active_merchant/billing/gateways/in_context_paypal_express.rb +1 -1
- data/lib/active_merchant/billing/gateways/inspire.rb +3 -4
- data/lib/active_merchant/billing/gateways/instapay.rb +1 -2
- data/lib/active_merchant/billing/gateways/ipp.rb +7 -7
- data/lib/active_merchant/billing/gateways/iridium.rb +16 -17
- data/lib/active_merchant/billing/gateways/iveri.rb +7 -7
- data/lib/active_merchant/billing/gateways/ixopay.rb +7 -7
- data/lib/active_merchant/billing/gateways/jetpay.rb +1 -2
- data/lib/active_merchant/billing/gateways/jetpay_v2.rb +4 -5
- data/lib/active_merchant/billing/gateways/kushki.rb +6 -6
- data/lib/active_merchant/billing/gateways/latitude19.rb +14 -14
- data/lib/active_merchant/billing/gateways/linkpoint.rb +5 -6
- data/lib/active_merchant/billing/gateways/litle.rb +28 -12
- data/lib/active_merchant/billing/gateways/mastercard.rb +12 -12
- data/lib/active_merchant/billing/gateways/mercado_pago.rb +8 -8
- data/lib/active_merchant/billing/gateways/merchant_e_solutions.rb +1 -2
- data/lib/active_merchant/billing/gateways/merchant_one.rb +1 -1
- data/lib/active_merchant/billing/gateways/merchant_partners.rb +10 -10
- data/lib/active_merchant/billing/gateways/merchant_ware.rb +5 -7
- data/lib/active_merchant/billing/gateways/merchant_ware_version_four.rb +4 -6
- data/lib/active_merchant/billing/gateways/mercury.rb +4 -4
- data/lib/active_merchant/billing/gateways/metrics_global.rb +4 -5
- data/lib/active_merchant/billing/gateways/micropayment.rb +8 -8
- data/lib/active_merchant/billing/gateways/migs.rb +3 -4
- data/lib/active_merchant/billing/gateways/modern_payments_cim.rb +2 -4
- data/lib/active_merchant/billing/gateways/monei.rb +7 -7
- data/lib/active_merchant/billing/gateways/moneris.rb +4 -3
- data/lib/active_merchant/billing/gateways/money_movers.rb +2 -3
- data/lib/active_merchant/billing/gateways/mundipagg.rb +37 -10
- data/lib/active_merchant/billing/gateways/nab_transact.rb +2 -4
- data/lib/active_merchant/billing/gateways/ncr_secure_pay.rb +7 -7
- data/lib/active_merchant/billing/gateways/net_registry.rb +1 -2
- data/lib/active_merchant/billing/gateways/netaxept.rb +6 -6
- data/lib/active_merchant/billing/gateways/netbanx.rb +12 -10
- data/lib/active_merchant/billing/gateways/netbilling.rb +4 -5
- data/lib/active_merchant/billing/gateways/network_merchants.rb +2 -3
- data/lib/active_merchant/billing/gateways/nmi.rb +21 -7
- data/lib/active_merchant/billing/gateways/ogone.rb +3 -3
- data/lib/active_merchant/billing/gateways/omise.rb +13 -13
- data/lib/active_merchant/billing/gateways/openpay.rb +4 -5
- data/lib/active_merchant/billing/gateways/opp.rb +12 -12
- data/lib/active_merchant/billing/gateways/optimal_payment.rb +3 -4
- data/lib/active_merchant/billing/gateways/orbital.rb +175 -81
- data/lib/active_merchant/billing/gateways/pac_net_raven.rb +3 -4
- data/lib/active_merchant/billing/gateways/pagarme.rb +9 -9
- data/lib/active_merchant/billing/gateways/pago_facil.rb +2 -2
- data/lib/active_merchant/billing/gateways/pay_conex.rb +8 -8
- data/lib/active_merchant/billing/gateways/pay_gate_xml.rb +6 -7
- data/lib/active_merchant/billing/gateways/pay_hub.rb +7 -8
- data/lib/active_merchant/billing/gateways/pay_junction.rb +4 -5
- data/lib/active_merchant/billing/gateways/pay_junction_v2.rb +9 -9
- data/lib/active_merchant/billing/gateways/pay_secure.rb +2 -3
- data/lib/active_merchant/billing/gateways/paybox_direct.rb +23 -1
- data/lib/active_merchant/billing/gateways/payeezy.rb +35 -17
- data/lib/active_merchant/billing/gateways/payex.rb +11 -12
- data/lib/active_merchant/billing/gateways/payflow.rb +4 -1
- data/lib/active_merchant/billing/gateways/payflow/payflow_common_api.rb +1 -1
- data/lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb +1 -1
- data/lib/active_merchant/billing/gateways/payment_express.rb +1 -2
- data/lib/active_merchant/billing/gateways/paymentez.rb +26 -6
- data/lib/active_merchant/billing/gateways/paymill.rb +10 -10
- data/lib/active_merchant/billing/gateways/paypal.rb +10 -2
- data/lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb +1 -0
- data/lib/active_merchant/billing/gateways/paypal_express.rb +1 -1
- data/lib/active_merchant/billing/gateways/paypal_express_common.rb +1 -1
- data/lib/active_merchant/billing/gateways/payscout.rb +1 -2
- data/lib/active_merchant/billing/gateways/paystation.rb +3 -4
- data/lib/active_merchant/billing/gateways/payu_in.rb +3 -3
- data/lib/active_merchant/billing/gateways/payu_latam.rb +17 -10
- data/lib/active_merchant/billing/gateways/payway.rb +8 -9
- data/lib/active_merchant/billing/gateways/pin.rb +11 -0
- data/lib/active_merchant/billing/gateways/plugnpay.rb +2 -3
- data/lib/active_merchant/billing/gateways/pro_pay.rb +8 -8
- data/lib/active_merchant/billing/gateways/psigate.rb +3 -4
- data/lib/active_merchant/billing/gateways/psl_card.rb +1 -2
- data/lib/active_merchant/billing/gateways/qbms.rb +4 -5
- data/lib/active_merchant/billing/gateways/quantum.rb +1 -2
- data/lib/active_merchant/billing/gateways/quickbooks.rb +4 -3
- data/lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb +3 -4
- data/lib/active_merchant/billing/gateways/quickpay/quickpay_v4to7.rb +1 -2
- data/lib/active_merchant/billing/gateways/qvalent.rb +9 -9
- data/lib/active_merchant/billing/gateways/realex.rb +1 -1
- data/lib/active_merchant/billing/gateways/redsys.rb +87 -7
- data/lib/active_merchant/billing/gateways/s5.rb +7 -7
- data/lib/active_merchant/billing/gateways/safe_charge.rb +40 -14
- data/lib/active_merchant/billing/gateways/sage.rb +3 -5
- data/lib/active_merchant/billing/gateways/sage_pay.rb +6 -7
- data/lib/active_merchant/billing/gateways/sallie_mae.rb +1 -2
- data/lib/active_merchant/billing/gateways/secure_net.rb +1 -2
- data/lib/active_merchant/billing/gateways/secure_pay.rb +3 -4
- data/lib/active_merchant/billing/gateways/secure_pay_au.rb +2 -4
- data/lib/active_merchant/billing/gateways/secure_pay_tech.rb +1 -2
- data/lib/active_merchant/billing/gateways/securion_pay.rb +5 -6
- data/lib/active_merchant/billing/gateways/skip_jack.rb +3 -4
- data/lib/active_merchant/billing/gateways/smart_ps.rb +5 -6
- data/lib/active_merchant/billing/gateways/so_easy_pay.rb +7 -7
- data/lib/active_merchant/billing/gateways/spreedly_core.rb +6 -6
- data/lib/active_merchant/billing/gateways/stripe.rb +12 -12
- data/lib/active_merchant/billing/gateways/stripe_payment_intents.rb +30 -0
- data/lib/active_merchant/billing/gateways/swipe_checkout.rb +3 -4
- data/lib/active_merchant/billing/gateways/telr.rb +9 -9
- data/lib/active_merchant/billing/gateways/trans_first.rb +3 -3
- data/lib/active_merchant/billing/gateways/trans_first_transaction_express.rb +14 -14
- data/lib/active_merchant/billing/gateways/transact_pro.rb +9 -9
- data/lib/active_merchant/billing/gateways/trust_commerce.rb +8 -9
- data/lib/active_merchant/billing/gateways/usa_epay.rb +1 -1
- data/lib/active_merchant/billing/gateways/usa_epay_advanced.rb +36 -36
- data/lib/active_merchant/billing/gateways/usa_epay_transaction.rb +4 -5
- data/lib/active_merchant/billing/gateways/vanco.rb +3 -3
- data/lib/active_merchant/billing/gateways/verifi.rb +1 -2
- data/lib/active_merchant/billing/gateways/viaklix.rb +1 -2
- data/lib/active_merchant/billing/gateways/visanet_peru.rb +10 -10
- data/lib/active_merchant/billing/gateways/webpay.rb +2 -2
- data/lib/active_merchant/billing/gateways/wepay.rb +3 -2
- data/lib/active_merchant/billing/gateways/wirecard.rb +1 -2
- data/lib/active_merchant/billing/gateways/worldpay.rb +18 -10
- data/lib/active_merchant/billing/gateways/worldpay_online_payments.rb +14 -16
- data/lib/active_merchant/billing/gateways/worldpay_us.rb +9 -9
- data/lib/active_merchant/billing/response.rb +3 -2
- data/lib/active_merchant/country.rb +1 -1
- data/lib/active_merchant/network_connection_retries.rb +2 -2
- data/lib/active_merchant/post_data.rb +1 -1
- data/lib/active_merchant/posts_data.rb +1 -1
- data/lib/active_merchant/version.rb +1 -1
- data/lib/support/ssl_verify.rb +2 -2
- data/lib/support/ssl_version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 506cd11074e8ee661844d74fb2a114665b025952d47517a423f27bd2ca566c49
|
4
|
+
data.tar.gz: 35cfe858b3bd6c492558dcd47cf17518edc6dbd96176dbb72abe6df2ff607724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8955f8c555ec9049fa06e76176a2a819e2e1bbe54868eab1c88023ece7dcd722201009b39d238acfedc79a5ac50363c73dbfa776b95f61d3db308f0b7dd897e6
|
7
|
+
data.tar.gz: 77736f76e9483256f71abb8799d8bf4804ba0f56992e226f9f185ecb0fed1cb87dc8956e886473a17c4643d3f799e6b9898565c4ec0420b1b3fcefa7471e1d16
|
data/CHANGELOG
CHANGED
@@ -2,6 +2,121 @@
|
|
2
2
|
|
3
3
|
== HEAD
|
4
4
|
|
5
|
+
== Version 1.118.0 (January 22nd, 2021)
|
6
|
+
* Worldpay: Add support for challengeWindowSize [carrigan] #3823
|
7
|
+
* Adyen: Update capitalization on subMerchantId field [cdmackeyfree] #3824
|
8
|
+
* Maestro and Elo: Update BIN ranges [meagabeth] #3822
|
9
|
+
* HPS: Truncate invoice numbers that are too long [curiousepic] #3825
|
10
|
+
* Pass network_transaction_id attribute in Response [therufs] #3815
|
11
|
+
* Elavon: support standardized stored credentials [therufs] #3816
|
12
|
+
* Decidir: update fraud_detection field [cdmackeyfree] #3829
|
13
|
+
* Paymentez: Add Olimpica cardtype [meagabeth] #3831
|
14
|
+
* SafeCharge: 3DS external MPI data refinements [curiousepic] #3821
|
15
|
+
* Credorax: Add support for 3DS Adviser [meagabeth] #3834
|
16
|
+
* Adyen: Support subMerchant data [mymir][therufs] #3835
|
17
|
+
* Decidir: add device_unique_identifier to card data [cdmackeyfree] #3839
|
18
|
+
* BraintreeBlue: add support for account_type field [jimilpatel24] #3840
|
19
|
+
* Redsys: Add support for stored_credential [meagabeth] #3844
|
20
|
+
* Redsys: add_payment method solution [meagabeth] #3845
|
21
|
+
* Stripe Payment Intents: Add support for error_on_requires_action option [tatsianaclifton] #3846
|
22
|
+
* Add 3DS 2.0 values to paypal [nebdil] #3285
|
23
|
+
* Redsys: Update Mpi Fields [tatsianaclifton] #3855
|
24
|
+
* Paypal: Update AuthStatus3ds MPI field [curiousepic] #3857
|
25
|
+
* Orbital: Update 3DS support for Mastercard [meagabeth] #3850
|
26
|
+
* Payeezy: Support standardized stored credentials [therufs] #3861
|
27
|
+
* CyberSource: Update `billing_address` override [meagabeth] #3862
|
28
|
+
* Paymentez: Add 3DS MPI field support [carrigan] #3856
|
29
|
+
* BlueSnap: Add support `fraud-session-id` field [meagabeth] #3863
|
30
|
+
* BlueSnap: Update handling of `transaction-fraud-info` fields [meagabeth] #3866
|
31
|
+
* Payeezy: Allow no stored credential transaction id [therufs] #3868
|
32
|
+
* Orbital: eCheck processing added [ajawadmirza] #3870
|
33
|
+
* FirsdataE4V27: Fixes some apple pay transaction issues [pi3r] #3872
|
34
|
+
|
35
|
+
== Version 1.117.0 (November 13th)
|
36
|
+
* Checkout V2: Pass attempt_n3d along with 3ds enabled [naashton] #3805
|
37
|
+
* GlobalCollect: Add support for Third-party 3DS2 data [molbrown] #3801
|
38
|
+
* Authorize.net: Pass stored credentials [therufs] #3804
|
39
|
+
* Authorize.net: Don't pass isFirstRecurringPayment [therufs] #3805
|
40
|
+
* Litle: Add support for general credit transactions [naashton] #3807
|
41
|
+
* Redsys: Add 3DS2 Integration Support [esmitperez] #3794
|
42
|
+
* Cybersource: Use firstname/lastname from address instead of the payment method [pi3r] #3798
|
43
|
+
* Add MPI functionality for SafeCharge gateway [daniel] #3809
|
44
|
+
* SafeCharge: Standardize MPI fields [curiousepic] #3809
|
45
|
+
* Credorax: Adds AMEX to supported cards and adds 1A error code [LinTrieu] #3792
|
46
|
+
* Stripe PI: Pass external 3DS auth data [curiousepic] #3811
|
47
|
+
* Credorax: Allow 3DS1 normalized pass-through, ease version matching [britth] #3812
|
48
|
+
* Redsys: Redsys: Harden 3DS v1/v2 check for External MPI [esmitperez] #3814
|
49
|
+
* Add card types for Stripe, Worldpay, Checkout.com [LinTrieu] #3810
|
50
|
+
* ActiveMerchant::Billing::Response: Include `network_transaction_id` attribute [therufs] #3815
|
51
|
+
|
52
|
+
== Version 1.116.0 (October 28th)
|
53
|
+
* Remove Braintree specific version dependency [pi3r] #3800
|
54
|
+
|
55
|
+
== Version 1.115.0 (October 27th)
|
56
|
+
* Checkout v2: $0 Auth on gateway [jessiagee] #3762
|
57
|
+
* Adyen: Safely add execute_threeds: false [curiousepic] #3756
|
58
|
+
* RuboCop: Fix Layout/SpaceAroundEqualsInParameterDefault [leila-alderman] #3720
|
59
|
+
* iATS: Allow email to be passed outside of the billing_address context [naashton] #3750
|
60
|
+
* Orbital: Don't pass xid for transactions using network tokens [britth] #3757
|
61
|
+
* Forte: Add service_fee_amount field [meagabeth] #3751
|
62
|
+
* WorldPay: Add support for idempotency_key[cdmackeyfree] #3759
|
63
|
+
* Orbital: Handle line_tot key as a string [naashton] #3760
|
64
|
+
* RuboCop: Fix Lint/UnusedMethodArgument [leila-alderman] #3721
|
65
|
+
* RuboCop: Fix Naming/MemoizedInstanceVariableName [leila-alderman] #3722
|
66
|
+
* RuboCop: Fix Style/BlockComments [leila-alderman] #3729
|
67
|
+
* Checkout V2: Move to single-transaction Purchases [curiousepic] #3761
|
68
|
+
* RuboCop: Fix Naming/ConstantName [leila-alderman] #3723
|
69
|
+
* Orbital: Fix schema errors [britth] #3766
|
70
|
+
* Checkout V2: Start testing via amount code [curiousepic] #3767
|
71
|
+
* CyberSource: Don't include empty `mdd_` fields [arbianchi] #3758
|
72
|
+
* RuboCop: Fix Naming/VariableNumber [leila-alderman] #3725
|
73
|
+
* Update BIN ranges for Elo cardtype [cdmackeyfree] #3769
|
74
|
+
* Orbital: Resolve CardIndicators issue [meagabeth] #3771
|
75
|
+
* Adyen: Add subMerchant fields [naashton] #3772
|
76
|
+
* PayPal Express: reduce param requirements [shasum] #3773
|
77
|
+
* PayU Latam: Support partial refunds [leila-alderman] #3774
|
78
|
+
* RuboCop: Fix Style/Alias [leila-alderman] #3727
|
79
|
+
* Stripe PI: Allow `on_behalf_of` to be passed alone #3776
|
80
|
+
* RuboCop: Fix Performance/RedundantMatch [leila-alderman] #3765
|
81
|
+
* RuboCop: Fix Layout/MultilineMethodCallBraceLayout [leila-alderman] #3763
|
82
|
+
* NMI: Add standardized 3DS fields [meagabeth] #3775
|
83
|
+
* Mundipagg: Add support for SubMerchant fields [meagabeth] #3779
|
84
|
+
* Stripe Payment Intents: Add request_three_d_secure option [molbrown] #3787
|
85
|
+
* Decidir: Add support for csmdds fields [naashton] #3786
|
86
|
+
* RuboCop: Fix Performance/StringReplacement [leila-alderman] #3782
|
87
|
+
* RuboCop: Fix Naming/HeredocDelimiterCase & Naming [leila-alderman] #3781
|
88
|
+
* BlueSnap: Add address fields to contact info [naashton] #3777
|
89
|
+
* RuboCop: Fix Layout/SpaceInsideHashLiteralBraces [leila-alderman] #3780
|
90
|
+
* RuboCop: Fix Style/AndOr [leila-alderman] #3783
|
91
|
+
* Checkout V2: Support ability to pass attempt_n3d 3ds field [naashton] #3788
|
92
|
+
* Elavon: Upgrade to `processxml.do` [therufs] #3784
|
93
|
+
* Checkout V2: Support for attempt_n3d 3DS field [naashton] #3790
|
94
|
+
* Elavon: Strip ampersands [therufs] #3795
|
95
|
+
* Paybox: Add support for 3DS 1.0 values [jcpaybox] #3335
|
96
|
+
* Decidir: Add additional fraud_detection options [cdmackeyfree] #3812
|
97
|
+
|
98
|
+
== Version 1.114.0
|
99
|
+
* BlueSnap: Add address1,address2,phone,shipping_* support #3749
|
100
|
+
* BlueSnap: Protect against `nil` metadata [carrigan] #3752
|
101
|
+
* Cybersource: [CyberSource] Ensure the default address doesn't override `ActionController::Parameters` [pi3r] #3755
|
102
|
+
|
103
|
+
== Version 1.113.0
|
104
|
+
* Orbital: Add cardIndicators field [meagabeth] #3734
|
105
|
+
* Openpay: Add Colombia to supported countries [molbrown] #3740
|
106
|
+
* Mercado Pago: Update Device Id Header field [cdmackeyfree] #3741
|
107
|
+
* RuboCop: Fix Style/TrailingCommaInHashLiteral [leila-alderman] #3718
|
108
|
+
* RuboCop: Fix Naming/PredicateName [leila-alderman] #3724
|
109
|
+
* RuboCop: Fix Style/Attr [leila-alderman] #3728
|
110
|
+
* Payflow: Use application_id to set buttonsource [britth] #3737
|
111
|
+
* HPS: Enable refunds using capture transaction [britth] #3738
|
112
|
+
* Quickbooks: Omit empty strings in address [leila-alderman] #3743
|
113
|
+
* BlueSnap: Add transactionMetaData support #3745
|
114
|
+
* Orbital: Fix typo in PC3DtlLineTot field [naashton] #3736
|
115
|
+
* Credorax: Send first and last name parameters for CFT transactions [britth] #3748
|
116
|
+
* Orbital: Update CardIndicators field to fix bug [meagabeth] #3746
|
117
|
+
* CyberSource: Always send default address [leila-alderman] #3747
|
118
|
+
* Netbanx: Reject partial refund on pending status [rockyhakjoong] #3735
|
119
|
+
|
5
120
|
== Version 1.112.0
|
6
121
|
* Cybersource: add `maestro` and `diners_club` eci brand mapping [bbraschi] #3708
|
7
122
|
* Cybersource: Ensure Partner Solution Id placement conforms to schema [britth] #3715
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Active Merchant
|
2
|
-
[![Build Status](https://
|
2
|
+
[![Build Status](https://github.com/activemerchant/active_merchant/workflows/CI/badge.svg?branch=master)](https://github.com/activemerchant/active_merchant/actions?query=workflow%3ACI)
|
3
3
|
[![Code Climate](https://codeclimate.com/github/activemerchant/active_merchant.svg)](https://codeclimate.com/github/activemerchant/active_merchant)
|
4
4
|
|
5
5
|
Active Merchant is an extraction from the ecommerce system [Shopify](http://www.shopify.com).
|
data/lib/active_merchant.rb
CHANGED
@@ -50,7 +50,7 @@ require 'active_merchant/version'
|
|
50
50
|
require 'active_merchant/country'
|
51
51
|
|
52
52
|
module ActiveMerchant
|
53
|
-
def self.deprecated(message, caller=Kernel.caller[1])
|
53
|
+
def self.deprecated(message, caller = Kernel.caller[1])
|
54
54
|
warning = caller + ': ' + message
|
55
55
|
if respond_to?(:logger) && logger.present?
|
56
56
|
logger.warn(warning)
|
@@ -28,7 +28,7 @@ module ActiveMerchant
|
|
28
28
|
def self.humanize(lower_case_and_underscored_word)
|
29
29
|
result = lower_case_and_underscored_word.to_s.dup
|
30
30
|
result.gsub!(/_id$/, '')
|
31
|
-
result.
|
31
|
+
result.tr!('_', ' ')
|
32
32
|
result.gsub(/([a-z\d]*)/i, &:downcase).gsub(/^\w/) { $&.upcase }
|
33
33
|
end
|
34
34
|
end
|
@@ -56,7 +56,7 @@ module ActiveMerchant
|
|
56
56
|
private
|
57
57
|
|
58
58
|
def internal_errors
|
59
|
-
@
|
59
|
+
@internal_errors ||= Errors.new
|
60
60
|
end
|
61
61
|
|
62
62
|
class Errors < Hash
|
@@ -75,7 +75,7 @@ module ActiveMerchant
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def empty?
|
78
|
-
all? { |
|
78
|
+
all? { |_k, v| v&.empty? }
|
79
79
|
end
|
80
80
|
|
81
81
|
def on(field)
|
@@ -24,6 +24,7 @@ module ActiveMerchant #:nodoc:
|
|
24
24
|
# * Naranja
|
25
25
|
# * UnionPay
|
26
26
|
# * Alia
|
27
|
+
# * Olimpica
|
27
28
|
#
|
28
29
|
# For testing purposes, use the 'bogus' credit card brand. This skips the vast majority of
|
29
30
|
# validations, allowing you to focus on your core concerns until you're ready to be more concerned
|
@@ -100,6 +101,7 @@ module ActiveMerchant #:nodoc:
|
|
100
101
|
# * +'naranja'+
|
101
102
|
# * +'union_pay'+
|
102
103
|
# * +'alia'+
|
104
|
+
# * +'olimpica'+
|
103
105
|
#
|
104
106
|
# Or, if you wish to test your implementation, +'bogus'+.
|
105
107
|
#
|
@@ -190,7 +192,7 @@ module ActiveMerchant #:nodoc:
|
|
190
192
|
'contactless' => 'Data was read by a Contactless EMV kernel. Issuer script results are not available.',
|
191
193
|
'contactless_magstripe' => 'Contactless data was read with a non-EMV protocol.',
|
192
194
|
'contact' => 'Data was read using the EMV protocol. Issuer script results may follow.',
|
193
|
-
'contact_quickchip' => 'Data was read by the Quickchip EMV kernel. Issuer script results are not available.'
|
195
|
+
'contact_quickchip' => 'Data was read by the Quickchip EMV kernel. Issuer script results are not available.'
|
194
196
|
}
|
195
197
|
|
196
198
|
# Returns the ciphertext of the card's encrypted PIN.
|
@@ -30,7 +30,8 @@ module ActiveMerchant #:nodoc:
|
|
30
30
|
in_bin_range?(num.slice(0, 6), CARNET_RANGES) ||
|
31
31
|
CARNET_BINS.any? { |bin| num.slice(0, bin.size) == bin }
|
32
32
|
)
|
33
|
-
}
|
33
|
+
},
|
34
|
+
'olimpica' => ->(num) { num =~ /^636853\d{10}$/ }
|
34
35
|
}
|
35
36
|
|
36
37
|
# http://www.barclaycard.co.uk/business/files/bin_rules.pdf
|
@@ -72,11 +73,57 @@ module ActiveMerchant #:nodoc:
|
|
72
73
|
]
|
73
74
|
|
74
75
|
MAESTRO_BINS = Set.new(
|
75
|
-
%w[
|
76
|
+
%w[ 500057
|
77
|
+
501018 501043 501045 501047 501049 501051 501072 501075 501087 501089 501095
|
78
|
+
501500
|
79
|
+
501879 502113 502301 503175
|
80
|
+
503645 503670
|
81
|
+
504310 504338 504363 504533 504587 504620 504639 504656 504738 504781 504910
|
82
|
+
507001 507002 507004 507082 507090
|
83
|
+
560014 560565 561033
|
84
|
+
572402 572610 572626
|
85
|
+
576904
|
86
|
+
578614
|
87
|
+
581149
|
88
|
+
585274 585697
|
89
|
+
586509
|
90
|
+
588729 588792
|
91
|
+
589244 589407 589471 589605 589633 589647 589671
|
92
|
+
590043 590206 590263 590265 590278 590361 590362 590379 590393 590590
|
93
|
+
591235 591420 591481 591620 591770 591948 591994
|
94
|
+
592024 592161 592184 592186 592201 592384 592393 592528 592566 592704 592735 592879 592884
|
95
|
+
593074 593264 593272 593355 593496 593556 593589 593666 593709 593825 593963 593994
|
96
|
+
594184 594409 594468 594475 594581 594665 594691 594710 594874 594968
|
97
|
+
595355 595364 595532 595547 595561 595568 595743 595929
|
98
|
+
596245 596289 596399 596405 596590 596608 596645 596646 596791 596808 596815 596846
|
99
|
+
597077 597094 597143 597370 597410 597765 597855 597862
|
100
|
+
598053 598054 598395 598585 598793 598794 598815 598835 598838 598880 598889
|
101
|
+
599000 599069 599089 599148 599191 599310 599741 599742 599867
|
102
|
+
601070
|
103
|
+
604983
|
104
|
+
606126
|
105
|
+
636380 636422 636502 636639
|
106
|
+
637046 637756
|
107
|
+
639130
|
108
|
+
690032]
|
76
109
|
)
|
77
110
|
|
78
111
|
# https://www.mastercard.us/content/dam/mccom/global/documents/mastercard-rules.pdf, page 73
|
79
112
|
MAESTRO_RANGES = [
|
113
|
+
(500032..500033),
|
114
|
+
(501015..501016),
|
115
|
+
(501020..501021),
|
116
|
+
(501023..501029),
|
117
|
+
(501038..501041),
|
118
|
+
(501053..501058),
|
119
|
+
(501060..501063),
|
120
|
+
(501066..501067),
|
121
|
+
(501080..501083),
|
122
|
+
(501091..501092),
|
123
|
+
(501104..501105),
|
124
|
+
(501107..501108),
|
125
|
+
(501104..501105),
|
126
|
+
(501107..501108),
|
80
127
|
(561200..561269),
|
81
128
|
(561271..561299),
|
82
129
|
(561320..561356),
|
@@ -101,14 +148,14 @@ module ActiveMerchant #:nodoc:
|
|
101
148
|
|
102
149
|
# https://dev.elo.com.br/apis/tabela-de-bins, download csv from left sidebar
|
103
150
|
ELO_RANGES = [
|
104
|
-
506707..506708, 506715..506715,
|
105
|
-
506745..506747, 506753..506753, 506774..
|
106
|
-
509020..
|
107
|
-
|
108
|
-
627780..627780, 636368..636368, 650031..650033, 650035..
|
109
|
-
|
110
|
-
650928..650928, 650938..650939, 650946..
|
111
|
-
|
151
|
+
506707..506708, 506715..506715, 506717..506722, 506724..506736, 506739..506743,
|
152
|
+
506745..506747, 506753..506753, 506774..506778, 509000..509007, 509009..509014,
|
153
|
+
509020..509030, 509035..509042, 509044..509089, 509091..509101, 509104..509807,
|
154
|
+
509831..509877, 509897..509900, 509918..509964, 509971..509986, 509995..509999,
|
155
|
+
627780..627780, 636368..636368, 650031..650033, 650035..650051, 650057..650081,
|
156
|
+
650406..650439, 650485..650504, 650506..650538, 650552..650598, 650720..650727,
|
157
|
+
650901..650922, 650928..650928, 650938..650939, 650946..650978, 651652..651704,
|
158
|
+
655000..655019, 655021..655057
|
112
159
|
]
|
113
160
|
|
114
161
|
# Alelo provides BIN ranges by e-mailing them out periodically.
|
@@ -329,7 +376,7 @@ module ActiveMerchant #:nodoc:
|
|
329
376
|
54 => 3, # 6 * 2 - 9
|
330
377
|
55 => 5, # etc ...
|
331
378
|
56 => 7,
|
332
|
-
57 => 9
|
379
|
+
57 => 9
|
333
380
|
}.freeze
|
334
381
|
|
335
382
|
# Checks the validity of a card number by use of the Luhn Algorithm.
|
@@ -95,7 +95,7 @@ module ActiveMerchant #:nodoc:
|
|
95
95
|
pickup_card: 'pick_up_card',
|
96
96
|
config_error: 'config_error',
|
97
97
|
test_mode_live_card: 'test_mode_live_card',
|
98
|
-
unsupported_feature: 'unsupported_feature'
|
98
|
+
unsupported_feature: 'unsupported_feature'
|
99
99
|
}
|
100
100
|
|
101
101
|
cattr_reader :implementations
|
@@ -26,16 +26,16 @@ module ActiveMerchant #:nodoc:
|
|
26
26
|
'132' => STANDARD_ERROR_CODE[:incorrect_address],
|
27
27
|
'133' => STANDARD_ERROR_CODE[:incorrect_address],
|
28
28
|
'134' => STANDARD_ERROR_CODE[:incorrect_address],
|
29
|
-
'135' => STANDARD_ERROR_CODE[:incorrect_address]
|
29
|
+
'135' => STANDARD_ERROR_CODE[:incorrect_address]
|
30
30
|
}
|
31
31
|
|
32
|
-
def initialize(options={})
|
32
|
+
def initialize(options = {})
|
33
33
|
requires!(options, :username, :password, :merchant_account)
|
34
34
|
@username, @password, @merchant_account = options.values_at(:username, :password, :merchant_account)
|
35
35
|
super
|
36
36
|
end
|
37
37
|
|
38
|
-
def purchase(money, payment, options={})
|
38
|
+
def purchase(money, payment, options = {})
|
39
39
|
if options[:execute_threed] || options[:threed_dynamic]
|
40
40
|
authorize(money, payment, options)
|
41
41
|
else
|
@@ -46,7 +46,7 @@ module ActiveMerchant #:nodoc:
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
def authorize(money, payment, options={})
|
49
|
+
def authorize(money, payment, options = {})
|
50
50
|
requires!(options, :order_id)
|
51
51
|
post = init_post(options)
|
52
52
|
add_invoice(post, money, options)
|
@@ -62,7 +62,7 @@ module ActiveMerchant #:nodoc:
|
|
62
62
|
commit('authorise', post, options)
|
63
63
|
end
|
64
64
|
|
65
|
-
def capture(money, authorization, options={})
|
65
|
+
def capture(money, authorization, options = {})
|
66
66
|
post = init_post(options)
|
67
67
|
add_invoice_for_modification(post, money, options)
|
68
68
|
add_reference(post, authorization, options)
|
@@ -70,7 +70,7 @@ module ActiveMerchant #:nodoc:
|
|
70
70
|
commit('capture', post, options)
|
71
71
|
end
|
72
72
|
|
73
|
-
def refund(money, authorization, options={})
|
73
|
+
def refund(money, authorization, options = {})
|
74
74
|
post = init_post(options)
|
75
75
|
add_invoice_for_modification(post, money, options)
|
76
76
|
add_original_reference(post, authorization, options)
|
@@ -78,13 +78,13 @@ module ActiveMerchant #:nodoc:
|
|
78
78
|
commit('refund', post, options)
|
79
79
|
end
|
80
80
|
|
81
|
-
def void(authorization, options={})
|
81
|
+
def void(authorization, options = {})
|
82
82
|
post = init_post(options)
|
83
83
|
add_reference(post, authorization, options)
|
84
84
|
commit('cancel', post, options)
|
85
85
|
end
|
86
86
|
|
87
|
-
def adjust(money, authorization, options={})
|
87
|
+
def adjust(money, authorization, options = {})
|
88
88
|
post = init_post(options)
|
89
89
|
add_invoice_for_modification(post, money, options)
|
90
90
|
add_reference(post, authorization, options)
|
@@ -92,7 +92,7 @@ module ActiveMerchant #:nodoc:
|
|
92
92
|
commit('adjustAuthorisation', post, options)
|
93
93
|
end
|
94
94
|
|
95
|
-
def store(credit_card, options={})
|
95
|
+
def store(credit_card, options = {})
|
96
96
|
requires!(options, :order_id)
|
97
97
|
post = init_post(options)
|
98
98
|
add_invoice(post, 0, options)
|
@@ -115,7 +115,7 @@ module ActiveMerchant #:nodoc:
|
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
118
|
-
def unstore(options={})
|
118
|
+
def unstore(options = {})
|
119
119
|
requires!(options, :shopper_reference, :recurring_detail_reference)
|
120
120
|
post = {}
|
121
121
|
|
@@ -126,7 +126,7 @@ module ActiveMerchant #:nodoc:
|
|
126
126
|
commit('disable', post, options)
|
127
127
|
end
|
128
128
|
|
129
|
-
def verify(credit_card, options={})
|
129
|
+
def verify(credit_card, options = {})
|
130
130
|
MultiResponse.run(:use_first_response) do |r|
|
131
131
|
r.process { authorize(0, credit_card, options) }
|
132
132
|
options[:idempotency_key] = nil
|
@@ -227,7 +227,16 @@ module ActiveMerchant #:nodoc:
|
|
227
227
|
end
|
228
228
|
|
229
229
|
def add_merchant_data(post, options)
|
230
|
-
post[:additionalData][:
|
230
|
+
post[:additionalData][:subMerchantID] = options[:sub_merchant_id] if options[:sub_merchant_id]
|
231
|
+
post[:additionalData][:subMerchantName] = options[:sub_merchant_name] if options[:sub_merchant_name]
|
232
|
+
post[:additionalData][:subMerchantStreet] = options[:sub_merchant_street] if options[:sub_merchant_street]
|
233
|
+
post[:additionalData][:subMerchantCity] = options[:sub_merchant_city] if options[:sub_merchant_city]
|
234
|
+
post[:additionalData][:subMerchantState] = options[:sub_merchant_state] if options[:sub_merchant_state]
|
235
|
+
post[:additionalData][:subMerchantPostalCode] = options[:sub_merchant_postal_code] if options[:sub_merchant_postal_code]
|
236
|
+
post[:additionalData][:subMerchantCountry] = options[:sub_merchant_country] if options[:sub_merchant_country]
|
237
|
+
post[:additionalData][:subMerchantTaxId] = options[:sub_merchant_tax_id] if options[:sub_merchant_tax_id]
|
238
|
+
post[:additionalData][:subMerchantMCC] = options[:sub_merchant_mcc] if options[:sub_merchant_mcc]
|
239
|
+
post[:additionalData] = post[:additionalData].merge(options[:sub_merchant_data]) if options[:sub_merchant_data]
|
231
240
|
end
|
232
241
|
|
233
242
|
def add_risk_data(post, options)
|
@@ -243,7 +252,7 @@ module ActiveMerchant #:nodoc:
|
|
243
252
|
splits = []
|
244
253
|
split_data.each do |split|
|
245
254
|
amount = {
|
246
|
-
value: split['amount']['value']
|
255
|
+
value: split['amount']['value']
|
247
256
|
}
|
248
257
|
amount[:currency] = split['amount']['currency'] if split['amount']['currency']
|
249
258
|
|
@@ -271,7 +280,7 @@ module ActiveMerchant #:nodoc:
|
|
271
280
|
post[:shopperReference] = options[:shopper_reference] if options[:shopper_reference]
|
272
281
|
end
|
273
282
|
|
274
|
-
def add_shopper_interaction(post, payment, options={})
|
283
|
+
def add_shopper_interaction(post, payment, options = {})
|
275
284
|
if (options.dig(:stored_credential, :initial_transaction) && options.dig(:stored_credential, :initiator) == 'cardholder') ||
|
276
285
|
(payment.respond_to?(:verification_value) && payment.verification_value && options.dig(:stored_credential, :initial_transaction).nil?) ||
|
277
286
|
payment.is_a?(NetworkTokenizationCreditCard)
|
@@ -364,7 +373,7 @@ module ActiveMerchant #:nodoc:
|
|
364
373
|
cvc: credit_card.verification_value
|
365
374
|
}
|
366
375
|
|
367
|
-
card.delete_if { |
|
376
|
+
card.delete_if { |_k, v| v.blank? }
|
368
377
|
card[:holderName] ||= 'Not Provided' if credit_card.is_a?(NetworkTokenizationCreditCard)
|
369
378
|
requires!(card, :expiryMonth, :expiryYear, :holderName, :number)
|
370
379
|
post[:card] = card
|
@@ -432,7 +441,8 @@ module ActiveMerchant #:nodoc:
|
|
432
441
|
return unless !options[:execute_threed].nil? || !options[:threed_dynamic].nil?
|
433
442
|
|
434
443
|
post[:browserInfo] = { userAgent: options[:user_agent], acceptHeader: options[:accept_header] } if options[:execute_threed] || options[:threed_dynamic]
|
435
|
-
post[:additionalData]
|
444
|
+
post[:additionalData] ||= {}
|
445
|
+
post[:additionalData][:executeThreeD] = options[:execute_threed] if !options[:execute_threed].nil?
|
436
446
|
end
|
437
447
|
end
|
438
448
|
|