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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 496c6b24100359c7121e1903130d345ed5b13fabf41cf1a1e78be20be3d638c8
|
4
|
+
data.tar.gz: a2451ac65694daa46c2386dd13754d6ed43ae2e9b8b34ff16903ec6c9591e888
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
=
|
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
|
data/config/effective_orders.rb
CHANGED
@@ -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
|
# }
|
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.
|
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-
|
11
|
+
date: 2022-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|