juspay/hyperswitch

[FEATURE] unite payment intent and setup intent in stripe compatibility

Open

#1,242 opened on May 23, 2023

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Rust (4,676 forks)batch import
C-featuregood first issue

Repository metrics

Stars
 (42,690 stars)
PR merge metrics
 (Avg merge 6d 22h) (213 merged PRs in 30d)

Description

Feature Description

There are some common fields in payment intent request and setup intent request .Adding any new common fields need to be added in both. So it is better to have a common struct and the common struct can be used in the individual struct. The common struct can be setup intent as well since setup intent request is a subset of payment intent request.

Possible Implementation

Create a separate struct with common fields or use setup intent in payment intent struct using serde flatten.

Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

No, but I'm happy to collaborate on a PR with someone else

Contributor guide