effective_orders 6.1.0 → 6.1.1

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: baba1d8301ce1a4cafcd81d4bf87c4c88d99f003e850aae91aff2f23bd17b50e
4
- data.tar.gz: 34f2dd677e1a3a62acc726e6c6210e5645d721bf96df9d9572333bef1039094f
3
+ metadata.gz: 9249f1d10040622da38e49058f9a644551208f8be9744e5444ce4288432f68ce
4
+ data.tar.gz: bf7f2ca0477fbfedacf7034b2692d82dfc6fb915c6af66162b95aeab3ba1df3a
5
5
  SHA512:
6
- metadata.gz: 0bb85d2c07857a4d7c07de089fd85a9b7d6247d0a4bd56aa3f90f88bd3658679f6086bbb7d58acbf2e17850900704d914e299be70f51ae4a5ec5d786ace30ec0
7
- data.tar.gz: e648b6df06efae5b2050fa701130c3a9b00d1ecac7b2c03345a1c04a997d2dc76c2eeb9b48c1046b040b25be3e9c6efe20a72c174426416e184b4144dc7de6dd
6
+ metadata.gz: '08ba32390474ae77d738d6305845fd1b3797edc880d9a82ac1ac348abf1daf1a77ed6b196c04424ef9feff151fd3a5c8a3305953a91da34f77cfc97ead00d870'
7
+ data.tar.gz: c817be2902218f0c7a7462859579c606e2905b17891e75f231c141f7902424761d06b715bcaf3c33fa76a4791bbae3c04e3f046be93ba66e39880e1b16af0a76
data/README.md CHANGED
@@ -10,13 +10,13 @@ Sends order receipt emails automatically.
10
10
 
11
11
  Has Order History, My Purchases, My Sales and Admin screens.
12
12
 
13
- ## effective_orders 5.0
13
+ ## effective_orders 6.0
14
14
 
15
- This is the 5.0 series of effective_orders.
15
+ This is the 6.0 series of effective_orders.
16
16
 
17
17
  This requires Twitter Bootstrap 4 and Rails 5.1+
18
18
 
19
- Please check out [Effective Orders 3.x](https://github.com/code-and-effect/effective_orders/tree/bootstrap3) for more information using this gem with Bootstrap 3.
19
+ Please check out [Effective Orders 3.x](https://github.com/code-and-effect/effective_orders/tree/bootstrap3) for more information using this gem with Bootstrap 3. Deprecated and not maintained.
20
20
 
21
21
  ## Getting Started
22
22
 
@@ -614,6 +614,8 @@ We are also going to use ngrok to give us a public facing URL
614
614
 
615
615
  Visit https://esqa.moneris.com/mpg/ and login with: demouser / store1 / password
616
616
 
617
+ Or for the prod environment https://www3.moneris.com/mpg
618
+
617
619
  - Select Admin -> Moneris Checkout Config from the menu
618
620
  - Click Create Profile
619
621
 
@@ -665,6 +667,15 @@ config.moneris_checkout = {
665
667
 
666
668
  [Testing a Solution](https://developer.moneris.com/en/More/Testing/Testing%20a%20Solution)
667
669
 
670
+ ### Create a Production Store
671
+
672
+ Visit https://www3.moneris.com/mpg and follow the above instructions
673
+
674
+ The Checkout Id, something like `chktJF76Btore1` is on the configuration page.
675
+
676
+ The Store Id, something like `gwca12345` should match the login information
677
+
678
+ To find the Api Token, click Admin -> Store Settings -> and copy the API key there
668
679
 
669
680
 
670
681
  ## Paying via Moneris (hosted pay page - old)
@@ -59,11 +59,13 @@ module EffectiveStripeHelper
59
59
  def stripe_payment_intent_payload(order, customer)
60
60
  customer.create_stripe_customer! # Only creates if customer not already present
61
61
 
62
+ remember_card = EffectiveOrders.stripe[:remember_card]
63
+
62
64
  payment = {
63
65
  amount: order.total_with_surcharge,
64
66
  currency: EffectiveOrders.stripe[:currency],
65
67
  customer: customer.stripe_customer_id,
66
- payment_method: customer.payment_method_id.presence,
68
+ payment_method: (customer.payment_method_id.presence if remember_card),
67
69
  description: stripe_order_description(order),
68
70
  metadata: { order_id: order.id }
69
71
  }
@@ -71,7 +73,7 @@ module EffectiveStripeHelper
71
73
  token_required = customer.token_required?
72
74
 
73
75
  # Always prompt them for a card unless remember card
74
- token_required = true unless EffectiveOrders.stripe[:remember_card]
76
+ token_required = true unless remember_card
75
77
 
76
78
  intent = begin
77
79
  Rails.logger.info "[STRIPE] create payment intent : #{payment}"
@@ -87,7 +89,7 @@ module EffectiveStripeHelper
87
89
  client_secret: intent.client_secret,
88
90
  payment_method: intent.payment_method,
89
91
 
90
- active_card: customer.active_card,
92
+ active_card: (customer.active_card if remember_card),
91
93
  email: customer.email,
92
94
  token_required: token_required
93
95
  }
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '6.1.0'.freeze
2
+ VERSION = '6.1.1'.freeze
3
3
  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.1.0
4
+ version: 6.1.1
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: 2022-12-07 00:00:00.000000000 Z
11
+ date: 2022-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails