effective_orders 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/effective/providers/stripe.rb +1 -1
- data/app/views/admin/orders/show.html.haml +1 -2
- data/app/views/effective/orders/_order_payment_details.html.haml +1 -1
- data/app/views/effective/orders/stripe/_form.html.haml +1 -1
- data/lib/effective_orders/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 965887ff8cbf3b7e8697439088668a0ac0aa90dc
|
4
|
+
data.tar.gz: e27ef24995d31be57f907f4d42e8b4961d888e48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42885a3c34e5a3659a1a278f1f6630caa9bfb50899a4980e18b1643a8ac02f27e0b605d53a5fbd2c6de93d1ba5376475c7456916155f34aaf3ad5216b3fd9c33
|
7
|
+
data.tar.gz: c0196dc5405d9311ee385ac6ffccb561057ddbb627731965e6d606c8600d829788b5b000dd47e8983086e5547134d29b8daae7a318622de14bb0bde2180f229f
|
@@ -28,7 +28,7 @@ module Effective
|
|
28
28
|
def process_stripe_charge(charge)
|
29
29
|
Effective::Order.transaction do
|
30
30
|
begin
|
31
|
-
@buyer = Customer.for_user(charge.order.user)
|
31
|
+
@buyer = Effective::Customer.for_user(charge.order.user)
|
32
32
|
@buyer.update_card!(charge.token)
|
33
33
|
|
34
34
|
if EffectiveOrders.stripe_connect_enabled
|
@@ -5,5 +5,4 @@
|
|
5
5
|
- if (EffectiveOrders.authorized?(controller, :admin, :effective_orders) rescue false)
|
6
6
|
= render partial: 'admin/orders/form_note_internal', locals: { order: @order }
|
7
7
|
|
8
|
-
|
9
|
-
= render partial: 'admin/orders/order_payment_details', locals: { order: @order }
|
8
|
+
= render partial: 'admin/orders/order_payment_details', locals: { order: @order }
|
@@ -4,4 +4,4 @@
|
|
4
4
|
= simple_form_for(@stripe_charge || Effective::Providers::StripeCharge.new(order), (EffectiveOrders.simple_form_options || {}).merge(url: effective_orders.stripe_charges_path)) do |f|
|
5
5
|
= f.input :effective_order_id, as: :hidden
|
6
6
|
= f.input :token, as: :hidden
|
7
|
-
= f.submit order_checkout_label(:stripe), class: 'stripe-button', data: {'disable_with' => 'Continuing...' }
|
7
|
+
= f.submit order_checkout_label(:stripe), class: 'btn btn-primary stripe-button', data: {'disable_with' => 'Continuing...' }
|
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: 2.2.
|
4
|
+
version: 2.2.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:
|
11
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|