stripe_invoice 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/stripe_invoice/charge.rb +1 -0
- data/lib/stripe_invoice/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffc19b8dad445d1409da490d7236a4a952235d0f
|
4
|
+
data.tar.gz: 665d2326261d6d83a0cf70b87f1ee62b3f173522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8f6fce8a8aa19d1d43aba835e7c524c45ca78fab0eed9f674d4320605ddf93a3f0a706b059d12b0c3f9958109afddb6c27a36b19d11f50500e94bd1e0d969b6
|
7
|
+
data.tar.gz: d1c9fe7a714a921a4ae54f85187dd8cb47b1cd5b94d40cfa9e797042c0144ebff7d3dc2668ee7c83891a67c738e935970b052faf9987e3bb0ab1da0a279f5391
|
@@ -102,6 +102,7 @@ module StripeInvoice
|
|
102
102
|
# instead we also try to match the email address/owner_id that was send to stripe
|
103
103
|
# when the account was created
|
104
104
|
stripe_customer = Stripe::Customer.retrieve stripe_charge.customer
|
105
|
+
return nil if stripe_customer.deleted? # yes, that can happen :-(
|
105
106
|
owner_id = stripe_customer.description.to_i
|
106
107
|
Koudoku.owner_class.find(owner_id)
|
107
108
|
|