Skip to content

An open source payments switch written in Rust to make payments fast, reliable and affordable

License

Notifications You must be signed in to change notification settings

harshalkh/hyperswitch

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hyperswitch-Logo Hyperswitch-Logo

The open-source payments switch

The single API to access payment ecosystems across 130+ countries

Quick Start Guide β€’ Fast Integration for Stripe Users β€’ Supported Features β€’ FAQs
What's Included β€’ Join us in building HyperSwitch β€’ Community β€’ Bugs and feature requests β€’ Versioning β€’ Copyright and License

πŸŽ‰ Hacktoberfest is here! πŸŽ‰

New to Rust? Hyperswitch is the perfect place to start this hacktoberfest! 😁

⭐️ If you're new to Hacktoberfest, you can learn more and register to participate here. Registration is from September 26th - October 31st.


Hyperswitch is an open source payments switch to make payments fast, reliable, and, affordable. It lets you connect with multiple payment processors and route traffic effortlessly, all with a single API integration.

Using Hyperswitch, you can:

  • ⬇️ Reduce dependency on a single processor like Stripe or Braintree
  • πŸ§‘β€πŸ’» Reduce Dev effort by 90% to add & maintain integrations
  • πŸš€ Improve success rates with seamless failover and auto-retries
  • πŸ’Έ Reduce processing fees with smart routing
  • 🎨 Customize payment flows with full visibility and control
  • 🌐 Increase business reach with local/alternate payment methods

Hyperswitch is wire-compatible with top processors like Stripe, making it easy to integrate.


Hyperswitch-Product

Ways to get started with Hyperswitch:

  1. Try it in our Sandbox Environment: Fast and easy to start. No code or setup is required in your system, learn more

  1. A simple demo of integrating Hyperswitch with your React App, Try our React Demo App.

  2. Install in your local system: Configurations and setup required in your system. Suitable if you like to customise the core offering, setup guide

If you are already using Stripe, integrating with Hyperswitch is fun, fast & easy. Try the steps below to get a feel for how quick the setup is:

  1. Get API keys from our dashboard.
  2. Follow the instructions detailed on our documentation page.

🌟 Supported Payment Processors and Methods

As of Sept 2023, we support 50+ payment processors and multiple global payment methods. In addition, we are continuously integrating new processors based on their reach and community requests. Our target is to support 100+ processors by H2 2023. You can find the latest list of payment processors, supported methods, and features here.

🌟 Hosted Version

In addition to all the features of the open-source product, our hosted version provides features and support to manage your payment infrastructure, compliance, analytics, and operations end-to-end:

  • System Performance & Reliability

    • Scalable to support 50000 tps
    • System uptime of up to 99.99%
    • Deployment with very low latency
    • Hosting option with AWS or GCP
  • Value Added Services

    • Compliance Support, incl. PCI, GDPR, Card Vault etc
    • Customise the integration or payment experience
    • Control Center with elaborate analytics and reporting
    • Integration with Risk Management Solutions
    • Integration with other platforms like Subscription, E-commerce, Accounting, etc.
  • Enterprise Support

    • 24x7 Email / On-call Support
    • Dedicated Relationship Manager
    • Custom dashboards with deep analytics, alerts, and reporting
    • Expert team to consult and improve business metrics

You can try the hosted version in our sandbox.

Got more questions? Please refer to our FAQs page.

Within the repositories, you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations.

Repositories

The current setup contains a single repo, which contains the core payment router and the various connector integrations under the src/connector sub-directory.

🌳 Files Tree Layout

.
β”œβ”€β”€ config                             : Initial startup config files for the router
β”œβ”€β”€ connector-template                 : boilerplate code for connectors
β”œβ”€β”€ crates                             : sub-crates
β”‚   β”œβ”€β”€ api_models                     : Request/response models for the `router` crate
β”‚   β”œβ”€β”€ cards                          : Types to handle card masking and validation
β”‚   β”œβ”€β”€ common_enums                   : Enums shared across the request/response types and database types
β”‚   β”œβ”€β”€ common_utils                   : Utilities shared across `router` and other crates
β”‚   β”œβ”€β”€ data_models                    : Represents the data/domain models used by the business/domain layer
β”‚   β”œβ”€β”€ diesel_models                  : Database models shared across `router` and other crates
β”‚   β”œβ”€β”€ drainer                        : Application that reads Redis streams and executes queries in database
β”‚   β”œβ”€β”€ external_services              : Interactions with external systems like emails, KMS, etc.
β”‚   β”œβ”€β”€ masking                        : Personal Identifiable Information protection
β”‚   β”œβ”€β”€ redis_interface                : A user-friendly interface to Redis
β”‚   β”œβ”€β”€ router                         : Main crate of the project
β”‚   β”œβ”€β”€ router_derive                  : Utility macros for the `router` crate
β”‚   β”œβ”€β”€ router_env                     : Environment of payment router: logger, basic config, its environment awareness
β”‚   β”œβ”€β”€ scheduler                      : Scheduling and executing deferred tasks like mail scheduling
β”‚   β”œβ”€β”€ storage_impl                   : Storage backend implementations for data structures & objects
β”‚   └── test_utils                     : Utilities to run Postman and connector UI tests
β”œβ”€β”€ docs                               : hand-written documentation
β”œβ”€β”€ loadtest                           : performance benchmarking setup
β”œβ”€β”€ migrations                         : diesel DB setup
β”œβ”€β”€ monitoring                         : Grafana & Loki monitoring related configuration files
β”œβ”€β”€ openapi                            : automatically generated OpenAPI spec
β”œβ”€β”€ postman                            : postman scenarios API
└── scripts                            : automation, testing, and other utility scripts

🀝 Our Belief

Payments should be open, fast, reliable and affordable to serve the billions of people at scale.

Globally payment diversity has been growing at a rapid pace. There are hundreds of payment processors and new payment methods like BNPL, RTP etc. Businesses need to embrace this diversity to increase conversion, reduce cost and improve control. But integrating and maintaining multiple processors needs a lot of dev effort. Why should devs across companies repeat the same work? Why can't it be unified and reused? Hence, Hyperswitch was born to create that reusable core and let companies build and customise it as per their specific requirements.

✨ Our Values

  1. Embrace Payments Diversity: It will drive innovation in the ecosystem in multiple ways.
  2. Make it Open Source: Increases trust; Improves the quality and reusability of software.
  3. Be community driven: It enables participatory design and development.
  4. Build it like Systems Software: This sets a high bar for Reliability, Security and Performance SLAs.
  5. Maximise Value Creation: For developers, customers & partners.

🀍 Contributing

This project is being created and maintained by Juspay, South Asia's largest payments orchestrator/switch, processing more than 50 Million transactions per day. The solution has 1Mn+ lines of Haskell code built over ten years. Hyperswitch leverages our experience in building large-scale, enterprise-grade & frictionless payment solutions. It is built afresh for the global markets as an open-source product in Rust. We are long-term committed to building and making it useful for the community.

The product roadmap is open for the community's feedback. We shall evolve a prioritisation process that is open and community-driven. We welcome contributions from the community. Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

πŸ¦€ Important note for Rust developers: We aim for contributions from the community across a broad range of tracks. Hence, we have prioritised simplicity and code readability over purely idiomatic code. For example, some of the code in core functions (e.g., payments_core) is written to be more readable than pure-idiomatic.

Get updates on Hyperswitch development and chat with the community:

Please read the issue guidelines and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

Check the CHANGELOG.md file for details.

This product is licensed under the Apache 2.0 License.

Thank you for your support in hyperswitch's growth. Keep up the great work! πŸ₯‚

Contributors

About

An open source payments switch written in Rust to make payments fast, reliable and affordable

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 68.4%
  • JavaScript 27.5%
  • Nix 3.9%
  • Shell 0.2%
  • CSS 0.0%
  • Dockerfile 0.0%