Index: /main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/browser.py
===================================================================
--- /main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/browser.py	(revision 14731)
+++ /main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/browser.py	(revision 14732)
@@ -23,9 +23,10 @@
 from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget
 from zope.formlib.textwidgets import BytesDisplayWidget
+from waeup.kofa.interfaces import IExtFileStore, IKofaUtils
 from waeup.kofa.applicants.interfaces import (
     IApplicant, IApplicantEdit, ISpecialApplicant)
 from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage,
     ApplicantManageFormPage, ApplicantEditFormPage,
-    ApplicantsContainerPage)
+    ApplicantsContainerPage, ApplicationFeePaymentAddPage)
 from waeup.kofa.applicants.viewlets import (
     PaymentReceiptActionButton, PDFActionButton)
@@ -45,4 +46,6 @@
     )
 
+from kofacustom.dspg.interfaces import MessageFactory as _
+
 UG_OMIT_EDIT_FIELDS = [
     value for value in UG_OMIT_EDIT_FIELDS
@@ -196,2 +199,13 @@
         form_fields['reg_number'].for_display = True
         return form_fields
+
+class CustomApplicationFeePaymentAddPage(ApplicationFeePaymentAddPage):
+    """ Page to add an online payment ticket
+    """
+
+    @property
+    def custom_requirements(self):
+        store = getUtility(IExtFileStore)
+        if not store.getFileByContext(self.context, attr=u'passport.jpg'):
+            return _('Upload your passport photo before making payment.')
+        return ''
Index: /main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py
===================================================================
--- /main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py	(revision 14731)
+++ /main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py	(revision 14732)
@@ -30,4 +30,6 @@
 #   do exist really and are not bothered by being spammed by a test programme.
 EXTERNAL_TESTS = False
+
+SAMPLE_IMAGE = os.path.join(os.path.dirname(__file__), 'test_image.jpg')
 
 def external_test(func):
@@ -217,4 +219,16 @@
         self.browser.getControl("Save").click()
         self.browser.getControl("Add online").click()
+        self.assertMatches('...passport photo before making payment...',
+                           self.browser.contents)
+        self.browser.open(self.manage_path)
+        super(InterswitchTestsApplicants, self).fill_correct_values()
+        self.browser.getControl(name="form.nationality").value = ['NG']
+        #self.browser.getControl(name="transition").value = ['start']
+        image = open(SAMPLE_IMAGE, 'rb')
+        ctrl = self.browser.getControl(name='form.passport')
+        file_ctrl = ctrl.mech_control
+        file_ctrl.add_file(image, filename='myphoto.jpg')
+        self.browser.getControl("Save").click()
+        self.browser.getControl("Add online").click()
         self.assertMatches('...ticket created...',
                            self.browser.contents)
