-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(router): added request body for stripe capture request which now accepts amount to capture #51
Conversation
… accepts amount_to_capture
… accepts amount_to_capture
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!
types::PaymentsRequestCaptureData, | ||
types::PaymentsResponseData, | ||
>, | ||
req: &types::PaymentsRouterCaptureData, |
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.
This type would be called PaymentsCaptureRouterData
due to the change in #48. Just bringing it to your notice...
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.
@Narayanbhat166 agreed to change this once it is merged in main.
…hich now accepts amount_to_capture" This reverts commit 37cf48e.
Type of Change
Description
For the capture flow in stripe, get_request_body function was added.
Additional Changes
Motivation and Context
This change helps merchant to capture partial funds.
How did you test it?
Tested on postman.
Checklist
cargo +nightly fmt
cargo clippy