Irreproducible bug fixing attempt

master
Alice 5 years ago
parent f12966a62d
commit a0dac8d1e5

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

Loading…
Cancel
Save