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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0251fc1d77b01f383569f7baa66dd0691824070
4
- data.tar.gz: 1d048aea7c36f5d5f7aca5bde29a76ed0fd4b970
3
+ metadata.gz: 965887ff8cbf3b7e8697439088668a0ac0aa90dc
4
+ data.tar.gz: e27ef24995d31be57f907f4d42e8b4961d888e48
5
5
  SHA512:
6
- metadata.gz: c8e466c5df4683715f98f92592becec4c90c42d6f87872c490a0d6c1ff5979a0b20b306042199c4d33b35d747c385766aa10aefcf1428ff213573fa1c51d63de
7
- data.tar.gz: 5096cbe7cc8d5832a56c0830a09a08a234d42482ad78f5078b64fc97e7bcbdab59f1ad8a28675443ab0268850d0fb2bd05bb7309a7a27551a57e8d15bb1ba379
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
- - if (EffectiveOrders.authorized?(controller, :show, :payment_details) rescue false)
9
- = render partial: 'admin/orders/order_payment_details', locals: { order: @order }
8
+ = render partial: 'admin/orders/order_payment_details', locals: { order: @order }
@@ -1,4 +1,4 @@
1
- - if order.purchased?
1
+ - if order.purchased? && (EffectiveOrders.authorized?(controller, :show, :payment_details) rescue false)
2
2
  .effective-order-payment-details
3
3
  %h2 Payment Details
4
4
  %table.table
@@ -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...' }
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '2.2.1'.freeze
2
+ VERSION = '2.2.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: 2.2.1
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: 2016-12-07 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails