Fix getting subscription id
This commit is contained in:
parent
8e1e3e4157
commit
2c3146111f
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ class StripeUtils(object):
|
||||||
[line.metadata.VM_ID if hasattr(line.metadata, 'VM_ID') else '' for line in invoice.lines.data]
|
[line.metadata.VM_ID if hasattr(line.metadata, 'VM_ID') else '' for line in invoice.lines.data]
|
||||||
),
|
),
|
||||||
'subscription_ids_csv': ','.join(
|
'subscription_ids_csv': ','.join(
|
||||||
[line.subscription if hasattr(line, 'subscription') else '' for line in invoice.lines.data]
|
[line.id if line.type == 'subscription' else '' for line in invoice.lines.data]
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
starting_after = invoice.id
|
starting_after = invoice.id
|
||||||
|
|
Loading…
Reference in a new issue