-
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(core): add support for webhook additional source verification call for paypal #2058
Conversation
…_verify Signed-off-by: chikke srujan <[email protected]>
| PaypalWebhookEventType::CheckoutOrderProcessed => Ok(Self::Pending), | ||
PaypalWebhookEventType::PaymentAuthorizationCreated => Ok(Self::Created), | ||
PaypalWebhookEventType::PaymentCaptureRefunded => Ok(Self::Refunded), | ||
_ => Err(errors::ConnectorError::WebhookEventTypeNotFound.into()), |
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 are we throwing ConnectorError::WebhookEventTypeNotFound
here? Please address it in other try_froms too
) -> CustomResult<String, errors::ConnectorError> { | ||
let header_value = header | ||
.get(key) | ||
.ok_or(errors::ConnectorError::WebhookSourceVerificationFailed)? |
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.
Should we consider adding logs here, because it's hard to trace if something fails here?
cc4eaed
to
ec71db3
Compare
30dc704
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.
Fix ci failures
Done! |
Type of Change
Description
Paypal needs additional verification call for webhook source verification . This pr adds support in webhooks flow for additional api call for source verification .
Additional Changes
Motivation and Context
Paypal needs additional verification call for webhook source verification . This pr adds support in webhooks flow for additional api call for source verification .
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy