1 ##parameters=token=None, PayerID=None
2 # -*- coding: utf-8 -*-
4 from Products
.photoprint
.utils
import Message
as _
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()
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/>'))
14 return context
.order_view()