Skip to content
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

Merged
merged 5 commits into from
Dec 1, 2022

Conversation

Abhicodes-crypto
Copy link
Contributor

@Abhicodes-crypto Abhicodes-crypto commented Nov 30, 2022

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates

Description

For the capture flow in stripe, get_request_body function was added.

Additional Changes

  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

This change helps merchant to capture partial funds.

How did you test it?

Tested on postman.
image
image

Checklist

  • I formatted the code cargo +nightly fmt
  • I addressed lints thrown by cargo clippy
  • I reviewed submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

SanchithHegde
SanchithHegde previously approved these changes Nov 30, 2022
Copy link
Member

@SanchithHegde SanchithHegde left a 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,
Copy link
Member

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...

Copy link
Contributor Author

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.

@SanchithHegde SanchithHegde added A-connector-integration Area: Connector integration C-feature Category: Feature request or enhancement labels Nov 30, 2022
@jarnura jarnura added the S-waiting-on-author Status: This PR is incomplete or needs to address review comments label Dec 1, 2022
@Abhicodes-crypto Abhicodes-crypto added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Dec 1, 2022
@jarnura jarnura merged commit 0f22d70 into main Dec 1, 2022
@jarnura jarnura deleted the amnt-to-capture-stripe-req branch December 1, 2022 09:02
@jarnura jarnura removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-connector-integration Area: Connector integration C-feature Category: Feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants