Skip to main content
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.

Try a Payment

Create your first payment using Hyperswitch APIs.

Payment Flows

Discover how to process one-time and recurring payments, save payment methods, and more.

Save a payment method

Save customer payment methods securely for future transactions

Self Hosted?

Host Hyperswitch on-premise? Utilize our full API suite.

Environment

We have a testing environment referred to ,” which you can set up to test API calls without affecting production data. You can sign up on our Dashboard to get API keys to access Hyperswitch API. Use the following base URLs when making requests to the APIs:
If you do not hold a PCI certification to collect and store card data on your servers, we recommend using Unified Checkout to accept card information from users.

Authentication and API keys

Hyperswitch authenticates your API requests using your account’s API keys. Each account has two API keys for authentication:

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 Lifecycle - more payment states

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 The available parameters are as follows:
  • status - can have values of succeeded, processingand failed.
  • 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.