-
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
refactor(connector): [PowerTranz] refactor powertranz payments to remove default cases #2547
Conversation
… payments Introduces the "connector_request_reference_id" field in the "RouterData" structure to improve consistency in transmitting payment information to the Nuvei payment gateway. This new ID will replace the usage of "payment_id" and "attempt_id", aligning with the Nuvei API requirements for referencing payments. This change ensures that all payment requests to Nuvei use a unified reference ID, reducing potential confusion and streamlining the integration process. Fixes juspay#2309
…ents This change ensures that all payment variants are handled explicitly to Powertranz payment gateway. Fixes juspay#2283
…ove default cases Issue juspay#2283
_ => Err(errors::ConnectorError::NotImplemented( | ||
"Payment method".to_string(), | ||
)), | ||
api::PaymentMethodData::CardRedirect(_) |
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.
api::PaymentMethodData::CardRedirect(_) | |
api::PaymentMethodData::Wallet(_) | |
| api::PaymentMethodData::CardRedirect(_) |
Here you haven't include wallet enum. This is the reason for clippy check to fail.
// _ => Err(errors::ConnectorError::NotImplemented( | ||
// "Payment method".to_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.
// _ => Err(errors::ConnectorError::NotImplemented( | |
// "Payment method".to_string(), | |
// )), |
Please remove these comments
Does this looks fine? @prasunna09 ? |
…ove default cases fixes juspay#2283
…ove default cases fixes juspay#2283
…ove default cases fixes juspay#2283
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.
LGTM!
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.
LGTM! Thank you for you contribution. @Himanshu-370
Hey @Himanshu-370 , |
Type of Change
Description
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy