Bugfix : reduce sur une liste d'un élément provoque des effets de bords.
[photoprint.git] / skins / photoprint_order_confirm.py
1 ##parameters=token=None, PayerID=None
2 # -*- coding: utf-8 -*-
3
4 from Products.photoprint.utils import Message as _
5 options = {}
6 if token and PayerID and context.ppPay(token, PayerID) :
7 context.setStatus(True, _(u'Your payment has been accepted by PayPal.'))
8 # options['current_sell_step'] = 'confirmation'
9 return context.order_view()
10 else :
11 context.setStatus(False, _('Your payment has been canceled.<br/>'
12 'You can retry with an other account / credit card by cliking on the PayPal button.<br/>'
13 'You can also choose an other payment option, like bank transfert or cheque.<br/>'
14 'If so, click on the "Modify" button.'))
15
16 return context.order_view()