mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Retrieve stripe IDs stubbed in.
This commit is contained in:
parent
baa3463213
commit
00f0e451bc
1 changed files with 11 additions and 0 deletions
|
@ -407,6 +407,17 @@ class Profile(models.Model):
|
|||
|
||||
return True
|
||||
|
||||
def retrieve_stripe_ids(self):
|
||||
if not self.stripe_id:
|
||||
return
|
||||
|
||||
stripe_customer = stripe.Customer.retrieve(self.stripe_id)
|
||||
stripe_email = stripe_customer.email
|
||||
|
||||
for email in set([stripe_email, self.user.email]):
|
||||
customers = stripe.Customer.list(email=email)
|
||||
|
||||
|
||||
@property
|
||||
def latest_paypal_email(self):
|
||||
ipn = PayPalIPN.objects.filter(custom=self.user.username)
|
||||
|
|
Loading…
Add table
Reference in a new issue