X-Git-Url: https://scm.cri.minesparis.psl.eu/git/photoprint.git/blobdiff_plain/1d0cdb42407f5505c0d0645f4ebe8a2546598bdd..24f21ffe24cabe97fa108f7a7f84857dc08f9eae:/skins/photoprint_order_confirm.py diff --git a/skins/photoprint_order_confirm.py b/skins/photoprint_order_confirm.py new file mode 100644 index 0000000..c7a8d0a --- /dev/null +++ b/skins/photoprint_order_confirm.py @@ -0,0 +1,16 @@ +##parameters=token=None, PayerID=None +# -*- coding: utf-8 -*- + +from Products.photoprint.utils import Message as _ +options = {} +if token and PayerID and context.ppPay(token, PayerID) : + context.setStatus(True, _(u'Your payment has been accepted by PayPal.')) + # options['current_sell_step'] = 'confirmation' + return context.order_view() +else : + context.setStatus(False, _('Your payment has been canceled.
' + 'You can retry with an other account / credit card by cliking on the PayPal button.
' + 'You can also choose an other payment option, like bank transfert or cheque.
' + 'If so, click on the "Modify" button.')) + + return context.order_view()