3fe68d13a6e6ec8e705ad8398258b0fc3bf538ca
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()