Updated SagePay module URLs for integration with Elavon

Created on 5 December 2023, 12 months ago

Opayo/Elavon have emailed us to say they will be updating the URLs we use for our transactions and reporting.

The URLs you use to send transactions to Opayo will be changing to an Elavon domain and you need to make the changes to send your transactions to the updated URLs.

These changes must be made by 31st March 2024, this is when the SagePay URLs will cease to work.

Steps to reproduce

  1. Setup SagePay Module:
    • Install and enable the SagePay module on a Drupal 7 site.
  2. Configure SagePay Settings:
    • Access the SagePay module settings within the file commerce_sagepay_constants.inc and change the URL referring to the server.
    • Verify the existing URLs set for test and live environments (SAGEPAY_SERVER_SERVER_TEST and SAGEPAY_SERVER_SERVER_LIVE respectively).
  3. Attempt Transaction:
    • Initiate a test transaction using the current SagePay URLs for transaction processing.
  4. Observe URL Error or Redirection:
    • Note any errors or redirection encountered during the transaction due to outdated URLs.
  5. Document Errors Encountered:
    • Document the specific errors or issues encountered during the transaction attempt.

Proposed resolution

Update the SagePay module by replacing the existing URLs (SAGEPAY_SERVER_SERVER_TEST and SAGEPAY_SERVER_SERVER_LIVE) with the new URLs provided by Elavon for both test and live environments.

But I'm not sure if we have to update all the URLs on the file

Test environment:
Before: SAGEPAY_SERVER_SERVER_TEST pointing to 'https://test.sagepay.com/gateway/service/vspserver-register.vsp'
After: SAGEPAY_SERVER_SERVER_TEST pointing to 'https://sandbox.opayo.eu.elavon.com/gateway/service/vspserver-register.vsp'

Production Environment (Live):
Before: SAGEPAY_SERVER_SERVER_LIVE pointing to 'https://live.sagepay.com/gateway/service/vspserver-register.vsp'
After: SAGEPAY_SERVER_SERVER_LIVE pointing to 'https://live.opayo.eu.elavon.com/gateway/service/vspserver-register.vsp'

Remaining tasks

  1. Update URLs:
    • Locate the specific definitions of SAGEPAY_SERVER_SERVER_TEST and SAGEPAY_SERVER_SERVER_LIVE in the SagePay module code.
    • Replace the existing URLs with the new URLs provided by Elavon.
  2. Testing:
    • Thoroughly test the updated SagePay module in both test and live environments to ensure proper functionality and transaction processing.

User interface changes

No direct user interface changes are expected from this update. However, users will experience improved transaction processing post-update.

API changes

No API changes are introduced; only the URLs within the module codebase are updated.

Data model changes

There are no data model changes associated with this update.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇷Brazil brandonlira

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024