-
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 new payments webhook events #3212
Conversation
Co-authored-by: hrithikeshvm <vmhrithikesh@gmail.com>
7457f74
@@ -1956,6 +1956,9 @@ impl api::IncomingWebhook for Stripe { | |||
stripe::WebhookEventType::PaymentIntentCanceled => { | |||
api::IncomingWebhookEvent::PaymentIntentCancelled | |||
} | |||
stripe::WebhookEventType::PaymentIntentAmountCapturableUpdated => { |
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.
Isn't PaymentIntentAuthorizationSuccess meant for Authorized payments?
But as per stripe docs PaymentIntentAmountCapturableUpdated "Occurs when a PaymentIntent has funds to be captured. Check the amount_capturable property on the PaymentIntent to determine the amount that can be captured. You may capture the PaymentIntent with an amount_to_capture value up to the specified amount"
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.
amount_capturable
ideally will be updated only when authorization succeeds.
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.
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
* 'main' of github.com:juspay/hyperswitch: ci: use git commands for pushing commits and tags in nightly release workflows (#3314) refactor(connector): [bluesnap] add connector_txn_id fallback for webhook (#3315) feat(core): add new payments webhook events (#3212) chore: nits and small code improvements found during investigation of PR#3168 (#3259) refactor: removed basilisk feature (#3281) fix(euclid_wasm): Update braintree config prod (#3288) feat(payment_link): add status page for payment link (#3213) chore(version): 2024.01.10.0 chore(postman): update Postman collection files
Type of Change
Description
Added support for below Incoming webhooks
Also added support for below outgoing webhooks.
Additional Changes
Motivation and Context
How did you test it?
This PR cannot be tested unless connector changes are done.
This PR only has core changes.
Can be tested after this PR gets merged. #3298
Checklist
cargo +nightly fmt --all
cargo clippy