effective_orders 6.16.2 → 6.16.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 299e5f8e5486714ddaf1ef895a2f9692c943502464c7f95bcdb5c802aca6ebe0
4
- data.tar.gz: 7ea8d58577b4f3a0d029401e8a9dd0cbc243e6c64d1e0b82067479caa77d51a9
3
+ metadata.gz: dc70e63297bba4d6b81db96f3fde44ea6cd46afb084498cb7e462c2bebe7c8ba
4
+ data.tar.gz: bbd17f89c21994543925a0ddd5862ad3bc2e47318da9de27c45c41129e924e95
5
5
  SHA512:
6
- metadata.gz: 601d9520c6295a79fa1be7e4bb721f1582aee19d60d09ec9d19f638a7a0a34aa8d6716596bd54ead789c4ea1c27ee5ec437e33638cf79957cc2777b2e980e57b
7
- data.tar.gz: 2119478b0960de2100157edc5b7ed00c51912874ef3ed2b25d7ea599d8c99f59711b24861f7090f73bacdb0ac2c9d13c53aabdba1bc98e5baa76276917c45207
6
+ metadata.gz: '087d6eb535b19ef97af82fe9cfd6b399da6954121e36567b316cbd8576d98b6de3d71dc9d10198bd08670f6ff2ad928591730bfa2fb4ee3175a6986c39dc2fcd'
7
+ data.tar.gz: 1558fa105fbad61f78be06a0e0757dd823731e205915fb3d780a02eb51ab21feb38354b03c2598e08509e7de35daa22314b9152bde59b0a83d24cbb2f961dfed
@@ -271,7 +271,7 @@ module Effective
271
271
  paymentMethod: paymentMethod,
272
272
  shippingAddress: shippingAddress,
273
273
  customData: customData,
274
- merchantCategory: "E-Commerce",
274
+ merchantCategory: "MOTO",
275
275
  orderData: orderData
276
276
  }.compact
277
277
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '6.16.2'.freeze
2
+ VERSION = '6.16.4'.freeze
3
3
  end
@@ -298,7 +298,11 @@ module EffectiveOrders
298
298
  end
299
299
 
300
300
  def self.deluxe_script_url
301
- "https://hostedpaymentform.deluxe.com/v2/deluxe.js"
301
+ case EffectiveOrders.deluxe.fetch(:environment)
302
+ when 'production' then 'https://hostedpaymentform.deluxe.com/v2/deluxe.js'
303
+ when 'sandbox' then 'https://hostedform2.deluxe.com/V2/deluxe.js'
304
+ else raise('unexpected EffectiveOrders.deluxe :environment key. Please check your config/initializers/effective_orders.rb file')
305
+ end
302
306
  end
303
307
 
304
308
  def self.moneris_checkout_script_url
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.16.2
4
+ version: 6.16.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-09 00:00:00.000000000 Z
11
+ date: 2024-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails