{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"f69a7b54-98b7-4dfc-af1d-99946638e300","name":"DigetPay Integrations","description":"# DigetPay Payment Gateway APIs\n\nThis Postman collection provides a comprehensive set of APIs for integrating with the **DigetPay Payment Gateway**, enabling merchants and businesses to securely accept, process, and manage online payments.\n\nDigetPay supports multiple integration methods, including **Hosted Checkout** and **Server-to-Server (S2S)**, allowing merchants to choose the integration approach that best fits their business and technical requirements.\n\nDigetPay uses a **Unified API Environment**, where both Test and Live transactions are processed through the same Base URL. The API key used in each request determines whether the transaction is processed in Test or Live mode.\n\n---\n\n## What This Collection Covers\n\nThis collection includes APIs for:\n\n- Hosted Checkout payment initiation\n    \n- Server-to-Server (S2S) payment processing\n    \n- Payment status and transaction inquiries\n    \n- Transaction operations such as **Authorization, Capture, Refund, and Void**, where supported\n    \n- Recurring payments and subscription management\n    \n- Webhook notifications and payment status updates\n    \n\n---\n\n## Integration Types\n\n### 1\\. Hosted Checkout\n\nA redirect-based integration where customers are redirected to the **DigetPay Hosted Checkout** page to securely complete their payments.\n\nDigetPay handles the payment interface and payment processing, providing a simple and secure integration experience for merchants.\n\n### 2\\. Server-to-Server (S2S)\n\nA direct API integration where the merchant's backend communicates with DigetPay APIs to initiate and manage payment transactions.\n\nThis integration provides merchants with greater control over their payment experience and transaction processing.\n\n---\n\n## Authentication\n\nAll authenticated API requests must include a valid API key in the request header:\n\n```\nx-api-key: <Your API Key>\n\n ```\n\nDigetPay provides two API keys through the Merchant Dashboard:\n\n**Test API Key**\n\n- Used for integration development and testing.\n    \n- Supports payment testing using DigetPay Test Cards.\n    \n- Does not initiate real financial transactions.\n    \n- Uses the same API Base URL as Live transactions.\n    \n\n**Live API Key**\n\n- Used for processing real payment transactions.\n    \n- Requires an activated merchant account with the necessary payment services enabled.\n    \n- Processes actual transactions using supported payment methods.\n    \n- Uses the same API Base URL as Test transactions.\n    \n\n**Important:** Always use the API key corresponding to your intended transaction mode.\n\n---\n\n## API Environment\n\n### Unified API Base URL\n\nDigetPay provides a single API Base URL for both Test and Live transactions:\n\n```\nhttps://api.digetpay.com/v1\n\n ```\n\nThere is no need to switch between separate Sandbox and Production URLs.\n\nThe transaction mode is determined automatically based on the API key included in the request.\n\n| Mode | API Key | Base URL |\n| --- | --- | --- |\n| Test | Test API Key | `https://api.digetpay.com/v1` |\n| Live | Live API Key | `https://api.digetpay.com/v1` |\n\n### Testing Mode\n\nTo execute Test transactions:\n\n1. Log in to your DigetPay Merchant Dashboard.\n    \n2. Navigate to the API Credentials section.\n    \n3. Copy your **Test API Key**.\n    \n4. Include the Test API Key in your request header.\n    \n5. Use the supported Test Cards to simulate payment scenarios.\n    \n\nAll requests must be sent to the Unified API Base URL.\n\n### Live Mode\n\nAfter successfully completing your integration testing:\n\n1. Ensure your merchant account is activated for Live transactions.\n    \n2. Retrieve your **Live API Key** from the Merchant Dashboard.\n    \n3. Replace the Test API Key with your Live API Key.\n    \n4. Continue using the same API Base URL.\n    \n5. Execute real payment transactions using supported payment methods.\n    \n\n**No endpoint changes are required when switching from Test to Live mode. Only the API key needs to be changed.**\n\n---\n\n## Important Notes\n\n- **Unified Base URL:** Both Test and Live transactions use `https://api.digetpay.com/v1`.\n    \n- **API Key Selection:** The API key determines whether requests are processed in Test or Live mode.\n    \n- **Test Before Going Live:** Complete integration testing using your Test API Key and supported Test Cards before processing real payments.\n    \n- **Unique Order ID:** Use a unique `orderId` for each payment transaction.\n    \n- **Webhook Configuration:** Configure your Webhook URL through the Merchant Dashboard to receive transaction status notifications.\n    \n- **Webhook Modes:** Ensure webhook notifications are configured for the appropriate Test and/or Live mode.\n    \n- **Transaction Verification:** Use the relevant Transaction Status API to verify the final payment status.\n    \n- **Security:** Keep your API keys secure and never expose them in client-side applications or public repositories.\n    \n- **Payment Status Handling:** Ensure your integration correctly handles successful, failed, cancelled, and pending transactions.\n    \n- **Feature Availability:** Some payment operations and features may require additional activation or configuration for your merchant account.\n    \n\n---\n\n## Recommended Testing Flow\n\nBefore processing Live transactions, we recommend completing the following integration tests:\n\n1. **Initiate a Payment:** Create a payment using Hosted Checkout or S2S with your Test API Key.\n    \n2. **Complete a Successful Payment:** Use a supported Test Card to simulate a successful transaction.\n    \n3. **Verify Transaction Status:** Retrieve and confirm the final transaction status using the appropriate API.\n    \n4. **Validate Webhook Notifications:** Confirm that your backend receives and correctly processes payment notifications.\n    \n5. **Test Failed Transactions:** Verify how your integration handles declined and unsuccessful payments.\n    \n6. **Test Payment Operations:** Validate supported operations such as Refund, Authorization, Capture, and Void, where applicable.\n    \n7. **Test Recurring Payments:** Validate recurring payment creation, execution, and management if enabled for your merchant account.\n    \n8. **Switch to Live Mode:** Replace your Test API Key with your Live API Key while keeping the same Base URL.\n    \n9. **Validate Live Transactions:** Execute a controlled Live payment and verify its status and webhook notification.\n    \n\n---\n\n## Switching Between Test and Live\n\nDigetPay simplifies environment management by allowing merchants to use the same API endpoints throughout their integration lifecycle.\n\n**During Development and Testing:**\n\n```\nBase URL: https://api.digetpay.com/v1\nAPI Key: YOUR_TEST_API_KEY\nMode: Test\n\n ```\n\n**For Live Payment Processing:**\n\n```\nBase URL: https://api.digetpay.com/v1\nAPI Key: YOUR_LIVE_API_KEY\nMode: Live\n\n ```\n\n**The Base URL remains unchanged. Only the API key determines the transaction mode.**\n\nThis approach allows merchants to move from testing to Live payment processing without modifying their API endpoints or integration structure.\n\nEndFragment","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"43817994","team":7185305,"collectionId":"f69a7b54-98b7-4dfc-af1d-99946638e300","publishedId":"2sBYApxsKu","public":true,"publicUrl":"https://documenter-api.postman.tech/view/43817994/2sBYApxsKu","privateUrl":"https://go.postman.co/documentation/43817994-f69a7b54-98b7-4dfc-af1d-99946638e300","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":"https://content.pstmn.io/2692984d-9efd-4e90-9307-58b713ddbda2/TG9nby1EaWdldHBheS5wbmc=","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":"https://content.pstmn.io/2692984d-9efd-4e90-9307-58b713ddbda2/TG9nby1EaWdldHBheS5wbmc=","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.12.14","publishDate":"2026-08-13T12:34:24.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":"https://content.pstmn.io/2692984d-9efd-4e90-9307-58b713ddbda2/TG9nby1EaWdldHBheS5wbmc=","logoDark":"https://content.pstmn.io/2692984d-9efd-4e90-9307-58b713ddbda2/TG9nby1EaWdldHBheS5wbmc="}},"statusCode":200},"environments":[{"name":"New Environment","id":"2c02e182-e188-4d11-9a95-60c9a5489d98","owner":"43817994","values":[{"key":"session_hash","value":"","enabled":true,"type":"default"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/003f4dd4edb40cb8dc0974035545586e8078b2ec5be0ffd694dca99ff6214237","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"New Environment","value":"43817994-2c02e182-e188-4d11-9a95-60c9a5489d98"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sBYApxsKu"}