Index: /main/kofacustom.nigeria/branches/uli-paypal/src/kofacustom/nigeria/paypal/applicantsbrowser.py
===================================================================
--- /main/kofacustom.nigeria/branches/uli-paypal/src/kofacustom/nigeria/paypal/applicantsbrowser.py	(revision 17239)
+++ /main/kofacustom.nigeria/branches/uli-paypal/src/kofacustom/nigeria/paypal/applicantsbrowser.py	(revision 17240)
@@ -124,5 +124,5 @@
         if response.get("status", None) == "COMPLETED":
             self.context.p_state = u'paid'
-        if not RRR:
+        if not response:
             self.flash(_('Paypal Order ID not found.'), type='danger')
             return
@@ -180,4 +180,5 @@
             return _("Paypal order failed: %s") % err_msg
         self.context.r_payment_link = payment_link
+        self.context.r_pay_reference = order_id
         self.context.r_company = u'paypal'
         self.customer = self.context.__parent__
