<p align="center">
  <img src="./icon.png" alt="Hyperswitch-Logo" width="40%" />
</p>

<h1 align="center">Hyperswitch Checkout for WooCommerce</h1>

<div align="center" >
<i>Future-proof woocommerce checkout plugin for startups and growing businesses</i>
<br/><br/>
“Getting ganked by one payment processor for excessive risk/chargebacks and struggling to switch to another is guaranteed to get you some real quick business lessons.”

**Problem: Woocommerce plugins which solve for checkout experience are not really payment processor agnostic**

If your payouts are blocked by the payment processor, your business comes to a standstill. You do not have an alternative option to ensure business continuity. 

And, of course there are some Woocommerce plugins which solve the above problem, but they are not PCI compliant to store credit card data. So, your customers’ credit cards are tokenized and stored with a single payment processor!! 

</div>

<p align="center">
  <a href="https://github.com/juspay/hyperswitch-woocommerce-plugin/blob/main/LICENSE">
    <img src="https://img.shields.io/github/license/juspay/hyperswitch-woocommerce-plugin" />
  </a>
  <a href="https://github.com/juspay/hyperswitch-woocommerce-plugin/blob/main/LICENSE">
    <img src="https://img.shields.io/badge/Made_with-PHP-purple" />
  </a>
</p>

<img src="./assets/banner-1544x500.png" />

Hyperswitch for Woocommerce is a checkout plugin which offers:

- **Embedded checkout experience** across 40+ processors and 80+ payment methods 
- **PCI Compliant** to store credit/debit card data
- **Smart routing engine** to define business rules to optimize your payment cost and boost conversion rates.
- **Single unified dashboard** for analytics and refunds
- **Automatic retries** to enhance conversion rate
- **Local payment methods** for your customers to pay
- **Native payment experience** for a better payment experience
- **SDK Integrations** to support your business when it grows
- **Fraud and risk management** to reduce chargebacks

And it is absolutely **free** for upto 3,000 transactions per month !!!

**Customize your Payment Experience**
This plugin is built to seamlessly tailor the payment experience to match your website’s branding by blending the payment sheet into your WordPress theme. If you wish to, you can further customize the “Appearance” and “Layout” of the payment sheet using styles or pre-built themes.

**Pay Now**
Accept full payments at checkout with multiple payment methods, such as credit/debit card, wallets or pay-later.

**Manual Capture**
You can choose to capture customer payments automatically or manually, as per your needs. Once a customer authorizes their payment, you can easily capture payments manually through the Woocommerce Dashboard.

**Refunds**
In cases where you need to issue a refund to a customer, the Hyperswitch plugin streamlines this process within your Woocommerce Dashboard.

**Sync Payments**
With the Hyperswitch plugin integrated into your Woocommerce Dashboard, you have the flexibility to manually sync payment status whenever necessary. This feature allows you to ensure accurate payment status representation and maintain consistent order management.

**Real-time Order Updates**
Hyperswitch facilitates seamless order updates through webhooks, allowing you to automate various order management processes. By setting up webhooks within your Hyperswitch Plugin Settings and configuring the necessary endpoints in your Hyperswitch Dashboard, you can receive real-time notifications about order status changes, payment confirmations, and more.

**PCI compliant**
The Hyperswitch plugin comes with PCI compliance. So your customer’s cards are secured in a private card vault and not stored/tokenized with any payment processor. If and when you decide to move out of WooCommerce, you carry your cards on file and recurring payment tokens with you.

**Smart Routing Engine**
Hyperswitch’s powerful routing engine gives the flexibility to route the transactions between processors to increase their conversion rate, decrease cost or any other business logic. 

**Unified Dashboard**
From a single unified dashboard, merchants can view their transaction analytics, complete refunds, manage subscriptions, understand the customer journey on their store and much more.

**Automatic Retries**
When a transaction fails via one processor, Hyperswitch automatically tries to salvage it by routing it through another processor, whenever possible. This happens intelligently without your customer even knowing it happened in the background.

**Local Payment Methods**
Enabling local payment methods, alternative payment methods for your ever-growing customer base cannot be easier. You just need to tick a checkbox on the hyperswitch control center and the payment method shows up for your customers in the relevant geographies, without any additional effort at your end. Historically, diverse local payment methods have been known to boost conversion rates for the merchants.

**Native Payment Experience**
We strive to enhance the payment experience for our customers. Be it avoiding redirections and promoting native payment experience, to supporting embedded payments, Hyperswitch continuously tries to improve the payment experience for the customers and ensures uplift in the conversion rates for the merchants.

**SDK integrations**
Most of the Woocommerce payment plugins will support a merchant only on Woocommerce. Hyperswitch has native SDKs, hosted checkout and api-integrations for merchants who want to build their own apps, for both web and mobile. 

**Fraud and Risk Management**
Hyperswitch is integrated with leading third party fraud and risk management platforms like Signifyd, Riskified, etc. If you are burdened with increasing frauds and chargebacks, Hyperswitch can help you reduce frauds and chargebacks.

<br>

<a href="#Setup-Instructions">
  <h2 id="Setup Instructions">🛠️ Setup Instructions</h2>
</a>

### Clone the repository

Clone the repository from GitHub and save in your folder.

```bash
git clone https://github.com/juspay/hyperswitch-woocommerce-plugin.git
cd hyperswitch-woocommerce-plugin
```

### Sign up

Sign up for Hyperswitch [here](https://app.hyperswitch.io/)
<br>

### Plugin Development and Installation

Make the necessary changes in the plugin code, and run the command 
```bash
bash plugin.sh
```
This will generate the compressed plugin file.
Upload and install the compressed plugin file in your WP-Admin Plugins section.
Activate the plugin through the "Plugins" menu in WordPress.
<br>

### Configure

Go to WooCommerce Settings –> Payments and configure your Hyperswitch settings.
Read more about the configuration process in the [plugin documentation](https://hyperswitch.io/docs/sdkIntegrations/wooCommercePlugin/wooCommercePluginOverview).

Now test the integration by making a payment from your WordPress store!
<br>

<a href="#FAQs">
  <h2 id="FAQs">🤔 FAQs</h2>
</a>

Got more questions?
Please refer to our [FAQs page][faqs].

[faqs]: https://hyperswitch.io/docs/sdkIntegrations/wooCommercePlugin/wooCommercePluginFAQ

<a href="#Roadmap">
  <h2 id="Roadmap">🛣️ Roadmap</h2>
</a>
Our roadmap is open and community driven.

- Support for one-click payment methods
- Support for recurring payments
- Custom fees based on the selected payment method
- Checkout button across all product pages
- Currency switcher - to detect geolocation IP of a customer and display all prices in home currency
- Product recommendations
- Product summary page
- Address verification system
- Multi-locale support

<a href="#Join-us-in-building-Hyperswitch">
  <h2 id="Join-us-in-building-Hyperswitch">💪 Join us in building Hyperswitch</h2>
</a>




### 🤝 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](https://juspay.in),
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 Web 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 Rescript.
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.

<a href="#Community">
  <h2 id="Community">👥 Community</h2>
</a>

Get updates on Hyperswitch development and chat with the community:

- Read and subscribe to [the official Hyperswitch blog][blog].
- Join our [Discord server][discord].
- Join our [Slack workspace][slack].

[blog]: https://hyperswitch.io/blog
[discord]: https://discord.gg/wJZ7DVW8mm
[slack]: https://join.slack.com/t/hyperswitch-io/shared_invite/zt-1k6cz4lee-SAJzhz6bjmpp4jZCDOtOIg
[github-discussions]: https://github.com/juspay/hyperswitch-woocommerce-plugin/discussions

<div style="display: flex;  justify-content: center;">
    <div style="margin-right:10px">
    <a href="https://www.producthunt.com/posts/hyperswitch-2?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-hyperswitch&#0045;2" target="_blank">
        <img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=375220&theme=light&period=weekly" alt="Hyperswitch - Fast, reliable, and affordable open source payments switch | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" />
    </a>
    </div>
    <div style="margin-right:10px">
    <a href="https://www.producthunt.com/posts/hyperswitch-2?utm_source=badge-top-post-topic-badge&utm_medium=badge&utm_souce=badge-hyperswitch&#0045;2" target="_blank">
        <img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-topic-badge.svg?post_id=375220&theme=light&period=weekly&topic_id=267" alt="Hyperswitch - Fast, reliable, and affordable open source payments switch | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" />
    </a>
  </div>
  <div style="margin-right:10px">
    <a href="https://www.producthunt.com/posts/hyperswitch-2?utm_source=badge-top-post-topic-badge&utm_medium=badge&utm_souce=badge-hyperswitch&#0045;2" target="_blank">
        <img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-topic-badge.svg?post_id=375220&theme=light&period=weekly&topic_id=93" alt="Hyperswitch - Fast, reliable, and affordable open source payments switch | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" />
    </a>
  </div>
</div>

<a href="#Bugs and feature requests">
  <h2 id="Bugs and feature requests">🐞 Bugs and feature requests</h2>
</a>

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].

[existing and closed issues]: https://github.com/juspay/hyperswitch-woocommerce-plugin/issues
[open a new issue]: https://github.com/juspay/hyperswitch-woocommerce-plugin/issues/new/choose

<!-- <a href="#Versioning">
  <h2 id="Versioning">🔖 Versioning</h2>
</a>

Check the [CHANGELOG.md](./CHANGELOG.md) file for details. -->

<a href="#©Copyright and License">
  <h2 id="©Copyright and License">©️ Copyright and License</h2>
</a>

This product is licensed under the [Apache 2.0 License](LICENSE).

<a href="#Thanks to all contributors">
  <h2 id="Thanks to all contributors">✨ Thanks to all contributors</h2>
</a>

Thank you for your support in hyperswitch's growth. Keep up the great work! 🥂

<a href="https://github.com/juspay/hyperswitch-woocommerce-plugin/graphs/contributors">
  <img src="https://contributors-img.web.app/image?repo=juspay/hyperswitch-woocommerce-plugin" alt="Contributors"/>
</a>
