feat(payouts): apple pay decrypt payout#9857
Merged
likhinbopanna merged 5 commits intomainfrom Oct 16, 2025
Merged
Conversation
kashif-m
requested changes
Oct 15, 2025
Comment on lines
+251
to
+263
| pub struct ApplePayDecryptAdditionalData { | ||
| /// Card expiry month | ||
| #[schema(value_type = String, example = "01")] | ||
| pub card_exp_month: Secret<String>, | ||
|
|
||
| /// Card expiry year | ||
| #[schema(value_type = String, example = "2026")] | ||
| pub card_exp_year: Secret<String>, | ||
|
|
||
| /// Card holder name | ||
| #[schema(value_type = String, example = "John Doe")] | ||
| pub card_holder_name: Option<Secret<String>>, | ||
| } |
Contributor
There was a problem hiding this comment.
Do we need additional details for device bound data? If yes, we can add last4 of DPAN as well?
Contributor
Author
There was a problem hiding this comment.
Will need to confirm with the merchant if it is a requirement for them.
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
Outdated
Show resolved
Hide resolved
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
Outdated
Show resolved
Hide resolved
kashif-m
previously approved these changes
Oct 16, 2025
kashif-m
approved these changes
Oct 16, 2025
sai-harsha-vardhan
approved these changes
Oct 16, 2025
su-shivanshmathur
approved these changes
Oct 16, 2025
| #[cfg(feature = "payouts")] | ||
| impl CardData for api_models::payouts::ApplePayDecrypt { | ||
| fn get_card_expiry_year_2_digit(&self) -> Result<Secret<String>, errors::ConnectorError> { | ||
| let binding = self.expiry_month.clone(); |
Contributor
There was a problem hiding this comment.
should we fetch expiry_year ?
Contributor
Author
There was a problem hiding this comment.
raised a corresponding fix in a separate pr to not make this pr stale: #9871
Note: this method is not being used in current implementation
AkshayaFoiger
approved these changes
Oct 16, 2025
Sakilmostak
added a commit
that referenced
this pull request
Oct 16, 2025
14 tasks
chaitak-gorai
pushed a commit
that referenced
this pull request
Oct 16, 2025
drdholu
pushed a commit
to drdholu/hyperswitch
that referenced
this pull request
Oct 30, 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
Additional Changes
Motivation and Context
How did you test it?
Create an MCA with WorldPay for payouts
Do a payout request with apple pay decrypted data:
response should have status as
initiated, below is an exampleChecklist
cargo +nightly fmt --allcargo clippy