Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

Documentation edits made through Mintlify web editor

manoj07c93f183b13
diff --git a/api-reference/introduction.mdx b/api-reference/introduction.mdx
index 2549b6c43a..0587a51880 100644
--- a/api-reference/introduction.mdx
+++ b/api-reference/introduction.mdx
@@ -1,25 +1,25 @@
---
-tags: [Getting Started]
+tags: "Getting Started"
title: "👋 Welcome to Hyperswitch API Reference"
sidebarTitle: "Introduction"
-stoplight-id: 3lmsk7ocvq21v
+stoplight-id: "3lmsk7ocvq21v"
icon: "rectangle-code"
iconType: "solid"
---
Hyperswitch provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body and return standard HTTP response codes. You can consume the APIs directly using your favorite HTTP/REST library.
-<CardGroup horizontal cols={2} row={3}>
- <Card horizontal title="Try a Payment" href="api-reference/payments/Introduction--to--payments" icon="money-bill">
- Explore the versatile payments endpoint, through multiple test scenarios
+<CardGroup cols={2}>
+ <Card title="Try a Payment" icon="money-bill" horizontal={false} href="https://api-reference.hyperswitch.io/v1/payments/payments--create">
+ Create your first payments using Hyperswitch APIs
</Card>
- <Card horizontal title="Refund" href="api-reference/refunds/refunds--create" icon="receipt">
- Process refunds for completed payments using our API
+ <Card title="Payment Flows" icon="receipt" horizontal={false} href="https://api-reference.hyperswitch.io/v1/payments/payment--flows">
+ Find out all the payment flows supported by Hyperswitch APIs: Auth and capture, 3DS, Recurring payments and many others.
</Card>
- <Card horizontal title="Save a payment method" href="api-reference/payment-methods/paymentmethods--create" icon="vault">
+ <Card title="Save a payment method" icon="vault" iconType="regular" horizontal={false} href="https://api-reference.hyperswitch.io/v1/payment-methods/paymentmethods--create">
Save customer payment methods securely for future transactions
</Card>
- <Card horizontal title="Self Hosted?" href="api-reference/organization/organization--create" icon="circle-down">
+ <Card title="Self Hosted?" icon="circle-down" horizontal={false} href="https://api-reference.hyperswitch.io/v1/organization/organization--create">
Host Hyperswitch on-premise? Utilize our full API suite.
</Card>
</CardGroup>
@@ -35,7 +35,9 @@ Use the following base URLs when making requests to the APIs:
| Sandbox | https://sandbox.hyperswitch.io |
| Production | https://api.hyperswitch.io |
-<Note> If you **do not hold a PCI certification** to collect and store card data on your servers, we recommend using [**Unified Checkout**](https://hyperswitch.io/docs/sdkIntegrations/unifiedCheckoutWeb/#unified-checkout) to accept card information from users. </Note>
+<Note>
+ If you **do not hold a PCI certification** to collect and store card data on your servers, we recommend using [**Unified Checkout**](https://hyperswitch.io/docs/sdkIntegrations/unifiedCheckoutWeb/#unified-checkout) to accept card information from users.
+</Note>
## Authentication and API keys
@@ -47,14 +49,17 @@ Hyperswitch authenticates your API requests using your account’s API keys. Eac
| Publishable key | `pk_snd_3b3***` | Used to authenticate API requests from your app’s client. Can be publicly-accessible in your web or mobile app’s client-side code. |
<Check>
-Get your [API key](https://app.hyperswitch.io/developers?tabIndex=1) and [Publishable Key](https://app.hyperswitch.io/home)
+ Get your [API key](https://app.hyperswitch.io/developers?tabIndex=1) and [Publishable Key](https://app.hyperswitch.io/home)
</Check>
+
<Check>
-[Postman Collection](https://www.postman.com/hyperswitch/workspace/hyperswitch-development/collection/25176162-630b5353-7002-44d1-8ba1-ead6c230f2e3)
+ [Postman Collection](https://www.postman.com/hyperswitch/workspace/hyperswitch-development/collection/25176162-630b5353-7002-44d1-8ba1-ead6c230f2e3)
</Check>
## Payment Status Lifecycle
+
Hyperswitch handles the complex functionality of a comprehensive payments flow through the Payments object that transitions through multiple states during its payments lifecycle. Given below are the various statuses a payment can have:
+
| Payment Status | Description |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| requires_payment_method | Once you create a payment through payments/create endpoint with no payment method attached to it, the payments object transitions to ‘requires_payment_method’. |
@@ -65,12 +70,14 @@ Hyperswitch handles the complex functionality of a comprehensive payments flow t
| succeeded | The payments object reaches success state post confirmation of successful processing from the payment processor. |
| failed | The payments object transitions to a failed state when the payment processor confirms the processing failure. |
| expired | You can expire the payments object while it is in any state except when it is under ‘processing’ or ‘succeeded’ state. |
- <img src="assets/images/image.png" />
+
+![](assets/images/image.png)
## Redirect URL
+
This is what a url looks like after redirection
- ```https://app.hyperswitch.io?status=succeeded&payment_intent_client_secret=pay_NCv9vc19f8aa75OpFxH8_secret_V4zAc7V0C8WAw6FECMKM&amount=10000&manual_retry_allowed=false&signature=4fae0cfa775e4551db9356563d4b98b55662fe3c1c945fe215d90ccf3541282c535909ae901d82174d6b1e46ba1684aa0aa4c8861be0e2a9ef6f950a975d5014&signature_algorithm=HMAC-SHA512```
+`https://app.hyperswitch.io?status=succeeded&payment_intent_client_secret=pay_NCv9vc19f8aa75OpFxH8_secret_V4zAc7V0C8WAw6FECMKM&amount=10000&manual_retry_allowed=false&signature=4fae0cfa775e4551db9356563d4b98b55662fe3c1c945fe215d90ccf3541282c535909ae901d82174d6b1e46ba1684aa0aa4c8861be0e2a9ef6f950a975d5014&signature_algorithm=HMAC-SHA512`
The available parameters are as follows:
@@ -78,4 +85,4 @@ The available parameters are as follows:
- **payment_intent_client_secret** - This is the client secret associated with the payment. This can be used to retrieve the payment status from hyperswitch.
- **manual_retry_allowed** - whether this payment can be retried or not.
- **signature** - A HMAC signature of the payload, this can be verified using the `payment_response_hash_key`.
-- **signature_algorithm** - The HMAC algorithm used to calculate the signature.
+- **signature_algorithm** - The HMAC algorithm used to calculate the signature.
\ No newline at end of file