Jump to content

Add a prefix to the ORDER ID


Recommended Posts

Hi All,

 

I currently have 2 stores, 1 is main domain www.mystore.com and the other is subdomain www.sub.mystore.com.

 

I use BarclayCard ePDQ for my card processing and I wish to use my ePDQ with both stores but they only allow 1 safe url for requests and responses. I have 2 separate urls posting requests and receiving responses.

 

www.mystore.com/epdq

and

www.sub.mystore.com/epdq

 

I can make a workaround by creating scripts to differentiate between to the 2 stores and then direct the calls to the relevant stores ePDQ module & Database.

 

For this I need to have a prefix on the order ids of both stores.

 

For example:

 

www.mystore.com order id 001,002,003... needs to change to S1-001,S2-002,S3-003...

 

and

 

www.sub.mystore.com order id 001,002,003... needs to change to S2-001,S3-002,S4-003...

 

Any help on this would be greatly appreciated!!

 

Thanks in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...