From db0404c1123ef9296a982d63a9ef4b8f6e2c7761 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 18 Jun 2013 14:02:51 +0200 Subject: [PATCH] Update worldpay host URLs. WorldPay recently communicated that their host URLs are changing. "If you were previously using RBS WorldPay links such as https://secure.wp3.rbsworldpay.com/wcc/purchase you will need to ensure that these are replaced with https://secure.worldpay.com/wcc/purchase to ensure that your site continues to be able to send payments through WorldPay's systems." The documentation currently lists the new URLs http://www.worldpay.com/support/kb/bg/htmlredirect/rhtml.html This change updates the URLs as required. --- billing/integrations/world_pay_integration.py | 4 ++-- billing/tests/world_pay_tests.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/billing/integrations/world_pay_integration.py b/billing/integrations/world_pay_integration.py index acaad616..80b85de6 100644 --- a/billing/integrations/world_pay_integration.py +++ b/billing/integrations/world_pay_integration.py @@ -8,8 +8,8 @@ from django.utils.decorators import method_decorator from billing.forms.world_pay_forms import WPHostedPaymentForm -RBS_HOSTED_URL_TEST = "https://select-test.wp3.rbsworldpay.com/wcc/purchase" -RBS_HOSTED_URL_LIVE = "https://secure.wp3.rbsworldpay.com/wcc/purchase" +RBS_HOSTED_URL_TEST = "https://select-test.worldpay.com/wcc/purchase" +RBS_HOSTED_URL_LIVE = "https://secure.worldpay.com/wcc/purchase" # http://www.rbsworldpay.com/support/bg/index.php?page=development&sub=integration&c=WW diff --git a/billing/tests/world_pay_tests.py b/billing/tests/world_pay_tests.py index 96ec8284..f5188ef9 100644 --- a/billing/tests/world_pay_tests.py +++ b/billing/tests/world_pay_tests.py @@ -42,7 +42,7 @@ def assertFormIsCorrect(self, form, fields): parsed = urlparse.urlparse(form_action_url) self.assertEquals(parsed.scheme, 'https') - self.assertEquals(parsed.netloc, 'select-test.wp3.rbsworldpay.com') + self.assertEquals(parsed.netloc, 'select-test.worldpay.com') self.assertEquals(parsed.path, '/wcc/purchase') def testFormGen(self):