X-Git-Url: https://scm.cri.ensmp.fr/git/photoprint.git/blobdiff_plain/ccaba0f54cbd41250107d36a49154353425da8b3..b521f0db73266a7bd6b69e6a9891046a03c482ee:/Products/photoprint/skins/photoprint_order_confirm.py?ds=sidebyside
diff --git a/Products/photoprint/skins/photoprint_order_confirm.py b/Products/photoprint/skins/photoprint_order_confirm.py
new file mode 100644
index 0000000..3fe68d1
--- /dev/null
+++ b/Products/photoprint/skins/photoprint_order_confirm.py
@@ -0,0 +1,14 @@
+##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.
'))
+
+ return context.order_view()