payola-payments 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/views/payola/transactions/_checkout.html.erb +7 -7
- data/lib/payola/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWM5YjY2YWZjNWE5NDcyN2UwYmU2MjhiNTZlMDA5OGFiOTQ2MTZhNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWFlNGYxMzVmMjI5MTJhNzRhNjYyNzk3MTZjNzZjOWQxM2ZlZWJhYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWVhNjIyNGFjZDQxNmM5OGY2OGRkZTZlMzYwNzY4ZDBjNTZmOTVhMzg3YzU5
|
10
|
+
YmRhMzEwYjZkMDJhOGM4M2E2M2ZhNWYwMzY2YjM5NTIzMGI2N2ZhNDk0MjY5
|
11
|
+
ZjQ4NDY1NjJlZDM0NzQyNzZjNzUwYWEyMGQzMTcxNzc1MTQ3YjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjRkYjAwNDg5ODhiMTkwZDE5YzU1NjIzYTFkYzQ1OTU4MTJjN2E4YzMzOWZm
|
14
|
+
ZDhjNGZiZDVkZDYwMmZlNjkxNWQ4MWI3OWM2ZGI3YTM2YWMzMmFiZTgzM2Fi
|
15
|
+
ZDIyZjcyMTQ4MTY1NWY3ZDk0MjlmZmU4YTNlMmJlMGZiNzg0NGI=
|
@@ -2,8 +2,8 @@
|
|
2
2
|
button_class = local_assigns.fetch :button_class, "stripe-button-el"
|
3
3
|
button_inner_style = local_assigns.fetch :button_inner_style, 'min-height: 30px'
|
4
4
|
button_text = local_assigns.fetch :button_text, "Pay Now"
|
5
|
-
description = local_assigns.fetch :description, "#{
|
6
|
-
name = local_assigns.fetch :name,
|
5
|
+
description = local_assigns.fetch :description, "#{sellable.name} (#{formatted_price(sellable.price)})"
|
6
|
+
name = local_assigns.fetch :name, sellable.name
|
7
7
|
product_image_path = local_assigns.fetch :product_image_path , ''
|
8
8
|
panel_label = local_assigns.fetch :panel_label, ''
|
9
9
|
allow_remember_me = local_assigns.fetch :allow_remember_me, true
|
@@ -11,7 +11,7 @@
|
|
11
11
|
verify_zip_code = local_assigns.fetch :verify_zip_code, false
|
12
12
|
|
13
13
|
|
14
|
-
button_id = "payola-button-#{
|
14
|
+
button_id = "payola-button-#{sellable.product_class}-#{sellable.permalink}"
|
15
15
|
|
16
16
|
form_id = "#{button_id}-form"
|
17
17
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<script src="https://checkout.stripe.com/checkout.js"></script>
|
28
28
|
<link rel="stylesheet" href="https://checkout.stripe.com/v3/checkout/button.css"></link>
|
29
29
|
|
30
|
-
<%= form_tag payola.buy_path(product_class:
|
30
|
+
<%= form_tag payola.buy_path(product_class: sellable.product_class, permalink: sellable.permalink), id: form_id do %>
|
31
31
|
<button class="<%= button_class %> payola-checkout-button" id="<%= button_id %>">
|
32
32
|
<span class="payola-checkout-button-text" style="display: block; <%= button_inner_style %>"><%= button_text %></span>
|
33
33
|
<span class="payola-checkout-button-spinner" style="display: none; <%= button_inner_style %>">Please wait...</span>
|
@@ -41,9 +41,9 @@
|
|
41
41
|
form_id: "<%= form_id %>",
|
42
42
|
button_id: "<%= button_id %>",
|
43
43
|
error_div_id: "<%= error_div_id %>",
|
44
|
-
product_class: "<%=
|
45
|
-
product_permalink: "<%=
|
46
|
-
price: <%=
|
44
|
+
product_class: "<%= sellable.product_class %>",
|
45
|
+
product_permalink: "<%= sellable.permalink %>",
|
46
|
+
price: <%= sellable.price %>,
|
47
47
|
name: "<%= name %>",
|
48
48
|
description: "<%= description %>",
|
49
49
|
product_image_path: "<%= product_image_path %>",
|
data/lib/payola/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payola-payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Keen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|