feat(router): add support for GooglePay pre-decrypted token in the payments confirm call #8865
Merged
likhinbopanna merged 2 commits intomainfrom Aug 8, 2025
Merged
feat(router): add support for GooglePay pre-decrypted token in the payments confirm call #8865likhinbopanna merged 2 commits intomainfrom
likhinbopanna merged 2 commits intomainfrom
Conversation
3e32aef to
76dd309
Compare
deepanshu-iiitu
previously approved these changes
Aug 8, 2025
Sakilmostak
previously approved these changes
Aug 8, 2025
Contributor
Sakilmostak
left a comment
There was a problem hiding this comment.
LGTM! Need extensive sanity testing given the scope
67a0a60
53128c2 to
67a0a60
Compare
Comment on lines
+538
to
+546
| pub fn get_expiry_month(&self) -> Result<Secret<String>, errors::ValidationError> { | ||
| let month_str = self.card_exp_month.peek(); | ||
| let month = month_str | ||
| .parse::<u8>() | ||
| .map_err(|_| errors::ValidationError::InvalidValue { | ||
| message: format!("Failed to parse expiry month: {month_str}"), | ||
| })?; | ||
|
|
||
| if !(1..=12).contains(&month) { | ||
| return Err(errors::ValidationError::InvalidValue { | ||
| message: format!("Invalid expiry month: {month}. Must be between 1 and 12"), | ||
| } | ||
| .into()); | ||
| } | ||
| Ok(self.card_exp_month.clone()) | ||
| } |
Contributor
There was a problem hiding this comment.
Can you please add similar logic to get_expiry_month of ApplePayPredecryptData ?
Contributor
Author
There was a problem hiding this comment.
Added the same logic for ApplePayPredecryptData
af0af9d to
0b04c1d
Compare
0269dbb to
82c191f
Compare
deepanshu-iiitu
previously approved these changes
Aug 8, 2025
ShankarSinghC
approved these changes
Aug 8, 2025
deepanshu-iiitu
approved these changes
Aug 8, 2025
Sakilmostak
approved these changes
Aug 8, 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 will allow to pass the Decrypted Payload(GooglePay) directly in the Payments Confirm call
Additional Changes
Motivation and Context
How did you test it?
GooglePay Decypted CyberSource Flow
Requesst
Response
Vantive GPay Decrypted Flow (Merchant Side Decryption)
Request
Response
Cybersource Gpay Flow
Request
Response
Checklist
cargo +nightly fmt --allcargo clippy