Duplicate "refNo" lead to errors when using multiple environments

Created on 2 April 2025, 5 days ago

Problem/Motivation

Since the refNo is order->id() when submitting to Datatrans, the mapping between Datatrans Transactions and Drupal Orders breaks, when multiple developers have different DB states / different order ids.

Steps to reproduce

Have an environment and settle a payment for order 1.

Have a second environment and settle a payment for order 1.

Proposed resolution

Use the UUID of the order instead.

Remaining tasks

- [ ] Update the Notify Route Controller and the DatatransBase to use the UUID instead

User interface changes

/

API changes

- Use UUID of the Order as the "refNo" field for Datatrans internally

Data model changes

/

🐛 Bug report
Status

Active

Version

2.2

Component

Code

Created by

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