Skip to content

Commit 139e30f

Browse files
committed
Merge branch 'main' of github.com:juspay/hyperswitch into feat/mockserver
* 'main' of github.com:juspay/hyperswitch: (25 commits) chore: `xof` currency to cybersource cards (#8799) chore(version): 2025.08.01.0 feat(core): Implement UCS based upi for paytm and phonepe (#8732) feat(connector): [katapult]add template code for katapult (#8783) feat(router): introduce `feature` and `feature_data` to gsm (#7771) feat(connector): [cybersource] add changes for field CybersourceConsumerAuthInformation (#8768) feat(authentication): added authentication sync api (#8596) feat(connector): [facilitapay] fix refunds, add webhook and void support (#8778) feat(connector): [payload] add recurring payments (#8597) chore(version): 2025.07.31.0 feat(connector): [Flexiti]Add support for flexiti connector (#8743) chore(router): events enhancement for kafka (#8780) ci(cypress): Making a mandate payment with large customer user agents (#8790) fix(openapi): update create_platform endpoint in api-reference docs (#8782) chore(version): 2025.07.30.0 fix(connector): [GLOBALPAY] Added Tokenization Flow for CITs (#8568) feat(routing): Add api-refs for new decision engine endpoints (#8709) fix: replace xtrim with xdel to support older redis version (#8515) fix(connector): [Worldpay] handle multiple ddc submission for CompleteAuthorize (#8741) feat(connector): [Adyen] receive incoming webhooks for pix expiry (#8720) ...
2 parents 8d8d162 + bc4d29a commit 139e30f

File tree

182 files changed

+12356
-2322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+12356
-2322
lines changed

CHANGELOG.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,76 @@ All notable changes to HyperSwitch will be documented here.
44

55
- - -
66

7+
## 2025.08.01.0
8+
9+
### Features
10+
11+
- **authentication:** Added authentication sync api ([#8596](https://github.com/juspay/hyperswitch/pull/8596)) ([`794dce1`](https://github.com/juspay/hyperswitch/commit/794dce168e6b4d280c9c742a6e8a3b3283e09602))
12+
- **connector:**
13+
- [payload] add recurring payments ([#8597](https://github.com/juspay/hyperswitch/pull/8597)) ([`64e6dc8`](https://github.com/juspay/hyperswitch/commit/64e6dc860d3c18a87160d374fb4fa6500b0b4285))
14+
- [facilitapay] fix refunds, add webhook and void support ([#8778](https://github.com/juspay/hyperswitch/pull/8778)) ([`c38ce38`](https://github.com/juspay/hyperswitch/commit/c38ce386bda3aef1ce8a733c8df2a3a99b068396))
15+
- [cybersource] add changes for field CybersourceConsumerAuthInformation ([#8768](https://github.com/juspay/hyperswitch/pull/8768)) ([`6ff7575`](https://github.com/juspay/hyperswitch/commit/6ff757541d3f0bea97edcadd4856a3dfa4ebedb4))
16+
- [katapult]add template code for katapult ([#8783](https://github.com/juspay/hyperswitch/pull/8783)) ([`c6e4e72`](https://github.com/juspay/hyperswitch/commit/c6e4e7209f2bff0b72e6616f6b02c9996384413c))
17+
- **core:** Implement UCS based upi for paytm and phonepe ([#8732](https://github.com/juspay/hyperswitch/pull/8732)) ([`01e9474`](https://github.com/juspay/hyperswitch/commit/01e94748083a7f013d189356022cd241ea65c77f))
18+
- **router:** Introduce `feature` and `feature_data` to gsm ([#7771](https://github.com/juspay/hyperswitch/pull/7771)) ([`1fa20a9`](https://github.com/juspay/hyperswitch/commit/1fa20a9ae219ab9f1dc7a85f7445c1803cb39ce2))
19+
20+
**Full Changelog:** [`2025.07.31.0...2025.08.01.0`](https://github.com/juspay/hyperswitch/compare/2025.07.31.0...2025.08.01.0)
21+
22+
- - -
23+
24+
## 2025.07.31.0
25+
26+
### Features
27+
28+
- **connector:** [Flexiti]Add support for flexiti connector ([#8743](https://github.com/juspay/hyperswitch/pull/8743)) ([`2bd8c9d`](https://github.com/juspay/hyperswitch/commit/2bd8c9d12d24039494ef76e04a7ce8f47ef2eba8))
29+
30+
### Bug Fixes
31+
32+
- **openapi:** Update create_platform endpoint in api-reference docs ([#8782](https://github.com/juspay/hyperswitch/pull/8782)) ([`8dc4061`](https://github.com/juspay/hyperswitch/commit/8dc4061f9edb1ac2527216b2279a765d0b797523))
33+
34+
### Miscellaneous Tasks
35+
36+
- **router:** Events enhancement for kafka ([#8780](https://github.com/juspay/hyperswitch/pull/8780)) ([`e48e55a`](https://github.com/juspay/hyperswitch/commit/e48e55a04821ab7648ad3434a8483c75e28ba070))
37+
38+
**Full Changelog:** [`2025.07.30.0...2025.07.31.0`](https://github.com/juspay/hyperswitch/compare/2025.07.30.0...2025.07.31.0)
39+
40+
- - -
41+
42+
## 2025.07.30.0
43+
44+
### Features
45+
46+
- **connector:**
47+
- [BLUECODE] Added Template Code ([#8756](https://github.com/juspay/hyperswitch/pull/8756)) ([`9f6182b`](https://github.com/juspay/hyperswitch/commit/9f6182b7fbb334447f2dda77f70d780ebbcde0ea))
48+
- [FISERV] Added GooglePay Payment Method - Connector Decryption Flow ([#8658](https://github.com/juspay/hyperswitch/pull/8658)) ([`b5586b6`](https://github.com/juspay/hyperswitch/commit/b5586b68d8e7380ee57ebcaf93a68ecd59c686fc))
49+
- [Adyen] receive incoming webhooks for pix expiry ([#8720](https://github.com/juspay/hyperswitch/pull/8720)) ([`4587564`](https://github.com/juspay/hyperswitch/commit/4587564824dff214744425d8e6dbfac8850e8416))
50+
- **routing:** Add api-refs for new decision engine endpoints ([#8709](https://github.com/juspay/hyperswitch/pull/8709)) ([`4dea30f`](https://github.com/juspay/hyperswitch/commit/4dea30ffa0d9bf636af3757c998e12a23f4769bd))
51+
52+
### Bug Fixes
53+
54+
- **connector:**
55+
- [Worldpay] handle multiple ddc submission for CompleteAuthorize ([#8741](https://github.com/juspay/hyperswitch/pull/8741)) ([`f6cdddc`](https://github.com/juspay/hyperswitch/commit/f6cdddcb98e08f97dc518c8c14569fe67426bd6f))
56+
- [GLOBALPAY] Added Tokenization Flow for CITs ([#8568](https://github.com/juspay/hyperswitch/pull/8568)) ([`f7bc33c`](https://github.com/juspay/hyperswitch/commit/f7bc33cd0f5537e7be05af4064df8715ed47011b))
57+
- Replace xtrim with xdel to support older redis version ([#8515](https://github.com/juspay/hyperswitch/pull/8515)) ([`3d085ab`](https://github.com/juspay/hyperswitch/commit/3d085abf3853c1658e208a733bf69715f44ba0bb))
58+
59+
**Full Changelog:** [`2025.07.29.0...2025.07.30.0`](https://github.com/juspay/hyperswitch/compare/2025.07.29.0...2025.07.30.0)
60+
61+
- - -
62+
63+
## 2025.07.29.0
64+
65+
### Documentation
66+
67+
- Add initial authentication page ([#8719](https://github.com/juspay/hyperswitch/pull/8719)) ([`5ca0fb5`](https://github.com/juspay/hyperswitch/commit/5ca0fb5f654c9b32186dab8a2a2d475f2eb7df6a))
68+
69+
### Miscellaneous Tasks
70+
71+
- Updated open api spec documentation for create platform account ([#8692](https://github.com/juspay/hyperswitch/pull/8692)) ([`3bf4c49`](https://github.com/juspay/hyperswitch/commit/3bf4c490563d836685157351b66fc662bca0debd))
72+
73+
**Full Changelog:** [`2025.07.28.1...2025.07.29.0`](https://github.com/juspay/hyperswitch/compare/2025.07.28.1...2025.07.29.0)
74+
75+
- - -
76+
777
## 2025.07.28.1
878

979
### Features

Cargo.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-reference/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ npx @mintlify/scraping@latest openapi-file v1/openapi_spec_v1.json -o v1
4444

4545
This will generate files in [api-reference](api-reference) folder. These routes should be added to the [mint.json](mint.json) file under navigation, under respective group.
4646

47-
48-
NOTE: For working with V2 API reference, replace every occurrence of `v1` with `v2` in above commands
47+
NOTE: For working with V2 API reference, replace every occurrence of `v1` with `v2` in above commands

api-reference/docs.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
{
2424
"group": "Essentials",
2525
"pages": [
26+
"essentials/authentication",
2627
"essentials/error_codes",
2728
"essentials/rate_limit",
2829
"essentials/go-live"
@@ -146,6 +147,12 @@
146147
"v1/business-profile/business-profile--list"
147148
]
148149
},
150+
{
151+
"group": "Platform Account",
152+
"pages": [
153+
"v1/platform/platform--create"
154+
]
155+
},
149156
{
150157
"group": "API Key",
151158
"pages": [
@@ -213,7 +220,10 @@
213220
"v1/routing/routing--retrieve-default-for-profile",
214221
"v1/routing/routing--update-default-for-profile",
215222
"v1/routing/routing--retrieve",
216-
"v1/routing/routing--activate-config"
223+
"v1/routing/routing--activate-config",
224+
"v1/routing/routing--evaluate",
225+
"v1/routing/routing--feedback",
226+
"v1/routing/routing--rule-evaluate"
217227
]
218228
},
219229
{
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
title: Authentication Types
3+
description: Overview of authentication types and authorization keys available in Hyperswitch.
4+
---
5+
6+
import Note from '@site/src/components/Note'
7+
import Table from '@site/src/components/Table'
8+
import Check from '@site/src/components/Check'
9+
10+
Hyperswitch supports multiple API key types, each designed for different authentication and authorization use cases.
11+
12+
<Note>
13+
For security, **never expose secret or admin keys in client-side or mobile code**. Use publishable keys for public contexts.
14+
</Note>
15+
16+
## 1. API Key (Secret Key)
17+
18+
- **Primary merchant authentication key for server-side API requests.**
19+
- Environment-specific prefix (`snd_`, `prod_`, etc.).
20+
- Used for server to server requests.
21+
- This key can be **generated and managed from the [Hyperswitch dashboard (sandbox)](https://app.hyperswitch.io/developers?tabIndex=1)**.
22+
23+
- **Never expose this key in public code.**
24+
25+
## 2. Admin API Key
26+
27+
- **Administrative key** with elevated privileges.
28+
- Used for system-level operations such as creating merchant and connector accounts.
29+
- Should only be used in secure, internal workflows.
30+
- Some API calls require an admin API key. **Do not confuse this with a regular API Key.**
31+
- The **admin API key is a configuration value that can be set at the time of deploying the Hyperswitch server**.
32+
- **Admin API keys for the hosted Hyperswitch environments (sandbox/production) are managed by Juspay and are not provided publicly.**
33+
34+
<Check>
35+
You do **not** generate this key from the dashboard.
36+
Instead, **set your Admin API Key in your deployment configuration**:
37+
38+
**For Docker Compose:**
39+
Update the value in your `docker_compose.toml` file:
40+
</Check>
41+
42+
```toml
43+
# docker_compose.toml
44+
admin_api_key = "your_admin_key_here"
45+
```
46+
<Check> **For Helm Chart deployments:** Set the admin API key in your `values.yaml` file. </Check>
47+
48+
```yaml
49+
# values.yaml
50+
adminApiKey: your_admin_key_here
51+
```
52+
<Note> Do **not** expose your admin API key publicly. Only trusted entities and trusted applications should have access to this value. </Note>
53+
54+
Check the Docker Compose example for extra clarity:
55+
[See example in the Hyperswitch repository](https://github.com/juspay/hyperswitch/blob/main/config/docker_compose.toml)
56+
57+
58+
## 3. Publishable Key
59+
60+
- **Client-side key** with limited permissions.
61+
- Safe for use in public client-side (web or mobile) code.
62+
- Prefix: `pk_{environment}_{uuid}`.
63+
- Generated during merchant account creation.
64+
65+
## 4. Ephemeral Key
66+
67+
- **Temporary key** for limited operations.
68+
- Used for single or short-lived access (e.g., accessing a specific customer object).
69+
- Validity is configurable (see `[eph_key] validity` in `development.toml`).
70+
71+
## 5. JWT Key
72+
73+
- **JWT Bearer Token** used for API authentication and session management.
74+
- Required for certain JWT-protected endpoints and user authentication flows.
75+
- Format: `Authorization: Bearer <jwt_token>`
76+
77+
### When to Use
78+
79+
JWT tokens are primarily used by the Hyperswitch Control Center front end to authenticate API requests. You generally do **not** need to manage or use JWTs unless:
80+
81+
- You’re building a **custom front end** that replaces the Control Center, or
82+
- You’re a developer **testing APIs directly** (e.g., using Postman or running the server without the UI).
83+
84+
For most users interacting through the Control Center UI, JWTs are handled automatically and do not need to be generated or included manually.
85+
86+
> **Note:**
87+
> JWTs are **not provisioned via the Hyperswitch dashboard**.
88+
> They are typically **issued during an authentication flow**, such as during login or session creation.
89+
90+
```http
91+
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
92+
```
93+
<Note> Keep your JWT tokens secure. Do not expose them in client-side code unless specifically required for session management, and always use HTTPS when transmitting JWTs. </Note>
94+
95+
## Reference Table
96+
97+
<Table>
98+
| Key Type | Example Prefix | Usage | Security |
99+
|------------------|----------------------|------------------------------|-------------------------|
100+
| Secret (API Key) | snd_c69***, prod_*** | Backend server API requests | Keep secret |
101+
| Admin API Key | (admin-specific) | Admin operations | Highly confidential |
102+
| Publishable Key | pk_snd_3b3*** | Client-side, public usage | Safe to expose |
103+
| Ephemeral Key | (short-lived) | Temporary, limited access | Short validity, limited |
104+
| JWT Key | (JWT Bearer) | Session/user authentication | Control center calls |
105+
</Table>
106+
107+
<Check>
108+
Get your [API Key](https://app.hyperswitch.io/developers?tabIndex=1) and [Publishable Key](https://app.hyperswitch.io/home) from the Hyperswitch dashboard.
109+
</Check>
110+
---

0 commit comments

Comments
 (0)