Using postman
Create your Hyperswitch account and add a payment provider using Hyperswitch APIs through postman
Create a Hyperswitch account
Hyperswitch operates on a multi-tenant architecture, enabling a single application server to support multiple merchants. To create a new merchant account, follow these steps:
Locate the Admin API Key:
Find the
config/docker_compose.toml
file in your Hyperswitch setup.Search for the
api_key
entry within this file to retrieve your admin API key.
Execute the cURL Command:
Use the following cURL command to create a merchant account:
Replace
<admin-api-key>
with your actual admin API key.
Receive the Response:
Upon executing the command, you should receive a response containing the
merchant_id
andpublishable_key
.
Create an API key
To generate an API key for your merchant account in Hyperswitch, follow these steps:
Prepare the cURL Command:
Replace
<your_merchant_id>
with themerchant_id
obtained from the previous step.Replace
<admin-api-key>
with your admin API key.
Secure the API Key:
The response will include the plaintext API key. Store this key securely, as it is essential for authenticating API requests from your merchant server.
Set up a payment processor
To integrate your preferred payment processor with Hyperswitch, follow these steps:
1. Obtain API Credentials from Your Payment Processor:
Sign up with your chosen payment processor (e.g., Stripe, Adyen) and acquire the necessary API credentials.
Set Up the Payment Processor in Hyperswitch:
Use the following cURL command to configure the payment processor
Replace
<your_merchant_id>
with your merchant ID obtained earlier.Replace
<admin-api-key>
with your admin API key.Replace
<connector_name>
with the name of your payment processor (e.g., "stripe").Replace
<connector_api_key>
with the API key provided by your payment processor.
3. Customize Connector Account Details:
The
connector_account_details
field requires specific authentication details for your chosen payment processor. For payment processors, the required fields may vary. You can find payment provider-specific details to be included in this spreadsheet.
4. Enable Payment Methods:
In the
payment_methods_enabled
section, specify the payment methods and types you wish to enable. For example, to enable credit card payments via Visa and Mastercard, include them as shown in the cURL command above.
Resources
To explore more of our APIs, please check the remaining folders in the Postman collection
Next step
Last updated
Was this helpful?