pay 3.0.11 → 3.0.12

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pay might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f81b673f2ce37840c025f8fea1838e0d66625a5bc5d14017a40ed5333268076
4
- data.tar.gz: '087f55457dc4be6158e9b5ae3a1fa750b62712e906801cfee9a11b2764744aeb'
3
+ metadata.gz: 5a5535971718b3a7b0ea0d09f565dc6a43677209da1700921d202c68639b80d1
4
+ data.tar.gz: 8127f7d2b78d4bfc7cb473dc4ae4f447a311ebe19214a950d7836a67fc244a76
5
5
  SHA512:
6
- metadata.gz: 6d0f622daa0f6698de1b2a7537e0bc85852331c20acace7a3bb7b6730d185dcf5088d47064adb2d0935fcc44d01663da2fb044a526ab0eb22f02bceff227b100
7
- data.tar.gz: 2a2767806fa3a492a7f87fa11dd9bac57e2be68a776703e4d6560fdd5b24ed837f6aab635110ff3e0147ee29554213f52ba99d53f0b526076a011eb3cc3f5dbd
6
+ metadata.gz: 4547c7f4ca33877b128c2f5b5e2835c0b3aa80ae6dee8817c64f59428b8e108f0ed611bebad936e0e1b17cd568b505496af7f6ad66cd2dd8897c60d44f5530d1
7
+ data.tar.gz: 022b0d2859f488310bfce2a14eb49796f68a5fece5d906b0228097ce217e00b57316564e339cfd87084d602d06cf30ec10f53eacdbfe8feb10ceefa7d1f68b42
data/lib/pay/receipts.rb CHANGED
@@ -50,9 +50,9 @@ module Pay
50
50
  end
51
51
 
52
52
  def invoice_pdf(**options)
53
- bill_to = [owner.name]
54
- bill_to += [owner.extra_billing_info] if owner.extra_billing_info?
55
- bill_to += [nil, owner.email]
53
+ bill_to = [customer.owner.name]
54
+ bill_to += [customer.owner.extra_billing_info] if customer.owner.extra_billing_info?
55
+ bill_to += [nil, customer.owner.email]
56
56
 
57
57
  total = ActionController::Base.helpers.number_to_currency(amount / 100.0)
58
58
 
@@ -181,8 +181,8 @@ module Pay
181
181
  payment_method_types: ["card"],
182
182
  mode: "payment",
183
183
  # These placeholder URLs will be replaced in a following step.
184
- success_url: options.delete(:success_url) || root_url,
185
- cancel_url: options.delete(:cancel_url) || root_url
184
+ success_url: options.delete(:success_url) || root_url(session_id: "{CHECKOUT_SESSION_ID}"),
185
+ cancel_url: options.delete(:cancel_url) || root_url(session_id: "{CHECKOUT_SESSION_ID}")
186
186
  }
187
187
 
188
188
  # Line items are optional
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "3.0.11"
2
+ VERSION = "3.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.11
4
+ version: 3.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-07 00:00:00.000000000 Z
12
+ date: 2021-09-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails