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

fix(connector): stripe mandate failure and other ui tests failures #1742

Conversation

hrithikesh026
Copy link
Contributor

@hrithikesh026 hrithikesh026 commented Jul 18, 2023

Type of Change

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

Description

  1. Fix existing failures in UI tests of existing connectors
  2. Stripe requires us to send a field called payment_method_types[] with all payment payment_intents. This is a list of all supported payment_method_types for that payment intent.

If this is None, Stripe takes ["Card"] as default value.

But this field payment_method_types[] is made mandatory in my recent PR #1119 . This caused recurring mandate payment to fail if payment_method_type is not passed during mandate creation.

In #1119 payment_method_types[] is taken inferred from payment_method_type value passed during mandate creation call.

But Card recurring mandate in stripe can be done without passing payment_method_type in mandate create call. (Because default is Card).

Mandate creation done for other payment_methods would require payment_method_type to be passed in create request body.

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?

Manual

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 added C-bug Category: Bug P-high Priority: High low-risk label to track PRs which might have less impact on hyperswitch after merge labels Jul 18, 2023
@hrithikesh026 hrithikesh026 added this to the July 2023 Release milestone Jul 18, 2023
@hrithikesh026 hrithikesh026 requested a review from a team as a code owner July 18, 2023 19:05
@hrithikesh026 hrithikesh026 self-assigned this Jul 18, 2023
jagan-jaya
jagan-jaya previously approved these changes Jul 19, 2023
jagan-jaya
jagan-jaya previously approved these changes Jul 19, 2023
ArjunKarthik
ArjunKarthik previously approved these changes Jul 19, 2023
…date_payment' of github.com:juspay/hyperswitch into payment_method_type_not_required_for_card_recurring_mandate_payment
jagan-jaya and others added 4 commits July 19, 2023 16:48
…date_payment' of https://github.com/juspay/orca into payment_method_type_not_required_for_card_recurring_mandate_payment
Signed-off-by: chikke srujan <[email protected]>
…date_payment' of https://github.com/juspay/orca into payment_method_type_not_required_for_card_recurring_mandate_payment
@hrithikesh026 hrithikesh026 changed the title fix(connector): payment_method_type not required for recurring mandate payment through card stripe fix(connector): stripe mandate failure and other ui tests failures Jul 19, 2023
@SanchithHegde SanchithHegde added this pull request to the merge queue Jul 19, 2023
Merged via the queue into main with commit ea119eb Jul 19, 2023
@SanchithHegde SanchithHegde deleted the payment_method_type_not_required_for_card_recurring_mandate_payment branch July 19, 2023 14:57
@SanchithHegde SanchithHegde removed P-high Priority: High low-risk label to track PRs which might have less impact on hyperswitch after merge labels Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants