|
|
@ -211,6 +211,9 @@ class StripeBackend(BackendBase):
|
|
|
|
payment.paid_amount = payment.amount
|
|
|
|
payment.paid_amount = payment.amount
|
|
|
|
payment.backend_extid = invoice['id']
|
|
|
|
payment.backend_extid = invoice['id']
|
|
|
|
if invoice['subscription']:
|
|
|
|
if invoice['subscription']:
|
|
|
|
|
|
|
|
if isinstance(invoice['subscription'], str):
|
|
|
|
|
|
|
|
payment.backend_sub_id = invoice['subscription']
|
|
|
|
|
|
|
|
else:
|
|
|
|
payment.backend_sub_id = invoice['subscription']['id']
|
|
|
|
payment.backend_sub_id = invoice['subscription']['id']
|
|
|
|
payment.backend_data = {'event_id': event['id']}
|
|
|
|
payment.backend_data = {'event_id': event['id']}
|
|
|
|
payment.save()
|
|
|
|
payment.save()
|
|
|
|