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(mandates): recurring payment support for bank redirect and bank debit payment method for stripe #1119

Merged
merged 74 commits into from
Jul 17, 2023

Conversation

hrithikesh026
Copy link
Contributor

@hrithikesh026 hrithikesh026 commented May 10, 2023

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

  • Added support for bank debit recurring payment.
  • Stored payment method data for bank debit in the mandate table's metadata column.
  • Made changes in structure of stripes PaymentIntentRequest fields to support the new requirement

I have merged #1231 to this branch since the changes were interdependent.
So merging this branch would automatically add features of #1231

Additional Changes

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

Motivation and Context

How did you test it?

Checklist

  • I formatted the code cargo +nightly fmt --all
  • 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

@hrithikesh026 hrithikesh026 requested review from a team as code owners May 10, 2023 19:48
@hrithikesh026 hrithikesh026 added this to the May 2023 Release milestone May 10, 2023
@hrithikesh026 hrithikesh026 self-assigned this May 10, 2023
@hrithikesh026 hrithikesh026 added A-core Area: Core flows S-waiting-on-review Status: This PR has been implemented and needs to be reviewed C-tracking-issue Category: Tracking issue for a proposal or a category of bugs C-feature Category: Feature request or enhancement labels May 10, 2023
@jarnura jarnura added S-waiting-on-author Status: This PR is incomplete or needs to address review comments and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels May 12, 2023
@hrithikesh026 hrithikesh026 force-pushed the recurring_payment_support_bank_debit_stripe branch from e7e2bf9 to 0cad76d Compare May 16, 2023 07:07
ArjunKarthik
ArjunKarthik previously approved these changes Jul 17, 2023
Comment on lines +1689 to +1690
// .set_metadata(data.metadata),
// we are storing PaymentMethodData in metadata of mandate
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then do you need the set_metadata() call here or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need it now. Previously metadata field in mandate table was used to to store something here. In this PR, I am storing insensitive payment_method_data in it.

SanchithHegde
SanchithHegde previously approved these changes Jul 17, 2023
ArjunKarthik
ArjunKarthik previously approved these changes Jul 17, 2023
…entRedirectFlow for Stripe. To support mandate payment for bank redirect
@bernard-eugine bernard-eugine added this pull request to the merge queue Jul 17, 2023
Merged via the queue into main with commit 14c2d72 Jul 17, 2023
@bernard-eugine bernard-eugine deleted the recurring_payment_support_bank_debit_stripe branch July 17, 2023 13:29
@SanchithHegde SanchithHegde removed P-high Priority: High R-waiting-on-L1 Review: Waiting on L1 reviewer C-tracking-issue Category: Tracking issue for a proposal or a category of bugs labels Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core flows C-feature Category: Feature request or enhancement C-refactor Category: Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants