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

[FEATURE] expose tokenize endpoints #6969

Open
2 tasks done
kashif-m opened this issue Jan 2, 2025 · 0 comments
Open
2 tasks done

[FEATURE] expose tokenize endpoints #6969

kashif-m opened this issue Jan 2, 2025 · 0 comments
Assignees
Labels
C-feature Category: Feature request or enhancement S-awaiting-triage Status: New issues that have not been assessed yet

Comments

@kashif-m
Copy link
Contributor

kashif-m commented Jan 2, 2025

Feature Description

HS backend to expose endpoints to help with tokenization of customer's cards. HyperSwitch makes use of an external service which helps tokenize the card and makes it usable within HS ecosystem. Once tokenized, these cards can be used in a PG agnostic manner as they're tokenized with the card networks.

Possible Implementation

Expose two endpoints

  • /payment_methods/tokenize-card
  • /payment_methods/tokenize-card-batch

The flow looks like -

  • Create / update customer
  • Tokenize card with the network (through external service)
  • Create a payment method entry in HS storing the required references from external service
  • Return response

For batch tokenization, above steps will be executed for every card to be tokenized. Any errors encountered during this operation will be aggregated and returned back in the response.

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

  • I checked and didn't find a similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

Yes, I am willing to submit a PR!

@kashif-m kashif-m added C-feature Category: Feature request or enhancement S-awaiting-triage Status: New issues that have not been assessed yet labels Jan 2, 2025
@kashif-m kashif-m self-assigned this Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: Feature request or enhancement S-awaiting-triage Status: New issues that have not been assessed yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant