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 17240)
+++ /main/kofacustom.nigeria/branches/uli-paypal/src/kofacustom/nigeria/paypal/applicantsbrowser.py	(revision 17241)
@@ -144,5 +144,7 @@
     submit_button = _('Pay now')
 
-    amount='10'
+    # Nigerian Naira would be "NGN" but is not supported with
+    # most paypal accounts
+    currency_code = 'USD'
 
     @property
@@ -150,5 +152,5 @@
         return self.context.r_payment_link
 
-    def create_paypal_order(self):
+    def create_paypal_order(self, currency_code):
         if self.context.r_pay_reference or self.context.p_state == 'paid':
             return _("Payment ticket can't be re-sent to Paypal.")
@@ -164,7 +166,5 @@
         # The success url...
         self.responseurl = self.url(self.context, 'capture_paypal_payment')
-        # Nigerian Naira would be "NGN" but is not supported with
-        # most paypal accounts
-        amount = Amount(value=self.context.amount_auth, currency_code="USD")
+        amount = Amount(value=self.context.amount_auth, currency_code=self.currency_code)
         purchase_units = [
                 PurchaseUnit(description=self.context.p_id, amount=amount)
@@ -195,5 +195,5 @@
         self.paypal_error = u''
         if not self.context.r_payment_link:
-            self.paypal_error = self.create_paypal_order()
+            self.paypal_error = self.create_paypal_order(self.currency_code)
         if self.paypal_error:
             self.flash(error, type='danger')
Index: /main/kofacustom.nigeria/branches/uli-paypal/src/kofacustom/nigeria/paypal/rest.py
===================================================================
--- /main/kofacustom.nigeria/branches/uli-paypal/src/kofacustom/nigeria/paypal/rest.py	(revision 17240)
+++ /main/kofacustom.nigeria/branches/uli-paypal/src/kofacustom/nigeria/paypal/rest.py	(revision 17241)
@@ -83,6 +83,7 @@
         json_data["payment_source"]["paypal"][
                 "experience_context"]["notify_url"] = notify_url
-    response = requests.post(
-            'https://api-m.sandbox.paypal.com/v2/checkout/orders',
+    config = getUtility(IPaypalConfig)
+    url = "%s/v2/checkout/orders" % PAYPAL_REST_URLS[config['mode']]
+    response = requests.post(url,
             headers=headers, json=json_data)
     try:
