-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(connector): [Adyen ] Add fixes for Adyen PaymentsRequest struct #6803
Open
cookieg13
wants to merge
1
commit into
main
Choose a base branch
from
adyenFixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+48
−3
Conversation
This file contains 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
deepanshu-iiitu
requested changes
Dec 11, 2024
@@ -627,6 +665,7 @@ pub struct PmdForPaymentType { | |||
#[serde(rename_all = "camelCase")] | |||
pub struct JCSVoucherData { | |||
first_name: Secret<String>, | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
cookieg13
force-pushed
the
adyenFixes
branch
from
December 11, 2024 10:25
ba61d72
to
28440e0
Compare
deepanshu-iiitu
approved these changes
Dec 11, 2024
kashif-m
reviewed
Dec 11, 2024
@@ -92,25 +92,36 @@ pub enum AuthType { | |||
#[derive(Clone, Default, Debug, Serialize, Deserialize)] | |||
#[serde(rename_all = "camelCase")] | |||
pub struct AdditionalData { | |||
#[serde(skip_serializing_if = "Option::is_none")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cookieg13 we can make use skip_serializing_none
here! ref - https://docs.rs/serde_with/latest/serde_with/attr.skip_serializing_none.html
cookieg13
changed the title
feat(connector): [Adyen ] Add fixes
feat(connector): [Adyen ] Add fixes for Adyen PaymentsRequest struct
Dec 12, 2024
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?
1. For testing fix 1( type being sent twice in "payment method") (expand to view more)
1. Set base url of adyen to below in config/development.toml file2. Hit curl for /payments CIT
3. Hit curl for /confirm CIT
Before (type being sent twice)
After
For testing fix 2 and 3 (expand to view more)
1. Make /payments call (i )for cards , ii) without line2)Response
Before (null fields present in payment request body)
After (null fields are not present in payment request body)
Checklist
cargo +nightly fmt --all
cargo clippy