effective_orders 5.5.1 → 5.5.2

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: c85d15408b6f15085acae0e838a73738f06b302c1730a2d5dd63bfc14aeab232
4
- data.tar.gz: 3ef013aef146e28669878e441b942bb9f4b0dc19e1871ced2097a2367fad9ab5
3
+ metadata.gz: 496c6b24100359c7121e1903130d345ed5b13fabf41cf1a1e78be20be3d638c8
4
+ data.tar.gz: a2451ac65694daa46c2386dd13754d6ed43ae2e9b8b34ff16903ec6c9591e888
5
5
  SHA512:
6
- metadata.gz: bdbb7867bd6336373a78ee7a601fc5866b90e8dce68f2ca19d8e47c90a88a0b18ada917e4fa485a416cabc75fb0c95fab37bd65c069c0b30e030b6761f1675f6
7
- data.tar.gz: e30f27c7a2801feae282487ed6e1d5414c78b94e1f50dbb800f016782299ed02afa329164585af50d7933ae7269f4fb3ebf9eda0eb94ad68a6cfd22b8a13b1b6
6
+ metadata.gz: 24a8a97d2bc9c2b45680fc4e9f8c751245d5e83d69ff085a744f1e16709219cafb04c13c55fd88eda8a2b2707eaeea0dea48a2c9f66c682187720ef334aab1b7
7
+ data.tar.gz: 14af91d8e9a56efe0e65d07348f4de7c2fc83a14df32d06b3e3cb40306b4469b575dfaf9c629a9f67369226da089b464d46c0be0cda1d3a5ca15a68b3693d6a4
@@ -70,6 +70,9 @@ module EffectiveStripeHelper
70
70
 
71
71
  token_required = customer.token_required?
72
72
 
73
+ # Always prompt them for a card unless remember card
74
+ token_required = true unless EffectiveOrders.stripe[:remember_card]
75
+
73
76
  intent = begin
74
77
  Rails.logger.info "[STRIPE] create payment intent : #{payment}"
75
78
  Stripe::PaymentIntent.create(payment)
@@ -9,7 +9,7 @@
9
9
  %em This checkout is powered by stripe.
10
10
 
11
11
  .my-4.text-center
12
- = link_to(image_tag('effective_orders/stripe.png'), 'https://www.stripe.com', target: '_blank')
12
+ = image_tag('effective_orders/stripe.png', alt: 'Stripe.com Logo')
13
13
 
14
14
  = effective_form_with(scope: :stripe, url: effective_orders.stripe_order_path(order), data: { 'stripe-form': stripe.to_json }) do |f|
15
15
  = f.hidden_field :purchased_url, value: purchased_url
@@ -210,6 +210,7 @@ EffectiveOrders.setup do |config|
210
210
  # secret_key: 'sk_xxx',
211
211
  # publishable_key: 'pk_xxx',
212
212
  # currency: 'usd',
213
+ # remember_card: true,
213
214
  # site_title: 'My Site',
214
215
  # site_image: 'logo.png' # A relative or absolute URL pointing to a square image of your brand or product. The recommended minimum size is 128x128px.
215
216
  # }
@@ -218,6 +219,7 @@ EffectiveOrders.setup do |config|
218
219
  # secret_key: 'sk_test_xxx',
219
220
  # publishable_key: 'pk_test_xxx',
220
221
  # currency: 'usd',
222
+ # remember_card: true,
221
223
  # site_title: 'My Site',
222
224
  # site_image: 'logo.png' # A relative or absolute URL pointing to a square image of your brand or product. The recommended minimum size is 128x128px.
223
225
  # }
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '5.5.1'.freeze
2
+ VERSION = '5.5.2'.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: 5.5.1
4
+ version: 5.5.2
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-04-08 00:00:00.000000000 Z
11
+ date: 2022-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails