effective_orders 6.16.2 → 6.16.3

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: 5d05df34a90172ec81cc5cae1f0cc206236358f70601c644e0468bd860d2481f
4
+ data.tar.gz: f5f8d8a13a508f10f88d3a45ce3aaebe7280830228900cd53b4025fd2e7d0f28
5
5
  SHA512:
6
- metadata.gz: 601d9520c6295a79fa1be7e4bb721f1582aee19d60d09ec9d19f638a7a0a34aa8d6716596bd54ead789c4ea1c27ee5ec437e33638cf79957cc2777b2e980e57b
7
- data.tar.gz: 2119478b0960de2100157edc5b7ed00c51912874ef3ed2b25d7ea599d8c99f59711b24861f7090f73bacdb0ac2c9d13c53aabdba1bc98e5baa76276917c45207
6
+ metadata.gz: c7957c31b1eacf9f6119f327f541636c65ec738742f9dff5c2e2363ebea81d1be1126a58ae8f024489abb0038b7e94159cdca4d91b10160a1c8ad1e12d4c68a5
7
+ data.tar.gz: ccce3f3ccbfa90884daa1259ddbf1f4d13afce92d05fdaa57acf6f1b1b0b69f18b2d155fc18c39c34d38a9e90c2d976cb34fbe448d174e6f8fc3d3bc2ff86ec2
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '6.16.2'.freeze
2
+ VERSION = '6.16.3'.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.3
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-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails