-
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): [AUTHORIZEDOTNET] Implement zero mandates #4704
Conversation
&item.request, | ||
)?, | ||
payment_profiles: PaymentProfiles { | ||
customer_type: CustomerType::Individual, |
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.
Why is this hardcoded ?
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.
This is hardcoded because we are not differentiating between business customers and individual customers while creating mandates.
}), | ||
}, | ||
}, | ||
validation_mode: ValidationMode::TestMode, |
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.
Is this meant to be in testmode in production too ?
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.
Fixed.
let mut error_code = String::new(); | ||
let mut error_reason = String::new(); | ||
for val in item.response.messages.message.iter() { | ||
error_code.push_str(&val.code); |
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.
Can we use map(), iter() and collect() instead ?
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.
Done
Type of Change
Description
Zero dollar mandates are implemented for connector Authorizedotnet.
Additional Changes
Motivation and Context
#4702
How did you test it?
Note:
test_mode
should be set totrue
while testing.Request:
Response:
Request:
Response:
Checklist
cargo +nightly fmt --all
cargo clippy