c7a8d0a658ee5d64395f45d4fff58a43db04cca6
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/>'
13 'You can also choose an other payment option, like bank transfert or cheque.<br/>'
14 'If so, click on the "Modify" button.'))
16 return context
.order_view()