-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(connector): [Novalnet] Integrate wallets Paypal and Googlepay #6370
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
Conversation
Review changes with SemanticDiff. Analyzed 2 of 5 files. Overall, the semantic diff is 13% smaller than the GitHub diff.
|
Ok(api_models::webhooks::ObjectReferenceId::RefundId( | ||
api_models::webhooks::RefundIdType::ConnectorRefundId(notif.event.tid.to_string()), | ||
api_models::webhooks::RefundIdType::ConnectorRefundId(parent_tid.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.
what is the difference between event.parent_tid and event.tid ?
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.
according to docs,
event.tid - The TID which is relevant to this event.
event.parent_tid - During the course of followup events like chargebacks, credit entry etc.., this field will contain the value of the original/initial transaction TID.
I have removed this change. Not needed.
let transaction_status = item | ||
.response | ||
.transaction | ||
.clone() |
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 pass reference here ?
@@ -195,8 +195,11 @@ impl ConnectorValidation for Novalnet { | |||
pm_type: Option<enums::PaymentMethodType>, | |||
pm_data: PaymentMethodData, | |||
) -> CustomResult<(), errors::ConnectorError> { | |||
let mandate_supported_pmd: HashSet<PaymentMethodDataType> = | |||
HashSet::from([PaymentMethodDataType::Card]); | |||
let mandate_supported_pmd: HashSet<PaymentMethodDataType> = HashSet::from([ |
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 the changes in crates/connector_configs/toml
as well
Ok(api_models::webhooks::ObjectReferenceId::RefundId( | ||
api_models::webhooks::RefundIdType::ConnectorRefundId(notif.event.tid.to_string()), | ||
api_models::webhooks::RefundIdType::ConnectorRefundId(parent_tid.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.
Are we supposed to populate ConnectorRefundId
with parent_tid
?
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.
no, I have removed this code. notif.event.tid
should work.
@cookieg13 |
de7f584
to
8190de3
Compare
yes tested locally, webhooks and mandates are tested too |
c1b4501
to
a415817
Compare
@cookieg13 Can you add the response aswell then only will get to know whether its worked or not. and add the mandate req and res also |
added testing doc with req and responses in readme |
a398832
a415817
to
a398832
Compare
a398832
to
17bd60c
Compare
Type of Change
Description
Additional Changes
Motivation and Context
https://github.com/juspay/hyperswitch-cloud/issues/6731
How did you test it?
Tested manually.
Test cases:
Manual Testing Doc
Checklist
cargo +nightly fmt --all
cargo clippy