effective_orders 6.8.1 → 6.9.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/app/assets/javascripts/effective_orders/providers/moneris_checkout.js.coffee +2 -2
- data/app/datatables/admin/effective_orders_datatable.rb +9 -1
- data/app/helpers/effective_moneris_checkout_helper.rb +1 -1
- data/lib/effective_orders/version.rb +1 -1
- data/lib/effective_orders.rb +4 -4
- 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: 88c9d1fefa60868996b14e1692372e7a9d8c8305f0996e450d9d350b93f91815
|
4
|
+
data.tar.gz: 569988b3e2f1c9ac7ef088088e326a557d0628dc695e5c1b1d9e682c0ed398df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c7de9e5194eb2e9f3a6bcdb8c6213ef38ffc1ffd6ea0673b593f84fe078d91ce79f8e08ecbeb2b7b9afd1310c61caf3b9aa470f9c2ba24442f4730815e5e534
|
7
|
+
data.tar.gz: e9f88ec610fe1b0b79110fd48061a8b3c79aeb6d224cfab36f2db042d6a5e2726c847833a2045f248529403f71ec5888cfcbd699ed7da94c3343015526a1827b
|
@@ -15,15 +15,15 @@ this.MonerisCheckoutForm ||= class MonerisCheckoutForm
|
|
15
15
|
@form.addClass('initialized')
|
16
16
|
|
17
17
|
mount: ->
|
18
|
+
@moneris.setMode(@data.environment)
|
18
19
|
@moneris.setCheckoutDiv('monerisCheckout')
|
19
20
|
|
20
21
|
@moneris.setCallback('page_loaded', @pageLoaded)
|
21
22
|
@moneris.setCallback('cancel_transaction', @cancelTransaction)
|
22
|
-
@moneris.setCallback('error_event', @errorEvent)
|
23
23
|
@moneris.setCallback('payment_receipt', @paymentReceipt)
|
24
24
|
@moneris.setCallback('payment_complete', @paymentComplete)
|
25
|
+
@moneris.setCallback('error_event', @errorEvent) # This one might be custom, no longer referenced in docs.
|
25
26
|
|
26
|
-
@moneris.setMode(@data.environment)
|
27
27
|
@moneris.startCheckout(@data.ticket)
|
28
28
|
|
29
29
|
success: (payload) ->
|
@@ -55,6 +55,10 @@ module Admin
|
|
55
55
|
col :email, visible: false
|
56
56
|
end
|
57
57
|
|
58
|
+
if attributes[:organization_id].blank?
|
59
|
+
col :organization
|
60
|
+
end
|
61
|
+
|
58
62
|
col :parent, visible: false, search: :string
|
59
63
|
|
60
64
|
col :cc, visible: false
|
@@ -111,10 +115,14 @@ module Admin
|
|
111
115
|
user_klass = (attributes[:user_type].constantize if attributes[:user_type].present?)
|
112
116
|
user_klass ||= current_user.class
|
113
117
|
|
114
|
-
user = user_klass.
|
118
|
+
user = user_klass.where(id: attributes[:user_id]).first!
|
115
119
|
scope = scope.where(user: user)
|
116
120
|
end
|
117
121
|
|
122
|
+
if attributes[:organization_id].present? && attributes[:organization_type].present?
|
123
|
+
scope = scope.where(organization_id: attributes[:organization_id], organization_type: attributes[:organization_type])
|
124
|
+
end
|
125
|
+
|
118
126
|
if attributes[:parent_id].present? && attributes[:parent_type].present?
|
119
127
|
scope = scope.where(parent_id: attributes[:parent_id], parent_type: attributes[:parent_type])
|
120
128
|
end
|
@@ -16,7 +16,7 @@ module EffectiveMonerisCheckoutHelper
|
|
16
16
|
# Optional
|
17
17
|
order_no: order.transaction_id, # Has to be unique. This is order number, billing name and Time.now
|
18
18
|
cust_id: order.user_id,
|
19
|
-
language:
|
19
|
+
language: :en,
|
20
20
|
|
21
21
|
contact_details: {
|
22
22
|
first_name: moneris_checkout_scrub(order.billing_first_name),
|
data/lib/effective_orders.rb
CHANGED
@@ -278,16 +278,16 @@ module EffectiveOrders
|
|
278
278
|
|
279
279
|
def self.moneris_checkout_script_url
|
280
280
|
case EffectiveOrders.moneris_checkout.fetch(:environment)
|
281
|
-
when 'prod' then 'https://gateway.moneris.com/
|
282
|
-
when 'qa' then 'https://gatewayt.moneris.com/
|
281
|
+
when 'prod' then 'https://gateway.moneris.com/chktv2/js/chkt_v2.00.js'
|
282
|
+
when 'qa' then 'https://gatewayt.moneris.com/chktv2/js/chkt_v2.00.js'
|
283
283
|
else raise('unexpected EffectiveOrders.moneris_checkout :environment key. Please check your config/initializers/effective_orders.rb file')
|
284
284
|
end
|
285
285
|
end
|
286
286
|
|
287
287
|
def self.moneris_request_url
|
288
288
|
case EffectiveOrders.moneris_checkout.fetch(:environment)
|
289
|
-
when 'prod' then 'https://gateway.moneris.com/
|
290
|
-
when 'qa' then 'https://gatewayt.moneris.com/
|
289
|
+
when 'prod' then 'https://gateway.moneris.com/chktv2/request/request.php'
|
290
|
+
when 'qa' then 'https://gatewayt.moneris.com/chktv2/request/request.php'
|
291
291
|
else raise('unexpected EffectiveOrders.moneris_checkout :environment key. Please check your config/initializers/effective_orders.rb file')
|
292
292
|
end
|
293
293
|
end
|
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.
|
4
|
+
version: 6.9.0
|
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: 2023-
|
11
|
+
date: 2023-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|