-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sanchith Hegde <[email protected]>
- Loading branch information
1 parent
120122f
commit d86bb94
Showing
4 changed files
with
169 additions
and
65 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
api-reference/api-reference/payments/Introduction--to--payments.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
tags: [Payments] | ||
sidebarTitle: "Getting Started with Payments" | ||
icon: "circle-play" | ||
iconType: "solid" | ||
color: "Green" | ||
--- | ||
|
||
The **Hyperswitch Payments API** enables businesses to **accept, process, and manage payments seamlessly**. It supports the entire **payment lifecycle**—from creation to capture, refunds, and disputes—allowing smooth integration of **various payment methods** into any application with minimal complexity. | ||
|
||
### How to try your first payment through hyperswitch? | ||
You have two options to use the Payments API: | ||
|
||
1. **Sandbox API Key (Dashboard)** – Quick testing without setup. | ||
2. **Self-Deploy** – Create merchants and API keys through Rest API. | ||
|
||
Each option has specific nuances, we have mentioned the differences in the below step by step guide | ||
<Tip>We recommend using our [Dashboard](https://app.hyperswitch.io/dashboard/login) to generate API Key and setting up Connectors (Step 4)</Tip> for faster trial and simple setup | ||
<Steps> | ||
<Step title="Create a Merchant Account"> | ||
This account is representative of you or your organization that would like to accept payments from different <Tooltip tip="Can be a payment method or payment service provider">payment connectors</Tooltip> | ||
<Steps> | ||
<Step title="Hyperswitch Dashboard flow" icon= "box-open"> | ||
Access the <Tooltip tip="Control Center is a frontend interface for the API to track and test payments">[Dashboard](https://app.hyperswitch.io/dashboard/login)</Tooltip> and sign up -> **Sign up here is equivalent to creating a Merchant Account** | ||
</Step> | ||
<Step title="Self-Deploy flow" icon="map-pin"> | ||
Use the admin api key and the [Merchant Account - Create](api-reference/merchant-account/merchant-account--create) endpoint to create your Merchant Account | ||
</Step> | ||
</Steps> | ||
</Step> | ||
<Step title="Create API Key"> | ||
You can now generate an API key that will be the secret key used to authenticate your payment request | ||
<Steps> | ||
<Step title="Hyperswitch Dashboard flow" icon= "box-open"> | ||
In Dashboard go to Developer-> API Keys -> +Create New Api Key. This key can be used in your API requests for authentication. | ||
</Step> | ||
<Step title="Self-Deploy flow" icon="map-pin"> | ||
Use the admin api key and the [Merchant Account - Create](api-reference/merchant-account/merchant-account--create) endpoint to create your Merchant Account | ||
</Step> | ||
</Steps> | ||
</Step> | ||
<Step title="Set up Connectors"> | ||
Connect the payment [connectors](api-reference/merchant-connector-account/merchant-connector--create) and payment methods that your organization will accept. Connectors could be a payment processor/facilitator/acquirer or a provider of specialized services like Fraud/Accounting | ||
<Steps> | ||
<Step title="Hyperswitch Dashboard flow" icon= "box-open"> | ||
In Dashboard go to Connectors -> <Tooltip tip="Adding other connectors (eg. Adyen) will require you to go through their respective documentation">+Connect a Dummy Processor</Tooltip>. Choose the payments methods to enable and complete setup. | ||
</Step> | ||
<Step title="Self-Deploy flow" icon="map-pin"> | ||
Use the admin api key and the [Connector Account](api-reference/merchant-connector-account/merchant-connector--create) endpoints to set up a connector | ||
</Step> | ||
</Steps> | ||
</Step> | ||
<Step title="Try your first payment"> | ||
You are all set! Go ahead and try the [Payments API](api-reference/payments/payments--create), be sure to try the different use cases provided | ||
</Step> | ||
<Step title="We are here to help" icon="circle-info"> | ||
Test the use cases you are interested in and in case of difficulty, feel free to contact us on our [slack channel](https://join.slack.com/t/hyperswitch-io/shared_invite/zt-2jqxmpsbm-WXUENx022HjNEy~Ark7Orw) | ||
</Step> | ||
</Steps> | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
openapi: openapi_spec post /payments | ||
--- | ||
--- | ||
<Tip> Use the dropdown on the top right corner of the code snippet to try out different payment scenarios. </Tip> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters