fix(connectors): [TSYS] change order of order_number in tsys auth request body#9579
Merged
likhinbopanna merged 2 commits intojuspay:mainfrom Oct 8, 2025
Merged
Conversation
Changed Files
|
Contributor
|
This PR LGTM. I have tested all the flows. Working as expected. I have attached the curls and responses in the description. |
bsayak03
approved these changes
Sep 27, 2025
Contributor
Author
|
Hey @bsayak03, are there any other actions required on my side to get this merged? Thanks! |
Contributor
No, its in review. Should get merged asap @mattiapitossi |
| expiration_date: ccard | ||
| .get_card_expiry_month_year_2_digit_with_delimiter("/".to_owned())?, | ||
| cvv2: ccard.card_cvc, | ||
| order_number: item.connector_request_reference_id.clone(), |
Contributor
There was a problem hiding this comment.
is this change needed?
Contributor
Author
There was a problem hiding this comment.
This change is primarily to be coherent with the above definition of the structure, but it's not strictly necessary as the serialization will follow the struct definition. Let me know if you prefer to keep the previous one
deepanshu-iiitu
approved these changes
Oct 7, 2025
aadityaguptaa
pushed a commit
that referenced
this pull request
Nov 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
This PR fixes the request body order of the TSYS contract for the auth request
Additional Changes
Motivation and Context
fixes #9375
How did you test it?
Unfortunately, I'm not able to test this changes against an actual sandbox as I've been in touch with TYSY and they only provide test credentials for certification purpose. Also this PR mention that there are not test credential for this project.
I was able to reproduce mentioned in the issue by using the Sandbox inside the developer portal:

That's because orderNumber is the wrong group as per API specification and should be placed in a different order. If we try to put (as in the PR) right after cvv2, the request is successful:

cURL:
Response:
cURL:
Response:
Authorize :
cURL:
Response:
Capture:
cURL:
Response:
cURL:
Response:
cURL:
Response:
Checklist
cargo +nightly fmt --allcargo clippy