Attempting to do a real testpayment

pull/1/head
Raymond Yee 2012-04-23 13:54:37 -07:00
parent a11867d0bb
commit b6e0369b1c
4 changed files with 12 additions and 3 deletions

View File

@ -385,6 +385,13 @@ class Pay( AmazonRequest ):
options = {}
# Use the boto class top open a connection
# if options does not have a host key, then use settings.AMAZON_FPS_HOST if it exists
if options.get('host') is None:
try:
options['host'] = settings.AMAZON_FPS_HOST
except:
pass
self.connection = FPSConnection(settings.FPS_ACCESS_KEY, settings.FPS_SECRET_KEY, **options)
receiver_list = []

View File

@ -28,6 +28,7 @@ class FpsIntegration(Integration):
dd = dict(map(lambda x: x.split("="), query.split("&")))
logger.info("dd: {0}".format(dd))
logger.info("self.fps_connection.host: {0}".format(self.fps_connection.host))
# dd: {'status': 'SC', 'signatureVersion': '2',
# 'tokenID': 'CLDITXQAX2DM82CT184S5CDNKYDXEPXETZ5QJFKB8AX4V9ZD34BGGJ6IDNFZDSUU',

View File

@ -4,8 +4,8 @@ from django.conf import settings
# django-merchant integration
from billing import get_integration
amazon_fps_obj = get_integration("fps")
fps_recur_obj = get_integration("fps")
amazon_fps_obj = get_integration("fps", options={'host':'fps.sandbox.amazonaws.com'})
fps_recur_obj = get_integration("fps", options={'host':'fps.sandbox.amazonaws.com'})
urlpatterns = patterns(
"regluit.payment.views",

View File

@ -28,7 +28,8 @@ import logging
logger = logging.getLogger(__name__)
# parameterize some test recipients
TEST_RECEIVERS = ['seller_1317463643_biz@gmail.com', 'Buyer6_1325742408_per@gmail.com']
TEST_RECEIVERS = ['raymond.yee@gmail.com', 'Buyer6_1325742408_per@gmail.com']
#TEST_RECEIVERS = ['seller_1317463643_biz@gmail.com', 'Buyer6_1325742408_per@gmail.com']
#TEST_RECEIVERS = ['glueja_1317336101_biz@gluejar.com', 'rh1_1317336251_biz@gluejar.com', 'RH2_1317336302_biz@gluejar.com']