activemerchant 1.43.3 → 1.44.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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG +133 -3
- data/CONTRIBUTORS +25 -0
- data/README.md +14 -39
- data/lib/active_merchant.rb +43 -2
- data/lib/active_merchant/billing.rb +3 -1
- data/lib/active_merchant/billing/base.rb +10 -2
- data/lib/active_merchant/billing/check.rb +29 -22
- data/lib/active_merchant/billing/compatibility.rb +120 -0
- data/lib/active_merchant/billing/credit_card.rb +129 -60
- data/lib/active_merchant/billing/credit_card_formatting.rb +4 -1
- data/lib/active_merchant/billing/credit_card_methods.rb +60 -43
- data/lib/active_merchant/billing/cvv_result.rb +15 -15
- data/lib/active_merchant/billing/gateway.rb +46 -11
- data/lib/active_merchant/billing/gateways/adyen.rb +205 -0
- data/lib/active_merchant/billing/gateways/app55.rb +1 -9
- data/lib/active_merchant/billing/gateways/authorize_net.rb +7 -391
- data/lib/active_merchant/billing/gateways/authorize_net_arb.rb +417 -0
- data/lib/active_merchant/billing/gateways/authorize_net_cim.rb +20 -4
- data/lib/active_merchant/billing/gateways/balanced.rb +127 -367
- data/lib/active_merchant/billing/gateways/barclays_epdq.rb +1 -1
- data/lib/active_merchant/billing/gateways/beanstream.rb +25 -6
- data/lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb +3 -3
- data/lib/active_merchant/billing/gateways/blue_pay.rb +11 -3
- data/lib/active_merchant/billing/gateways/bogus.rb +1 -13
- data/lib/active_merchant/billing/gateways/borgun.rb +211 -0
- data/lib/active_merchant/billing/gateways/braintree_blue.rb +31 -13
- data/lib/active_merchant/billing/gateways/bridge_pay.rb +7 -0
- data/lib/active_merchant/billing/gateways/cashnet.rb +184 -0
- data/lib/active_merchant/billing/gateways/cc5.rb +45 -0
- data/lib/active_merchant/billing/gateways/certo_direct.rb +3 -2
- data/lib/active_merchant/billing/gateways/commercegate.rb +143 -0
- data/lib/active_merchant/billing/gateways/conekta.rb +56 -81
- data/lib/active_merchant/billing/gateways/cyber_source.rb +1 -0
- data/lib/active_merchant/billing/gateways/data_cash.rb +3 -1
- data/lib/active_merchant/billing/gateways/efsnet.rb +3 -14
- data/lib/active_merchant/billing/gateways/elavon.rb +45 -9
- data/lib/active_merchant/billing/gateways/epay.rb +2 -2
- data/lib/active_merchant/billing/gateways/eway.rb +1 -12
- data/lib/active_merchant/billing/gateways/eway_managed.rb +1 -1
- data/lib/active_merchant/billing/gateways/eway_rapid.rb +233 -202
- data/lib/active_merchant/billing/gateways/exact.rb +1 -1
- data/lib/active_merchant/billing/gateways/fat_zebra.rb +1 -1
- data/lib/active_merchant/billing/gateways/federated_canada.rb +1 -8
- data/lib/active_merchant/billing/gateways/finansbank.rb +2 -1
- data/lib/active_merchant/billing/gateways/first_pay.rb +108 -124
- data/lib/active_merchant/billing/gateways/firstdata_e4.rb +43 -13
- data/lib/active_merchant/billing/gateways/garanti.rb +2 -2
- data/lib/active_merchant/billing/gateways/hps.rb +281 -0
- data/lib/active_merchant/billing/gateways/iats_payments.rb +2 -2
- data/lib/active_merchant/billing/gateways/ideal/ideal_base.rb +1 -4
- data/lib/active_merchant/billing/gateways/inspire.rb +0 -8
- data/lib/active_merchant/billing/gateways/iridium.rb +25 -3
- data/lib/active_merchant/billing/gateways/jetpay.rb +1 -1
- data/lib/active_merchant/billing/gateways/linkpoint.rb +4 -13
- data/lib/active_merchant/billing/gateways/litle.rb +10 -4
- data/lib/active_merchant/billing/gateways/maxipago.rb +7 -0
- data/lib/active_merchant/billing/gateways/merchant_e_solutions.rb +0 -6
- data/lib/active_merchant/billing/gateways/merchant_ware.rb +4 -11
- data/lib/active_merchant/billing/gateways/merchant_ware_version_four.rb +3 -10
- data/lib/active_merchant/billing/gateways/mercury.rb +0 -7
- data/lib/active_merchant/billing/gateways/metrics_global.rb +1 -20
- data/lib/active_merchant/billing/gateways/migs.rb +1 -1
- data/lib/active_merchant/billing/gateways/moneris.rb +29 -21
- data/lib/active_merchant/billing/gateways/moneris_us.rb +1 -11
- data/lib/active_merchant/billing/gateways/money_movers.rb +1 -8
- data/lib/active_merchant/billing/gateways/nab_transact.rb +16 -15
- data/lib/active_merchant/billing/gateways/net_registry.rb +1 -1
- data/lib/active_merchant/billing/gateways/netbilling.rb +0 -7
- data/lib/active_merchant/billing/gateways/network_merchants.rb +21 -18
- data/lib/active_merchant/billing/gateways/ogone.rb +3 -3
- data/lib/active_merchant/billing/gateways/openpay.rb +1 -8
- data/lib/active_merchant/billing/gateways/optimal_payment.rb +34 -23
- data/lib/active_merchant/billing/gateways/orbital.rb +121 -4
- data/lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb +22 -21
- data/lib/active_merchant/billing/gateways/pac_net_raven.rb +2 -9
- data/lib/active_merchant/billing/gateways/pago_facil.rb +122 -0
- data/lib/active_merchant/billing/gateways/pay_junction.rb +3 -13
- data/lib/active_merchant/billing/gateways/pay_secure.rb +0 -7
- data/lib/active_merchant/billing/gateways/paybox_direct.rb +1 -9
- data/lib/active_merchant/billing/gateways/payex.rb +1 -1
- data/lib/active_merchant/billing/gateways/payflow.rb +7 -1
- data/lib/active_merchant/billing/gateways/payflow/payflow_common_api.rb +15 -15
- data/lib/active_merchant/billing/gateways/payflow_express.rb +19 -19
- data/lib/active_merchant/billing/gateways/payment_express.rb +1 -1
- data/lib/active_merchant/billing/gateways/paymill.rb +7 -2
- data/lib/active_merchant/billing/gateways/paypal.rb +25 -14
- data/lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb +1 -1
- data/lib/active_merchant/billing/gateways/paypal/paypal_recurring_api.rb +16 -2
- data/lib/active_merchant/billing/gateways/paypal_digital_goods.rb +3 -2
- data/lib/active_merchant/billing/gateways/paypal_express.rb +25 -0
- data/lib/active_merchant/billing/gateways/payscout.rb +1 -8
- data/lib/active_merchant/billing/gateways/pin.rb +39 -7
- data/lib/active_merchant/billing/gateways/plugnpay.rb +1 -12
- data/lib/active_merchant/billing/gateways/psigate.rb +1 -12
- data/lib/active_merchant/billing/gateways/qbms.rb +1 -1
- data/lib/active_merchant/billing/gateways/quantum.rb +2 -2
- data/lib/active_merchant/billing/gateways/quickpay.rb +17 -15
- data/lib/active_merchant/billing/gateways/realex.rb +3 -12
- data/lib/active_merchant/billing/gateways/sage.rb +1 -1
- data/lib/active_merchant/billing/gateways/sage/sage_bankcard.rb +2 -8
- data/lib/active_merchant/billing/gateways/sage/sage_core.rb +1 -1
- data/lib/active_merchant/billing/gateways/sage/sage_virtual_check.rb +1 -1
- data/lib/active_merchant/billing/gateways/sage_pay.rb +93 -28
- data/lib/active_merchant/billing/gateways/secure_net.rb +1 -8
- data/lib/active_merchant/billing/gateways/secure_pay_au.rb +3 -3
- data/lib/active_merchant/billing/gateways/secure_pay_tech.rb +0 -7
- data/lib/active_merchant/billing/gateways/skip_jack.rb +1 -2
- data/lib/active_merchant/billing/gateways/smart_ps.rb +8 -2
- data/lib/active_merchant/billing/gateways/spreedly_core.rb +2 -1
- data/lib/active_merchant/billing/gateways/stripe.rb +14 -15
- data/lib/active_merchant/billing/gateways/swipe_checkout.rb +0 -1
- data/lib/active_merchant/billing/gateways/trust_commerce.rb +4 -9
- data/lib/active_merchant/billing/gateways/usa_epay_advanced.rb +46 -43
- data/lib/active_merchant/billing/gateways/usa_epay_transaction.rb +7 -0
- data/lib/active_merchant/billing/gateways/verifi.rb +1 -8
- data/lib/active_merchant/billing/gateways/viaklix.rb +0 -6
- data/lib/active_merchant/billing/gateways/vindicia.rb +68 -44
- data/lib/active_merchant/billing/gateways/webpay.rb +1 -9
- data/lib/active_merchant/billing/gateways/wirecard.rb +117 -11
- data/lib/active_merchant/billing/gateways/worldpay.rb +50 -22
- data/lib/active_merchant/billing/gateways/worldpay_us.rb +181 -0
- data/lib/active_merchant/billing/model.rb +30 -0
- data/lib/active_merchant/billing/rails.rb +3 -0
- data/lib/active_merchant/billing/response.rb +20 -15
- data/lib/active_merchant/country.rb +327 -0
- data/lib/active_merchant/empty.rb +20 -0
- data/lib/active_merchant/errors.rb +29 -0
- data/lib/active_merchant/offsite_payments_shim.rb +19 -0
- data/lib/active_merchant/version.rb +1 -1
- metadata +60 -243
- metadata.gz.sig +0 -0
- data/gem-public_cert.pem +0 -21
- data/lib/active_merchant/billing/expiry_date.rb +0 -34
- data/lib/active_merchant/billing/gateways/orbital/avs_result.rb +0 -93
- data/lib/active_merchant/billing/gateways/orbital/cvv_result.rb +0 -34
- data/lib/active_merchant/billing/integrations.rb +0 -17
- data/lib/active_merchant/billing/integrations/a1agregator.rb +0 -26
- data/lib/active_merchant/billing/integrations/a1agregator/helper.rb +0 -31
- data/lib/active_merchant/billing/integrations/a1agregator/notification.rb +0 -186
- data/lib/active_merchant/billing/integrations/a1agregator/status.rb +0 -38
- data/lib/active_merchant/billing/integrations/action_view_helper.rb +0 -78
- data/lib/active_merchant/billing/integrations/authorize_net_sim.rb +0 -38
- data/lib/active_merchant/billing/integrations/authorize_net_sim/helper.rb +0 -229
- data/lib/active_merchant/billing/integrations/authorize_net_sim/notification.rb +0 -340
- data/lib/active_merchant/billing/integrations/bit_pay.rb +0 -30
- data/lib/active_merchant/billing/integrations/bit_pay/helper.rb +0 -66
- data/lib/active_merchant/billing/integrations/bit_pay/notification.rb +0 -74
- data/lib/active_merchant/billing/integrations/bit_pay/return.rb +0 -10
- data/lib/active_merchant/billing/integrations/bogus.rb +0 -23
- data/lib/active_merchant/billing/integrations/bogus/helper.rb +0 -17
- data/lib/active_merchant/billing/integrations/bogus/notification.rb +0 -11
- data/lib/active_merchant/billing/integrations/bogus/return.rb +0 -10
- data/lib/active_merchant/billing/integrations/chronopay.rb +0 -23
- data/lib/active_merchant/billing/integrations/chronopay/helper.rb +0 -120
- data/lib/active_merchant/billing/integrations/chronopay/notification.rb +0 -158
- data/lib/active_merchant/billing/integrations/chronopay/return.rb +0 -10
- data/lib/active_merchant/billing/integrations/citrus.rb +0 -28
- data/lib/active_merchant/billing/integrations/citrus/helper.rb +0 -57
- data/lib/active_merchant/billing/integrations/citrus/notification.rb +0 -133
- data/lib/active_merchant/billing/integrations/citrus/return.rb +0 -40
- data/lib/active_merchant/billing/integrations/direc_pay.rb +0 -41
- data/lib/active_merchant/billing/integrations/direc_pay/helper.rb +0 -200
- data/lib/active_merchant/billing/integrations/direc_pay/notification.rb +0 -76
- data/lib/active_merchant/billing/integrations/direc_pay/return.rb +0 -32
- data/lib/active_merchant/billing/integrations/direc_pay/status.rb +0 -37
- data/lib/active_merchant/billing/integrations/directebanking.rb +0 -47
- data/lib/active_merchant/billing/integrations/directebanking/helper.rb +0 -90
- data/lib/active_merchant/billing/integrations/directebanking/notification.rb +0 -120
- data/lib/active_merchant/billing/integrations/directebanking/return.rb +0 -11
- data/lib/active_merchant/billing/integrations/doku.rb +0 -24
- data/lib/active_merchant/billing/integrations/doku/helper.rb +0 -102
- data/lib/active_merchant/billing/integrations/doku/notification.rb +0 -69
- data/lib/active_merchant/billing/integrations/doku/return.rb +0 -10
- data/lib/active_merchant/billing/integrations/dotpay.rb +0 -22
- data/lib/active_merchant/billing/integrations/dotpay/helper.rb +0 -77
- data/lib/active_merchant/billing/integrations/dotpay/notification.rb +0 -86
- data/lib/active_merchant/billing/integrations/dotpay/return.rb +0 -11
- data/lib/active_merchant/billing/integrations/dwolla.rb +0 -23
- data/lib/active_merchant/billing/integrations/dwolla/common.rb +0 -23
- data/lib/active_merchant/billing/integrations/dwolla/helper.rb +0 -43
- data/lib/active_merchant/billing/integrations/dwolla/notification.rb +0 -64
- data/lib/active_merchant/billing/integrations/dwolla/return.rb +0 -49
- data/lib/active_merchant/billing/integrations/e_payment_plans.rb +0 -48
- data/lib/active_merchant/billing/integrations/e_payment_plans/helper.rb +0 -34
- data/lib/active_merchant/billing/integrations/e_payment_plans/notification.rb +0 -84
- data/lib/active_merchant/billing/integrations/easy_pay.rb +0 -30
- data/lib/active_merchant/billing/integrations/easy_pay/common.rb +0 -40
- data/lib/active_merchant/billing/integrations/easy_pay/helper.rb +0 -36
- data/lib/active_merchant/billing/integrations/easy_pay/notification.rb +0 -59
- data/lib/active_merchant/billing/integrations/epay.rb +0 -21
- data/lib/active_merchant/billing/integrations/epay/helper.rb +0 -55
- data/lib/active_merchant/billing/integrations/epay/notification.rb +0 -110
- data/lib/active_merchant/billing/integrations/first_data.rb +0 -38
- data/lib/active_merchant/billing/integrations/first_data/helper.rb +0 -61
- data/lib/active_merchant/billing/integrations/first_data/notification.rb +0 -56
- data/lib/active_merchant/billing/integrations/gestpay.rb +0 -25
- data/lib/active_merchant/billing/integrations/gestpay/common.rb +0 -42
- data/lib/active_merchant/billing/integrations/gestpay/helper.rb +0 -70
- data/lib/active_merchant/billing/integrations/gestpay/notification.rb +0 -85
- data/lib/active_merchant/billing/integrations/gestpay/return.rb +0 -10
- data/lib/active_merchant/billing/integrations/helper.rb +0 -123
- data/lib/active_merchant/billing/integrations/hi_trust.rb +0 -27
- data/lib/active_merchant/billing/integrations/hi_trust/helper.rb +0 -58
- data/lib/active_merchant/billing/integrations/hi_trust/notification.rb +0 -59
- data/lib/active_merchant/billing/integrations/hi_trust/return.rb +0 -68
- data/lib/active_merchant/billing/integrations/ipay88.rb +0 -23
- data/lib/active_merchant/billing/integrations/ipay88/helper.rb +0 -118
- data/lib/active_merchant/billing/integrations/ipay88/notification.rb +0 -103
- data/lib/active_merchant/billing/integrations/ipay88/return.rb +0 -29
- data/lib/active_merchant/billing/integrations/klarna.rb +0 -71
- data/lib/active_merchant/billing/integrations/klarna/helper.rb +0 -123
- data/lib/active_merchant/billing/integrations/klarna/notification.rb +0 -103
- data/lib/active_merchant/billing/integrations/liqpay.rb +0 -30
- data/lib/active_merchant/billing/integrations/liqpay/helper.rb +0 -43
- data/lib/active_merchant/billing/integrations/liqpay/notification.rb +0 -89
- data/lib/active_merchant/billing/integrations/liqpay/return.rb +0 -83
- data/lib/active_merchant/billing/integrations/maksuturva.rb +0 -86
- data/lib/active_merchant/billing/integrations/maksuturva/helper.rb +0 -119
- data/lib/active_merchant/billing/integrations/maksuturva/notification.rb +0 -48
- data/lib/active_merchant/billing/integrations/mollie_ideal.rb +0 -98
- data/lib/active_merchant/billing/integrations/mollie_ideal/helper.rb +0 -67
- data/lib/active_merchant/billing/integrations/mollie_ideal/notification.rb +0 -69
- data/lib/active_merchant/billing/integrations/mollie_ideal/return.rb +0 -10
- data/lib/active_merchant/billing/integrations/moneybookers.rb +0 -26
- data/lib/active_merchant/billing/integrations/moneybookers/helper.rb +0 -75
- data/lib/active_merchant/billing/integrations/moneybookers/notification.rb +0 -123
- data/lib/active_merchant/billing/integrations/nochex.rb +0 -88
- data/lib/active_merchant/billing/integrations/nochex/helper.rb +0 -68
- data/lib/active_merchant/billing/integrations/nochex/notification.rb +0 -94
- data/lib/active_merchant/billing/integrations/nochex/return.rb +0 -10
- data/lib/active_merchant/billing/integrations/notification.rb +0 -71
- data/lib/active_merchant/billing/integrations/pag_seguro.rb +0 -53
- data/lib/active_merchant/billing/integrations/pag_seguro/helper.rb +0 -121
- data/lib/active_merchant/billing/integrations/pag_seguro/notification.rb +0 -104
- data/lib/active_merchant/billing/integrations/paxum.rb +0 -44
- data/lib/active_merchant/billing/integrations/paxum/common.rb +0 -24
- data/lib/active_merchant/billing/integrations/paxum/helper.rb +0 -42
- data/lib/active_merchant/billing/integrations/paxum/notification.rb +0 -33
- data/lib/active_merchant/billing/integrations/pay_fast.rb +0 -70
- data/lib/active_merchant/billing/integrations/pay_fast/common.rb +0 -42
- data/lib/active_merchant/billing/integrations/pay_fast/helper.rb +0 -50
- data/lib/active_merchant/billing/integrations/pay_fast/notification.rb +0 -134
- data/lib/active_merchant/billing/integrations/pay_fast/return.rb +0 -10
- data/lib/active_merchant/billing/integrations/paydollar.rb +0 -59
- data/lib/active_merchant/billing/integrations/paydollar/helper.rb +0 -41
- data/lib/active_merchant/billing/integrations/paydollar/notification.rb +0 -64
- data/lib/active_merchant/billing/integrations/paydollar/return.rb +0 -15
- data/lib/active_merchant/billing/integrations/payflow_link.rb +0 -21
- data/lib/active_merchant/billing/integrations/payflow_link/helper.rb +0 -116
- data/lib/active_merchant/billing/integrations/payflow_link/notification.rb +0 -78
- data/lib/active_merchant/billing/integrations/paypal.rb +0 -39
- data/lib/active_merchant/billing/integrations/paypal/helper.rb +0 -119
- data/lib/active_merchant/billing/integrations/paypal/notification.rb +0 -227
- data/lib/active_merchant/billing/integrations/paypal/return.rb +0 -10
- data/lib/active_merchant/billing/integrations/paypal_payments_advanced.rb +0 -20
- data/lib/active_merchant/billing/integrations/paypal_payments_advanced/helper.rb +0 -15
- data/lib/active_merchant/billing/integrations/paysbuy.rb +0 -36
- data/lib/active_merchant/billing/integrations/paysbuy/helper.rb +0 -15
- data/lib/active_merchant/billing/integrations/paysbuy/notification.rb +0 -39
- data/lib/active_merchant/billing/integrations/payu_in.rb +0 -36
- data/lib/active_merchant/billing/integrations/payu_in/helper.rb +0 -76
- data/lib/active_merchant/billing/integrations/payu_in/notification.rb +0 -154
- data/lib/active_merchant/billing/integrations/payu_in/return.rb +0 -36
- data/lib/active_merchant/billing/integrations/payu_in_paisa.rb +0 -30
- data/lib/active_merchant/billing/integrations/payu_in_paisa/helper.rb +0 -19
- data/lib/active_merchant/billing/integrations/payu_in_paisa/notification.rb +0 -13
- data/lib/active_merchant/billing/integrations/payu_in_paisa/return.rb +0 -16
- data/lib/active_merchant/billing/integrations/platron.rb +0 -28
- data/lib/active_merchant/billing/integrations/platron/helper.rb +0 -32
- data/lib/active_merchant/billing/integrations/platron/notification.rb +0 -113
- data/lib/active_merchant/billing/integrations/pxpay.rb +0 -31
- data/lib/active_merchant/billing/integrations/pxpay/helper.rb +0 -113
- data/lib/active_merchant/billing/integrations/pxpay/notification.rb +0 -157
- data/lib/active_merchant/billing/integrations/pxpay/return.rb +0 -25
- data/lib/active_merchant/billing/integrations/quickpay.rb +0 -21
- data/lib/active_merchant/billing/integrations/quickpay/helper.rb +0 -96
- data/lib/active_merchant/billing/integrations/quickpay/notification.rb +0 -137
- data/lib/active_merchant/billing/integrations/rbkmoney.rb +0 -17
- data/lib/active_merchant/billing/integrations/rbkmoney/helper.rb +0 -23
- data/lib/active_merchant/billing/integrations/rbkmoney/notification.rb +0 -91
- data/lib/active_merchant/billing/integrations/return.rb +0 -42
- data/lib/active_merchant/billing/integrations/robokassa.rb +0 -49
- data/lib/active_merchant/billing/integrations/robokassa/common.rb +0 -19
- data/lib/active_merchant/billing/integrations/robokassa/helper.rb +0 -50
- data/lib/active_merchant/billing/integrations/robokassa/notification.rb +0 -55
- data/lib/active_merchant/billing/integrations/robokassa/return.rb +0 -17
- data/lib/active_merchant/billing/integrations/sage_pay_form.rb +0 -37
- data/lib/active_merchant/billing/integrations/sage_pay_form/encryption.rb +0 -33
- data/lib/active_merchant/billing/integrations/sage_pay_form/helper.rb +0 -136
- data/lib/active_merchant/billing/integrations/sage_pay_form/notification.rb +0 -210
- data/lib/active_merchant/billing/integrations/sage_pay_form/return.rb +0 -31
- data/lib/active_merchant/billing/integrations/two_checkout.rb +0 -44
- data/lib/active_merchant/billing/integrations/two_checkout/helper.rb +0 -107
- data/lib/active_merchant/billing/integrations/two_checkout/notification.rb +0 -171
- data/lib/active_merchant/billing/integrations/two_checkout/return.rb +0 -58
- data/lib/active_merchant/billing/integrations/universal.rb +0 -23
- data/lib/active_merchant/billing/integrations/universal/helper.rb +0 -76
- data/lib/active_merchant/billing/integrations/universal/notification.rb +0 -52
- data/lib/active_merchant/billing/integrations/universal/return.rb +0 -18
- data/lib/active_merchant/billing/integrations/valitor.rb +0 -33
- data/lib/active_merchant/billing/integrations/valitor/helper.rb +0 -86
- data/lib/active_merchant/billing/integrations/valitor/notification.rb +0 -13
- data/lib/active_merchant/billing/integrations/valitor/response_fields.rb +0 -97
- data/lib/active_merchant/billing/integrations/valitor/return.rb +0 -13
- data/lib/active_merchant/billing/integrations/verkkomaksut.rb +0 -20
- data/lib/active_merchant/billing/integrations/verkkomaksut/helper.rb +0 -88
- data/lib/active_merchant/billing/integrations/verkkomaksut/notification.rb +0 -59
- data/lib/active_merchant/billing/integrations/web_pay.rb +0 -45
- data/lib/active_merchant/billing/integrations/web_pay/common.rb +0 -50
- data/lib/active_merchant/billing/integrations/web_pay/helper.rb +0 -68
- data/lib/active_merchant/billing/integrations/web_pay/notification.rb +0 -51
- data/lib/active_merchant/billing/integrations/webmoney.rb +0 -43
- data/lib/active_merchant/billing/integrations/webmoney/common.rb +0 -17
- data/lib/active_merchant/billing/integrations/webmoney/helper.rb +0 -40
- data/lib/active_merchant/billing/integrations/webmoney/notification.rb +0 -47
- data/lib/active_merchant/billing/integrations/wirecard_checkout_page.rb +0 -39
- data/lib/active_merchant/billing/integrations/wirecard_checkout_page/common.rb +0 -104
- data/lib/active_merchant/billing/integrations/wirecard_checkout_page/helper.rb +0 -145
- data/lib/active_merchant/billing/integrations/wirecard_checkout_page/notification.rb +0 -101
- data/lib/active_merchant/billing/integrations/wirecard_checkout_page/return.rb +0 -35
- data/lib/active_merchant/billing/integrations/world_pay.rb +0 -34
- data/lib/active_merchant/billing/integrations/world_pay/helper.rb +0 -101
- data/lib/active_merchant/billing/integrations/world_pay/notification.rb +0 -160
|
@@ -87,7 +87,7 @@ module ActiveMerchant #:nodoc:
|
|
|
87
87
|
post[:card_token] = creditcard
|
|
88
88
|
post[:cvv] = options[:cvv]
|
|
89
89
|
elsif creditcard.is_a?(Hash)
|
|
90
|
-
deprecated "Passing the credit card as a Hash is deprecated. Use a String and put the (optional) CVV in the options hash instead."
|
|
90
|
+
ActiveMerchant.deprecated "Passing the credit card as a Hash is deprecated. Use a String and put the (optional) CVV in the options hash instead."
|
|
91
91
|
post[:card_token] = creditcard[:token]
|
|
92
92
|
post[:cvv] = creditcard[:cvv]
|
|
93
93
|
else
|
|
@@ -58,7 +58,7 @@ module ActiveMerchant #:nodoc:
|
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
def credit(money, authorization, options = {})
|
|
61
|
-
deprecated CREDIT_DEPRECATION_MESSAGE
|
|
61
|
+
ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE
|
|
62
62
|
refund(money, authorization, options)
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -107,12 +107,6 @@ module ActiveMerchant #:nodoc:
|
|
|
107
107
|
post[:cvv] = creditcard.verification_value
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
-
def expdate(creditcard)
|
|
111
|
-
year = sprintf("%.4i", creditcard.year)
|
|
112
|
-
month = sprintf("%.2i", creditcard.month)
|
|
113
|
-
"#{month}#{year[-2..-1]}"
|
|
114
|
-
end
|
|
115
|
-
|
|
116
110
|
def parse(body)
|
|
117
111
|
body.split('&').inject({}) do |memo, x|
|
|
118
112
|
k, v = x.split('=')
|
|
@@ -126,7 +120,6 @@ module ActiveMerchant #:nodoc:
|
|
|
126
120
|
data = ssl_post(self.live_url, post_data(action, parameters))
|
|
127
121
|
response = parse(data)
|
|
128
122
|
message = message_from(response)
|
|
129
|
-
test_mode = test?
|
|
130
123
|
|
|
131
124
|
Response.new(success?(response), message, response,
|
|
132
125
|
:test => test?,
|
|
@@ -3,7 +3,8 @@ require File.dirname(__FILE__) + '/cc5'
|
|
|
3
3
|
module ActiveMerchant #:nodoc:
|
|
4
4
|
module Billing #:nodoc:
|
|
5
5
|
class FinansbankGateway < CC5Gateway
|
|
6
|
-
self.live_url =
|
|
6
|
+
self.live_url = 'https://www.fbwebpos.com/servlet/cc5ApiServer'
|
|
7
|
+
self.test_url = 'https://testsanalpos.est.com.tr/servlet/cc5ApiServer'
|
|
7
8
|
|
|
8
9
|
# The countries the gateway supports merchants from as 2 digit ISO country codes
|
|
9
10
|
self.supported_countries = ['US', 'TR']
|
|
@@ -1,176 +1,160 @@
|
|
|
1
|
+
require 'nokogiri'
|
|
2
|
+
|
|
1
3
|
module ActiveMerchant #:nodoc:
|
|
2
4
|
module Billing #:nodoc:
|
|
3
5
|
class FirstPayGateway < Gateway
|
|
4
|
-
|
|
5
|
-
# Fields that will be sent even if they are blank
|
|
6
|
-
self.required_fields = [ :action, :amount, :trackid ]
|
|
7
|
-
end
|
|
6
|
+
self.live_url = 'https://secure.1stpaygateway.net/secure/gateway/xmlgateway.aspx'
|
|
8
7
|
|
|
9
|
-
# both URLs are IP restricted
|
|
10
|
-
self.test_url = 'https://apgcert.first-pay.com/AcqENGIN/SecureCapture'
|
|
11
|
-
self.live_url = 'https://acqengin.first-pay.com/AcqENGIN/SecureCapture'
|
|
12
|
-
|
|
13
|
-
# The countries the gateway supports merchants from as 2 digit ISO country codes
|
|
14
8
|
self.supported_countries = ['US']
|
|
9
|
+
self.default_currency = 'USD'
|
|
10
|
+
self.money_format = :dollars
|
|
11
|
+
self.supported_cardtypes = [:visa, :master, :american_express, :discover]
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
self.
|
|
18
|
-
|
|
19
|
-
# The homepage URL of the gateway
|
|
20
|
-
self.homepage_url = 'http://www.first-pay.com'
|
|
21
|
-
|
|
22
|
-
# The name of the gateway
|
|
23
|
-
self.display_name = 'First Pay'
|
|
24
|
-
|
|
25
|
-
# all transactions are in cents
|
|
26
|
-
self.money_format = :cents
|
|
27
|
-
|
|
28
|
-
ACTIONS = {
|
|
29
|
-
'sale' => 1,
|
|
30
|
-
'credit' => 2,
|
|
31
|
-
'void' => 3
|
|
32
|
-
}
|
|
13
|
+
self.homepage_url = 'http://1stpaygateway.net/'
|
|
14
|
+
self.display_name = '1stPayGateway.Net'
|
|
33
15
|
|
|
34
|
-
def initialize(options
|
|
35
|
-
requires!(options, :
|
|
16
|
+
def initialize(options={})
|
|
17
|
+
requires!(options, :transaction_center_id, :gateway_id)
|
|
36
18
|
super
|
|
37
19
|
end
|
|
38
20
|
|
|
39
|
-
def purchase(money,
|
|
40
|
-
post =
|
|
41
|
-
add_invoice(post, options)
|
|
42
|
-
|
|
43
|
-
add_address(post, options)
|
|
21
|
+
def purchase(money, payment, options={})
|
|
22
|
+
post = {}
|
|
23
|
+
add_invoice(post, money, options)
|
|
24
|
+
add_payment(post, payment)
|
|
25
|
+
add_address(post, payment, options)
|
|
44
26
|
add_customer_data(post, options)
|
|
45
27
|
|
|
46
|
-
commit('sale',
|
|
28
|
+
commit('sale', post)
|
|
47
29
|
end
|
|
48
30
|
|
|
49
|
-
def
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
post
|
|
53
|
-
|
|
54
|
-
add_creditcard(post, options[:credit_card])
|
|
55
|
-
add_address(post, options)
|
|
31
|
+
def authorize(money, payment, options={})
|
|
32
|
+
post = {}
|
|
33
|
+
add_invoice(post, money, options)
|
|
34
|
+
add_payment(post, payment)
|
|
35
|
+
add_address(post, payment, options)
|
|
56
36
|
add_customer_data(post, options)
|
|
57
|
-
add_credit_data(post, reference)
|
|
58
37
|
|
|
59
|
-
commit('
|
|
38
|
+
commit('auth', post)
|
|
60
39
|
end
|
|
61
40
|
|
|
62
|
-
def
|
|
63
|
-
|
|
64
|
-
|
|
41
|
+
def capture(money, authorization, options={})
|
|
42
|
+
post = {}
|
|
43
|
+
add_reference(post, 'settle', money, authorization)
|
|
44
|
+
commit('settle', post)
|
|
65
45
|
end
|
|
66
46
|
|
|
67
|
-
def
|
|
68
|
-
post =
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
add_invoice(post, options)
|
|
72
|
-
add_customer_data(post, options)
|
|
73
|
-
|
|
74
|
-
commit('void', money, post)
|
|
47
|
+
def refund(money, authorization, options={})
|
|
48
|
+
post = {}
|
|
49
|
+
add_reference(post, 'credit', money, authorization)
|
|
50
|
+
commit('credit', post)
|
|
75
51
|
end
|
|
76
52
|
|
|
53
|
+
def void(authorization, options={})
|
|
54
|
+
post = {}
|
|
55
|
+
add_reference(post, 'void', nil, authorization)
|
|
56
|
+
commit('void', post)
|
|
57
|
+
end
|
|
77
58
|
|
|
78
59
|
private
|
|
79
60
|
|
|
80
|
-
def
|
|
81
|
-
post[:
|
|
82
|
-
post[:
|
|
61
|
+
def add_authentication(post, options)
|
|
62
|
+
post[:transaction_center_id] = options[:transaction_center_id]
|
|
63
|
+
post[:gateway_id] = options[:gateway_id]
|
|
83
64
|
end
|
|
84
65
|
|
|
85
|
-
def
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
post[:city] = billing_address[:city]
|
|
89
|
-
post[:state] = billing_address[:state]
|
|
90
|
-
post[:zip] = billing_address[:zip]
|
|
91
|
-
post[:country] = billing_address[:country]
|
|
92
|
-
end
|
|
66
|
+
def add_customer_data(post, options)
|
|
67
|
+
post[:owner_email] = options[:email] if options[:email]
|
|
68
|
+
post[:remote_ip_address] = options[:ip] if options[:ip]
|
|
93
69
|
end
|
|
94
70
|
|
|
95
|
-
def
|
|
96
|
-
|
|
71
|
+
def add_address(post, creditcard, options)
|
|
72
|
+
address = options[:billing_address] || options[:address]
|
|
73
|
+
post[:owner_name] = address[:name]
|
|
74
|
+
post[:owner_street] = address[:address1]
|
|
75
|
+
post[:owner_street2] = address[:address2] if address[:address2]
|
|
76
|
+
post[:owner_city] = address[:city]
|
|
77
|
+
post[:owner_state] = address[:state]
|
|
78
|
+
post[:owner_zip] = address[:zip]
|
|
79
|
+
post[:owner_country] = address[:country]
|
|
80
|
+
post[:owner_phone] = address[:phone] if address[:phone]
|
|
97
81
|
end
|
|
98
82
|
|
|
99
|
-
def
|
|
100
|
-
post[:
|
|
101
|
-
post[:
|
|
102
|
-
post[:exp] = expdate(creditcard)
|
|
83
|
+
def add_invoice(post, money, options)
|
|
84
|
+
post[:order_id] = options[:order_id]
|
|
85
|
+
post[:total] = amount(money)
|
|
103
86
|
end
|
|
104
87
|
|
|
105
|
-
def
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
88
|
+
def add_payment(post, payment)
|
|
89
|
+
post[:card_name] = payment.brand # Unclear if need to map to known names or open text field??
|
|
90
|
+
post[:card_number] = payment.number
|
|
91
|
+
post[:card_exp] = expdate(payment)
|
|
92
|
+
post[:cvv2] = payment.verification_value
|
|
110
93
|
end
|
|
111
94
|
|
|
112
|
-
def
|
|
113
|
-
post[:
|
|
95
|
+
def add_reference(post, action, money, authorization)
|
|
96
|
+
post[:"#{action}_amount1"] = amount(money) if money
|
|
97
|
+
post[:total_number_transactions] = 1
|
|
98
|
+
post[:reference_number1] = authorization
|
|
114
99
|
end
|
|
115
100
|
|
|
116
|
-
def
|
|
117
|
-
|
|
118
|
-
end
|
|
101
|
+
def parse(xml)
|
|
102
|
+
response = {}
|
|
119
103
|
|
|
120
|
-
|
|
121
|
-
|
|
104
|
+
doc = Nokogiri::XML(xml)
|
|
105
|
+
doc.root.xpath("//RESPONSE/FIELDS/FIELD").each do |field|
|
|
106
|
+
response[field['KEY']] = field.text
|
|
107
|
+
end unless doc.root.nil?
|
|
122
108
|
|
|
123
|
-
|
|
124
|
-
:test => test?,
|
|
125
|
-
:authorization => response[:authorization],
|
|
126
|
-
:avs_result => { :code => response[:avsresponse] },
|
|
127
|
-
:cvv_result => response[:cvvresponse])
|
|
109
|
+
response
|
|
128
110
|
end
|
|
129
111
|
|
|
130
|
-
def
|
|
131
|
-
response =
|
|
112
|
+
def commit(action, parameters)
|
|
113
|
+
response = parse(ssl_post(live_url, post_data(action, parameters)))
|
|
132
114
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
response
|
|
136
|
-
response
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
# FirstPay docs are worthless. turns out the transactionid is required for credits
|
|
143
|
-
# so we need to store that in authorization, not the actual auth.
|
|
144
|
-
if response[:response] == 'CAPTURED'
|
|
145
|
-
response[:message] = 'CAPTURED'
|
|
146
|
-
response[:authorization] = split[9] # actually the transactionid
|
|
147
|
-
response[:auth] = split[1]
|
|
148
|
-
response[:avsresponse] = split[3]
|
|
149
|
-
response[:cvvresponse] = split[17]
|
|
150
|
-
else
|
|
151
|
-
# NOT CAPTURED response
|
|
152
|
-
response[:message] = split[1]
|
|
153
|
-
response[:transactionid] = split[9]
|
|
154
|
-
end
|
|
155
|
-
end
|
|
115
|
+
Response.new(
|
|
116
|
+
success_from(response),
|
|
117
|
+
message_from(response),
|
|
118
|
+
response,
|
|
119
|
+
authorization: authorization_from(response),
|
|
120
|
+
test: test?
|
|
121
|
+
)
|
|
122
|
+
end
|
|
156
123
|
|
|
157
|
-
|
|
124
|
+
def success_from(response)
|
|
125
|
+
(
|
|
126
|
+
(response['status'] == '1') ||
|
|
127
|
+
(response['status1'] == '1')
|
|
128
|
+
)
|
|
158
129
|
end
|
|
159
130
|
|
|
160
|
-
def
|
|
161
|
-
#
|
|
162
|
-
response
|
|
131
|
+
def message_from(response)
|
|
132
|
+
# Silly inconsistent gateway. Always make capitalized (but not all caps)
|
|
133
|
+
msg = (response['auth_response'] || response['response1'])
|
|
134
|
+
msg.downcase.capitalize if msg
|
|
163
135
|
end
|
|
164
136
|
|
|
165
|
-
def
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
137
|
+
def authorization_from(response)
|
|
138
|
+
response['reference_number'] || response['reference_number1']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
def post_data(action, parameters = {})
|
|
142
|
+
parameters[:transaction_center_id] = @options[:transaction_center_id]
|
|
143
|
+
parameters[:gateway_id] = @options[:gateway_id]
|
|
144
|
+
|
|
145
|
+
parameters[:operation_type] = action
|
|
170
146
|
|
|
171
|
-
|
|
147
|
+
xml = Builder::XmlMarkup.new
|
|
148
|
+
xml.instruct!
|
|
149
|
+
xml.tag! 'TRANSACTION' do
|
|
150
|
+
xml.tag! 'FIELDS' do
|
|
151
|
+
parameters.each do |key, value|
|
|
152
|
+
xml.tag! 'FIELD', value, { 'KEY' => key }
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
xml.target!
|
|
172
157
|
end
|
|
173
158
|
end
|
|
174
159
|
end
|
|
175
160
|
end
|
|
176
|
-
|
|
@@ -6,12 +6,13 @@ module ActiveMerchant #:nodoc:
|
|
|
6
6
|
self.live_url = "https://api.globalgatewaye4.firstdata.com/transaction/v11"
|
|
7
7
|
|
|
8
8
|
TRANSACTIONS = {
|
|
9
|
-
:
|
|
10
|
-
:
|
|
11
|
-
:
|
|
12
|
-
:
|
|
13
|
-
:
|
|
14
|
-
:
|
|
9
|
+
sale: "00",
|
|
10
|
+
authorization: "01",
|
|
11
|
+
verify: "05",
|
|
12
|
+
capture: "32",
|
|
13
|
+
void: "33",
|
|
14
|
+
credit: "34",
|
|
15
|
+
store: "05"
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
POST_HEADERS = {
|
|
@@ -23,7 +24,15 @@ module ActiveMerchant #:nodoc:
|
|
|
23
24
|
|
|
24
25
|
SENSITIVE_FIELDS = [:verification_str2, :expiry_date, :card_number]
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
BRANDS = {
|
|
28
|
+
:visa => 'Visa',
|
|
29
|
+
:master => "Mastercard",
|
|
30
|
+
:american_express => "American Express",
|
|
31
|
+
:jcb => "JCB",
|
|
32
|
+
:discover => "Discover"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
self.supported_cardtypes = BRANDS.keys
|
|
27
36
|
self.supported_countries = ["CA", "US"]
|
|
28
37
|
self.default_currency = "USD"
|
|
29
38
|
self.homepage_url = "http://www.firstdata.com"
|
|
@@ -66,6 +75,10 @@ module ActiveMerchant #:nodoc:
|
|
|
66
75
|
commit(:credit, build_capture_or_credit_request(money, authorization, options))
|
|
67
76
|
end
|
|
68
77
|
|
|
78
|
+
def verify(credit_card, options = {})
|
|
79
|
+
commit(:verify, build_sale_or_authorization_request(0, credit_card, options))
|
|
80
|
+
end
|
|
81
|
+
|
|
69
82
|
# Tokenize a credit card with TransArmor
|
|
70
83
|
#
|
|
71
84
|
# The TransArmor token and other card data necessary for subsequent
|
|
@@ -121,6 +134,7 @@ module ActiveMerchant #:nodoc:
|
|
|
121
134
|
|
|
122
135
|
add_customer_data(xml, options)
|
|
123
136
|
add_invoice(xml, options)
|
|
137
|
+
add_card_authentication_data(xml, options)
|
|
124
138
|
|
|
125
139
|
xml.target!
|
|
126
140
|
end
|
|
@@ -131,6 +145,7 @@ module ActiveMerchant #:nodoc:
|
|
|
131
145
|
add_identification(xml, identification)
|
|
132
146
|
add_amount(xml, money)
|
|
133
147
|
add_customer_data(xml, options)
|
|
148
|
+
add_card_authentication_data(xml, options)
|
|
134
149
|
|
|
135
150
|
xml.target!
|
|
136
151
|
end
|
|
@@ -165,12 +180,17 @@ module ActiveMerchant #:nodoc:
|
|
|
165
180
|
end
|
|
166
181
|
|
|
167
182
|
def add_credit_card(xml, credit_card, options)
|
|
168
|
-
xml.tag! "Card_Number", credit_card.number
|
|
169
|
-
xml.tag! "Expiry_Date", expdate(credit_card)
|
|
170
|
-
xml.tag! "CardHoldersName", credit_card.name
|
|
171
|
-
xml.tag! "CardType", credit_card.brand
|
|
172
183
|
|
|
173
|
-
|
|
184
|
+
if credit_card.respond_to?(:track_data) && credit_card.track_data.present?
|
|
185
|
+
xml.tag! "Track1", credit_card.track_data
|
|
186
|
+
else
|
|
187
|
+
xml.tag! "Card_Number", credit_card.number
|
|
188
|
+
xml.tag! "Expiry_Date", expdate(credit_card)
|
|
189
|
+
xml.tag! "CardHoldersName", credit_card.name
|
|
190
|
+
xml.tag! "CardType", card_type(credit_card.brand)
|
|
191
|
+
|
|
192
|
+
add_credit_card_verification_strings(xml, credit_card, options)
|
|
193
|
+
end
|
|
174
194
|
end
|
|
175
195
|
|
|
176
196
|
def add_credit_card_verification_strings(xml, credit_card, options)
|
|
@@ -187,6 +207,12 @@ module ActiveMerchant #:nodoc:
|
|
|
187
207
|
end
|
|
188
208
|
end
|
|
189
209
|
|
|
210
|
+
def add_card_authentication_data(xml, options)
|
|
211
|
+
xml.tag! "CAVV", options[:cavv]
|
|
212
|
+
xml.tag! "XID", options[:xid]
|
|
213
|
+
xml.tag! "Ecommerce_Flag", options[:eci]
|
|
214
|
+
end
|
|
215
|
+
|
|
190
216
|
def add_credit_card_token(xml, store_authorization)
|
|
191
217
|
params = store_authorization.split(";")
|
|
192
218
|
credit_card = CreditCard.new(
|
|
@@ -199,7 +225,7 @@ module ActiveMerchant #:nodoc:
|
|
|
199
225
|
xml.tag! "TransarmorToken", params[0]
|
|
200
226
|
xml.tag! "Expiry_Date", expdate(credit_card)
|
|
201
227
|
xml.tag! "CardHoldersName", credit_card.name
|
|
202
|
-
xml.tag! "CardType", credit_card.brand
|
|
228
|
+
xml.tag! "CardType", card_type(credit_card.brand)
|
|
203
229
|
end
|
|
204
230
|
|
|
205
231
|
def add_customer_data(xml, options)
|
|
@@ -223,6 +249,10 @@ module ActiveMerchant #:nodoc:
|
|
|
223
249
|
"#{format(credit_card.month, :two_digits)}#{format(credit_card.year, :two_digits)}"
|
|
224
250
|
end
|
|
225
251
|
|
|
252
|
+
def card_type(credit_card_brand)
|
|
253
|
+
BRANDS[credit_card_brand.to_sym] if credit_card_brand
|
|
254
|
+
end
|
|
255
|
+
|
|
226
256
|
def commit(action, request, credit_card = nil)
|
|
227
257
|
url = (test? ? self.test_url : self.live_url)
|
|
228
258
|
begin
|