| Environment | Base URL |
|---|---|
| Sandbox | https://sandbox.hyperswitch.io |
| Production | https://api.hyperswitch.io |
| Key | Example | When to Use |
|---|---|---|
| Secret key (API-key) | snd_c69*** | Used to authenticate API requests from your merchant server. Donât expose this key on a website or embed it in a mobile application. |
| 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. |
| 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â. |
| requires_confirmation | After attaching a payment method through payments/update endpoint, the payments object requires you to confirm the payment. |
| requires_customer_action | Once the payment is confirmed through payments/confirm endpoint, if additional authentication is required, the payments object transitions to this state. |
| requires_capture | If you want to do separate authorize and capture, setting capture field to âmanualâ during payments/create or confirm call will transition the payment object to this state after customer action succeeds. |
| processing | In case of automatic capture, the payments object transitions to processing state post confirm call and subsequent customer authentication if available. |
| 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. |

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:
succeeded, processingand failed.payment_response_hash_key.