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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
docs(api-reference): remove redundant webhooks page (#6538)
Sanchith Hegde548d1b0c0ed9
diff --git a/api-reference-v2/essentials/webhooks.mdx b/api-reference-v2/essentials/webhooks.mdxdeleted file mode 100644index 20ce3518ea..0000000000--- a/api-reference-v2/essentials/webhooks.mdx+++ /dev/null@@ -1,45 +0,0 @@-# Webhooks--Webhooks are HTTP-based real-time push notifications that Hyperswitch would use for instant status communication to your server. Webhooks are vital in payments for the following reasons:--- Preventing merchants from losing business due to delayed status communication (say, in case of flight or movie reservations where there is a need for instant payment confirmation).-- Prevent payment reconciliation issues where payments change from “Failed” to “Succeeded”.-- Providing the best payment experience for the end-user by instantly communicating payment status and fulfilling the purchase.--## Configuring Webhooks-<Steps>-<Step title="Create an endpoint on your server">You would need to set up a dedicated HTTPS or HTTP endpoint on your server with a URL as a webhook listener that will receive push notifications in the form of a POST request with JSON payload from the Hyperswitch server</Step>-<Step title="Update your webhook endpoint on Hyperswitch Dashboard"> Update the above endpoint on your Hyperswitch dashboard under Settings -> Webhooks</Step>-<Step title= "Update Hyperswitch’s webhook endpoints on your connector Dashboard">In order for Hyperswitch to receive updates from the connectors you have selected, you would need to update Hyperswitch’s corresponding endpoints on your respective connector dashboard instead of your webhook endpoints</Step>-</Steps>--Hyperswitch’s webhook endpoint format is as follows:--| Environment | Webhook Endpoint |-| ----------- | ---------------- |-| Sandbox | sandbox.hyperswitch.io/webhooks/`{merchant_id}`/`{connector_name}` |-| Production | api.hyperswitch.io/webhooks/`{merchant_id}`/`{connector_name}`|--## Handling Webhooks--- **Select the events for Webhooks:** On the same page on the dashboard, select the events for which you would like to receive notifications. Currently, Webhooks are available on Hyperswitch for the following events:-- 1. payment_succeeded- 2. payment_failed- 3. payment_processing- 4. action_required- 5. refund_succeeded- 6. refund_failed- 7. dispute_opened- 8. dispute_expired- 9. dispute_accepted- 10. dispute_cancelled- 11. dispute_challenged- 12. dispute_won- 13. dispute_lost--<Info>Click [**here**](https://juspay-78.mintlify.app/api-reference/schemas/outgoing--webhook) to see the webhook payload your endpoint would need to parse for each of the above events</Info>--- **Return a 2xx response:** Your server must return a successful 2xx response on successful receipt of webhooks.--- **Retries:** In case of 3xx, 4xx, or 5xx response or no response from your endpoint for webhooks, Hyperswitch has a retry mechanism that tries sending the webhooks again up to 3 times before marking the event as failed.diff --git a/api-reference-v2/mint.json b/api-reference-v2/mint.jsonindex dc47cf5d4c..9964806ec9 100644--- a/api-reference-v2/mint.json+++ b/api-reference-v2/mint.json@@ -28,7 +28,6 @@{"group": "Essentials","pages": [- "essentials/webhooks","essentials/error_codes","essentials/rate_limit","essentials/go-live"diff --git a/api-reference/essentials/webhooks.mdx b/api-reference/essentials/webhooks.mdxdeleted file mode 100644index 20ce3518ea..0000000000--- a/api-reference/essentials/webhooks.mdx+++ /dev/null@@ -1,45 +0,0 @@-# Webhooks--Webhooks are HTTP-based real-time push notifications that Hyperswitch would use for instant status communication to your server. Webhooks are vital in payments for the following reasons:--- Preventing merchants from losing business due to delayed status communication (say, in case of flight or movie reservations where there is a need for instant payment confirmation).-- Prevent payment reconciliation issues where payments change from “Failed” to “Succeeded”.-- Providing the best payment experience for the end-user by instantly communicating payment status and fulfilling the purchase.--## Configuring Webhooks-<Steps>-<Step title="Create an endpoint on your server">You would need to set up a dedicated HTTPS or HTTP endpoint on your server with a URL as a webhook listener that will receive push notifications in the form of a POST request with JSON payload from the Hyperswitch server</Step>-<Step title="Update your webhook endpoint on Hyperswitch Dashboard"> Update the above endpoint on your Hyperswitch dashboard under Settings -> Webhooks</Step>-<Step title= "Update Hyperswitch’s webhook endpoints on your connector Dashboard">In order for Hyperswitch to receive updates from the connectors you have selected, you would need to update Hyperswitch’s corresponding endpoints on your respective connector dashboard instead of your webhook endpoints</Step>-</Steps>--Hyperswitch’s webhook endpoint format is as follows:--| Environment | Webhook Endpoint |-| ----------- | ---------------- |-| Sandbox | sandbox.hyperswitch.io/webhooks/`{merchant_id}`/`{connector_name}` |-| Production | api.hyperswitch.io/webhooks/`{merchant_id}`/`{connector_name}`|--## Handling Webhooks--- **Select the events for Webhooks:** On the same page on the dashboard, select the events for which you would like to receive notifications. Currently, Webhooks are available on Hyperswitch for the following events:-- 1. payment_succeeded- 2. payment_failed- 3. payment_processing- 4. action_required- 5. refund_succeeded- 6. refund_failed- 7. dispute_opened- 8. dispute_expired- 9. dispute_accepted- 10. dispute_cancelled- 11. dispute_challenged- 12. dispute_won- 13. dispute_lost--<Info>Click [**here**](https://juspay-78.mintlify.app/api-reference/schemas/outgoing--webhook) to see the webhook payload your endpoint would need to parse for each of the above events</Info>--- **Return a 2xx response:** Your server must return a successful 2xx response on successful receipt of webhooks.--- **Retries:** In case of 3xx, 4xx, or 5xx response or no response from your endpoint for webhooks, Hyperswitch has a retry mechanism that tries sending the webhooks again up to 3 times before marking the event as failed.diff --git a/api-reference/mint.json b/api-reference/mint.jsonindex 264f536683..04b16682e3 100644--- a/api-reference/mint.json+++ b/api-reference/mint.json@@ -32,7 +32,6 @@{"group": "Essentials","pages": [- "essentials/webhooks","essentials/error_codes","essentials/rate_limit","essentials/go-live"@@ -52,8 +51,7 @@"api-reference/payments/payments-link--retrieve","api-reference/payments/payments--list","api-reference/payments/payments--external-3ds-authentication",- "api-reference/payments/payments--complete-authorize",- "api-reference/payments/post-session-tokens"+ "api-reference/payments/payments--complete-authorize"]},{