Skip to content
Browse files

bug fixes

  • Loading branch information...
1 parent 1b9a29c commit 0f1cfdd01194901fddc922aa0996544690c33a03 ozgurvt committed Dec 22, 2009
Showing with 9 additions and 8 deletions.
  1. +5 −5 paypal/driver.py
  2. +4 −3 testapp/settings.py
View
10 paypal/driver.py
@@ -40,10 +40,10 @@ def __init__(self, debug = False):
# You can use the following api credientials for DEBUGGING. (in shell)
# First step is to get the correct credientials.
- if debug or getattr(settings, "DEBUG", False):
- self.username = "seller_1261493801_biz@akinon.com"
- self.password = "1261493806"
- self.sign = "AFcWxV21C7fd0v3bYYYRCpSSRl31A-wla4a4Wt-Cri8WHGG4YhDjPWuQ"
+ if debug or getattr(settings, "PAYPAL_DEBUG", False):
+ self.username = "seller_1261519973_biz_api1.akinon.com"
+ self.password = "1261519978"
+ self.sign = "A1.OnfcjaBVTgV6Yt.oT2VavxcyOA5FGVe-MrNf.1R1zNVAD6.MDOKZO"
else:
self.username = getattr(settings, "PAYPAL_USER", None)
self.password = getattr(settings, "PAYPAL_PASSWORD", None)
@@ -56,7 +56,7 @@ def __init__(self, debug = False):
"VERSION" : "53.0",
}
# Second step is to set the API end point and redirect urls correctly.
- if debug or getattr(settings, "DEBUG", False):
+ if debug or getattr(settings, "PAYPAL_DEBUG", False):
self.NVP_API_ENDPOINT = "https://api-3t.sandbox.paypal.com/nvp"
self.PAYPAL_REDIRECT_URL = "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token="
else:
View
7 testapp/settings.py
@@ -44,9 +44,10 @@
os.path.join(PROJECT_ROOT, "templates")
)
-PAYPAL_USER = "seller_1261493801_biz_api1.akinon.com"
-PAYPAL_PASSWORD = "1261493806"
-PAYPAL_SIGNATURE = "AFcWxV21C7fd0v3bYYYRCpSSRl31A-wla4a4Wt-Cri8WHGG4YhDjPWuQ"
+PAYPAL_USER = "seller_1261519973_biz_api1.akinon.com"
+PAYPAL_PASSWORD = "1261519978"
+PAYPAL_SIGNATURE = "A1.OnfcjaBVTgV6Yt.oT2VavxcyOA5FGVe-MrNf.1R1zNVAD6.MDOKZO"
+PAYPAL_DEBUG = True
INSTALLED_APPS = (
'django.contrib.auth',

0 comments on commit 0f1cfdd

Please sign in to comment.
Something went wrong with that request. Please try again.