pay 10.1.0 → 10.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/pay/stripe/customer.rb +2 -2
- data/lib/pay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60ed8a33d928f8be5f8873e25bc9d52e659f3129750184b6bf5f7aa838f7d5a2
|
4
|
+
data.tar.gz: 9969b2de4dcc2d3509529c62b27cbc28eb7fb440218523f9fb066625ea1897a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a764e343c15ee7afde06ed527b34e93398e4aa6a2314418d8ebfec733b7b4bf1d887ce4817b90100d5e4ce7be6ba0109c40b262f999bf5f4a78d942018b5d38b
|
7
|
+
data.tar.gz: 8b1914ae7921a70334c5ec06b780e41952c77a0d3d1ab640fd9d0fe237df3f0e30c0cb82d2d736dabf22c1453e5442a0f5608d725137b7a299a5cd1b06b5e442
|
@@ -142,8 +142,8 @@ module Pay
|
|
142
142
|
::Stripe::Invoice.create(options.merge(customer: processor_id || api_record.id), stripe_options).pay
|
143
143
|
end
|
144
144
|
|
145
|
-
def
|
146
|
-
::Stripe::Invoice.
|
145
|
+
def preview_invoice(**options)
|
146
|
+
::Stripe::Invoice.create_preview(options.merge(customer: processor_id || api_record.id), stripe_options)
|
147
147
|
end
|
148
148
|
|
149
149
|
# Syncs a customer's subscriptions from Stripe to the database.
|
data/lib/pay/version.rb
CHANGED