Commit faf7122d authored by Romain Courteaud's avatar Romain Courteaud

slapos_payzen: new id generator per node is used

parent ccb7d314
......@@ -7,7 +7,10 @@ integration_site = portal.restrictedTraverse(portal.portal_preferences.getPrefer
payzen_id = integration_site.getCategoryFromMapping('Causality/%s' % context.getId().replace('-', '_'))
if payzen_id != 'causality/%s' % context.getId().replace('-', '_'):
# ok when using per day generator
date, payzen_id = payzen_id.split('_', 1)
# and then switched to per day / per node generator
date = date.split('.', 1)[0]
return DateTime(date).toZone('UTC'), payzen_id
else:
return None, None
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment