Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Ds_Merchant_Order (transactionId) parameter #2

Open
devnix opened this issue Nov 17, 2020 · 1 comment
Open

About Ds_Merchant_Order (transactionId) parameter #2

devnix opened this issue Nov 17, 2020 · 1 comment

Comments

@devnix
Copy link

devnix commented Nov 17, 2020

Hi! Redsys specifies in their documentation that the parameter Ds_Merchant_Order 4 numeric digits on the description and then alphanumeric characters, but the data type in the same row says 12 alphanumerics. Indeed, we have been transacting for over a year with transaction ids like this one: QPYDStLbYl5P.

The method PurchaseRequest::setTransactionId() was generating me a 16 length string, by appending 4 zeros at the left. I find this very misleading because the parameter sent should be the one you are inputting. Maybe a solution could be to fill with zeros at the left, if the length is <12?

@leith
Copy link
Member

leith commented Nov 24, 2020

I'd have to go back and look at the documentation, it's been a while since I did the implementation for this one. That sounds like a reasonable approach though, and certainly one that should be easy to cover with unit tests. It's a little confusing when the documentation is saying different things, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants