Search code examples
opayo

Sage Pay SERVER Protocol - Adding custom parameters to the Transaction Registration Request


Is there a way to pass custom parameters when making a Transaction registration request using the Sage Pay SERVER protocol?

I want to be able to pass a custom value to the request that can be retrieved when responding to the Notification POST.

I am currently doing this by appending values to the querystring for the NextURL parameter when registering the transaction. However I would like to know if there is a better way of handling this?


Solution

  • I spoke with Sage Pay and they informed me that passing custom parameters in the Transaction Registration POST is not supported. So I ended up storing the values in the database along with the payment so that they could be retrieved when responding to the Notification POST.