stripe_invoice 1.1.1 → 1.1.2
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/stripe_invoice/charge.rb +1 -1
- 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: f452ed8feae4a4675887cdee229dbb76d45d332e
|
|
4
|
+
data.tar.gz: 8b09ef6e35a8de238f4fe1b5ab6385c4d201617c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3c5985e3709e544f3cbbc49298d2597f7fcb419699d127eb23dc607109f56d17557f1f0c20e8d2add78610fae451d5bfd048e00ceb0f5069a23b3ac6dd430c5
|
|
7
|
+
data.tar.gz: 0c0bf0241fe39f4d87b2557dbb35f3388606e9e69aa18c74709d5d2be44124d809cec375e2123efb6b0ab61029c0a140aec60341a1d18dfa6b27fd58a2aebb3b
|
|
@@ -102,7 +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
|
|
105
|
+
return nil if stripe_customer[:deleted] # yes, that can happen :-(
|
|
106
106
|
owner_id = stripe_customer.description.to_i
|
|
107
107
|
Koudoku.owner_class.find(owner_id)
|
|
108
108
|
|