|
|
|
@ -181,6 +181,8 @@ class StripeBackend(BackendBase):
|
|
|
|
|
payment.user.vpnuser.on_payment_confirmed(payment)
|
|
|
|
|
payment.user.vpnuser.save()
|
|
|
|
|
|
|
|
|
|
payment.user.vpnuser.lcore_sync()
|
|
|
|
|
|
|
|
|
|
def get_subscription_from_invoice(self, invoice):
|
|
|
|
|
from payments.models import Subscription
|
|
|
|
|
|
|
|
|
@ -234,6 +236,8 @@ class StripeBackend(BackendBase):
|
|
|
|
|
payment.user.vpnuser.save()
|
|
|
|
|
payment.save()
|
|
|
|
|
|
|
|
|
|
payment.user.vpnuser.lcore_sync()
|
|
|
|
|
|
|
|
|
|
def webhook_subscr_update(self, event):
|
|
|
|
|
from payments.models import Subscription
|
|
|
|
|
stripe_sub = event['data']['object']
|
|
|
|
|