-
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
fix(connector): [Shift4]Add Refund webhooks #1307
Conversation
Signed-off-by: chikke srujan <[email protected]>
Signed-off-by: chikke srujan <[email protected]>
), | ||
)) | ||
} else { | ||
Err(errors::ConnectorError::WebhookEventTypeNotFound).into_report() |
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::WebhookEventTypeNotFound).into_report() | |
Err(errors::ConnectorError::WebhookReferenceIdNotFound).into_report() |
impl From<Shift4WebhookEvent> for api::IncomingWebhookEvent { | ||
fn from(event: Shift4WebhookEvent) -> Self { | ||
match event { | ||
Shift4WebhookEvent::ChargeSucceeded | Shift4WebhookEvent::ChargeUpdated => { |
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 ChargeSucceeded is also mapped as PaymentIntentProcessing
do we get ChargeCaptured
for automatic
capture_method also from shift4?
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.
reference from shift4 ChargeSucceded is when charge is created sucessfully , and charge captured Occurs when a charge is captured. No we are not getting chargeCaptured for automatic but , as per their documentation i have mapped the status .
Signed-off-by: chikke srujan <[email protected]>
…erswitch into add_webhook_support_to_shift4
Signed-off-by: chikke srujan <[email protected]>
Type of Change
Description
Refund webhook support for shift4 (status mapping ref) . We always update the status by psync as we don't have source verification for shift4 .
Additional Changes
Motivation and Context
How did you test it?
payment webhook
Refund webhook
Checklist
cargo +nightly fmt --all
cargo clippy