-
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): [Paybox] Add mandates Flow for Paybox #6378
feat(connector): [Paybox] Add mandates Flow for Paybox #6378
Conversation
cb851dc
to
8d4780a
Compare
connector_mandate_ids.get_connector_mandate_id()?, | ||
connector_mandate_ids | ||
.get_connector_mandate_id() | ||
.ok_or_else(missing_field_err("mandate_id"))?, |
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.
Optional change:
There also seems to be a errors::ConnectorError::MissingConnectorMandateID
enum variant, confirm with the connector team if that enum variant would have to be raised 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.
@deepanshu-iiitu Can you verify this?
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.
Both can be used
5441e64
to
6feba97
Compare
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.
Dashboard specific changes look fine
b21ccbe
@awasthi21 Can you please add the relevant test cases in the PR description? |
let card_detail_from_locker: Option<api::CardDetailFromLocker> = pm | ||
.payment_method_data | ||
.clone() | ||
.map(|x| x.into_inner().expose()) |
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.
nit : Can you give a better naming for the inner variables?
.clone() | ||
.map(|x| x.into_inner().expose()) | ||
.and_then(|v| { | ||
v.parse_value("PaymentMethodsData") |
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.
nit: here as well
connector_mandate_ids.get_connector_mandate_id()?, | ||
connector_mandate_ids | ||
.get_connector_mandate_id() | ||
.ok_or_else(missing_field_err("mandate_id"))?, |
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.
Both can be used
Type of Change
Description
1)Added Mandate flow for Paybox
2) Added a new field
additional_payment_method_data
in PaymentsAuthorizeData type3) Added
connector_mandate_request_reference_id
in RouterDataAdditional Changes
Motivation and Context
1)Paybox requires the expiration year, month, and mandate ID in our request, added
additional_payment_method
to fetch card info.2)Paybox also needs a unique ID(
connector_mandate_request_reference_id
) from us during CIT, which they'll return with their own ID for MIT payments.How did you test it?
CIT Flow
Response
MIT
Request
Response
Checklist
cargo +nightly fmt --all
cargo clippy