Il faut dorénavant invoquer getProperty pour accéder aux données d'un membre.
[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
14 return context.order_view()