-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(connector): [Paybox] Add 3DS Flow #6088
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 3DS Flow #6088
Conversation
Review changes with SemanticDiff. Analyzed 5 of 15 files. Overall, the semantic diff is 15% smaller than the GitHub diff.
|
@@ -318,6 +319,7 @@ cybersource = { payment_method = "card" } | |||
nmi = { payment_method = "card" } | |||
payme = { payment_method = "card" } | |||
deutschebank = { payment_method = "bank_debit" } | |||
paybox = { payment_method = "card" } |
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.
Please add these URL's in loadtest/config/development.toml
as well
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.
added
PayboxResponse::Error(_) => Ok(Self { | ||
response: Err(types::ErrorResponse { | ||
code: response.response_code.clone(), | ||
message: response.response_message.clone(), | ||
reason: Some(response.response_message), | ||
code: consts::NO_ERROR_CODE.to_string(), | ||
message: consts::NO_ERROR_MESSAGE.to_string(), | ||
reason: Some(consts::NO_ERROR_MESSAGE.to_string()), | ||
status_code: item.http_code, | ||
attempt_status: None, | ||
connector_transaction_id: Some(item.response.transaction_number), | ||
connector_transaction_id: 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.
Why aren't we populating the error values here?
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 will only come when we are getting Error in html response
rank: auth_data.rang, | ||
key: auth_data.cle, | ||
}) | ||
if item.router_data.is_three_ds() { |
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.
Also test Capture, Psync and Refund Flow for 3DS transactions.
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.
tested , Working
pub struct ThreeDSPaymentsRequest { | ||
id_merchant: Secret<String>, | ||
id_session: String, | ||
amount: MinorUnit, | ||
currency: String, | ||
#[serde(rename = "CCNumber")] | ||
cc_number: cards::CardNumber, | ||
#[serde(rename = "CCExpDate")] | ||
cc_exp_date: Secret<String>, | ||
#[serde(rename = "CVVCode")] | ||
cvv_code: Secret<String>, | ||
#[serde(rename = "URLRetour")] | ||
url_retour: String, | ||
#[serde(rename = "URLHttpDirect")] | ||
url_http_direct: String, | ||
email_porteur: common_utils::pii::Email, | ||
first_name: Secret<String>, | ||
last_name: Secret<String>, | ||
address1: Secret<String>, | ||
zip_code: Secret<String>, | ||
city: String, | ||
country_code: api_models::enums::CountryAlpha2, | ||
total_quantity: i32, | ||
} |
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.
Make only required fields as mandatory and add the in crates/router/src/configs/defaults.rs
.
Make strongly recommended fields as optional and add a comment highlighting those fields.
@@ -2285,6 +2285,112 @@ impl Default for super::settings::RequiredFields { | |||
), | |||
} | |||
), | |||
( |
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.
Add email field and also add these fields for credit card payments
Type of Change
Description
Added 3DS flow
Additional Changes
Motivation and Context
How did you test it?
Request
Response
Redirect Response
Checklist
cargo +nightly fmt --all
cargo clippy