You are working on the hyperswitch repository (Rust payment processing system).…
- User
You are working on the hyperswitch repository (Rust payment processing system).
REPOSITORY SETUP:
- Repository: juspay/hyperswitch
- Working directory: ./repos/hyperswitch_pool_2 (already cloned)
- Base commit: 40fd473989b04f70c1dc78025a555a972ffe2596
- Task ID: juspay__hyperswitch-7995
- Version: v1.114.0
TASK DESCRIPTION: Bug: [FEATURE]: Add coingate, paystack connector specifications
Feature Description
Add coingate, paystack connector specifications
Possible Implementation
Add coingate, paystack connector specifications
Have you spent some time checking if this feature request has been raised before?
- I checked and didn't find a similar issue
Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
Are you willing to submit a PR?
Yes, I am willing to submit a PR!
DETAILED CONTEXT & HINTS:
Type of Change
- Bugfix
- New feature
- Enhancement
- Refactoring
- Dependency updates
- Documentation
- CI/CD
Closes this issue
Description
Added coingate, paystack connector specifications
Additional Changes
- This PR modifies the API contract
- This PR modifies the database schema
- This PR modifies application configuration/environment variables
Motivation and Context
How did you test it?
Postman Test
Request:
curl --location 'http://localhost:8080/feature_matrix' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ***'Response:
{ "connector_count": 2, "connectors": [ { "name": "COINGATE", "display_name": "Coingate", "description": "CoinGate's online payment solution makes it easy for businesses to accept Bitcoin, Ethereum, stablecoins and other cryptocurrencies for payments on any website.", "category": "alternative_payment_method", "supported_payment_methods": [ { "payment_method": "crypto", "payment_method_type": "crypto_currency", "payment_method_type_display_name": "Crypto", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "sequential_automatic" ], "supported_countries": [ "POL", "CRI", "ARG", "FRA", "DEU", "HKG", "SVN", "ESP", "SRB", "ISR", "MLT", "JPN", "CHL", "UKR", "ALB", "LUX", "ITA", "HUN", "IRL", "KOR", "CHE", "CZE", "FIN", "AUS", "COL", "SVK", "HRV", "LCA", "EGY", "GRC", "MDA", "CYP", "PER", "GRD", "LVA", "PRT", "ROU", "DNK", "QAT", "AND", "NLD", "LTU", "SGP", "SAU", "AUT", "BRA", "NZL", "ISL", "NOR", "BGR", "MEX", "BEL", "BIH", "DOM", "GBR", "SWE", "EST", "IND", "SLV" ], "supported_currencies": [ "GBP", "EUR", "USD" ] } ], "supported_webhook_flows": [ "payments" ] }, { "name": "PAYSTACK", "display_name": "Paystack", "description": "Paystack is a Nigerian financial technology company that provides online and offline payment solutions to businesses across Africa.", "category": "payment_gateway", "supported_payment_methods": [ { "payment_method": "bank_redirect", "payment_method_type": "eft", "payment_method_type_display_name": "EFT", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "sequential_automatic" ], "supported_countries": [ "ZAF", "CIV", "NGA", "KEN", "GHA" ], "supported_currencies": [ "GHS", "USD", "KES", "NGN", "ZAR" ] } ], "supported_webhook_flows": [ "payments", "refunds" ] } ] }Checklist
- I formatted the code
cargo +nightly fmt --all - I addressed lints thrown by
cargo clippy - I reviewed the submitted code
- I added unit tests for my changes where possible
CRITICAL INSTRUCTIONS - WORK FAST AND EFFICIENTLY:
-
Create DENSE, ACTION-FOCUSED todos IMMEDIATELY
- Make todos specific and actionable
- Focus on HIGH-IMPACT actions only
- 5-8 todos maximum - be surgical, not exhaustive
-
Execute aggressively:
- Use bash commands to search efficiently
- Read multiple related files in quick succession
- Make ALL related changes in one edit
- Skip unnecessary exploration
-
File operations:
- All repo files: './repos/hyperswitch_pool_2/'
- Use targeted edits over whole file rewrites
-
NO TESTING UNLESS CRITICAL:
- Focus on making the actual code changes
- Only test if explicitly required
-
Maximize information density:
- Each turn should accomplish significant work
- Batch file reads when examining related code
- Use search commands to locate code quickly
EFFICIENCY IS CRITICAL. Make substantial progress every turn.
Assistant
I'll help you implement the Coingate and Paystack connector specifications in the Hyperswitch repository. Let me first explore the codebase to understand where connector configurations are defined and how to properly add these new connectors.
Assistant
Let me first explore the codebase to understand where connector specifications are defined and how they're organized.
Assistant
(no content)
Assistant
Now I need to examine the specific files where I'll be adding the Coingate and Paystack connector specifications. Let me first look at the existing connector enum to understand how to add new connectors.
Assistant
I can see that
CoingateandPaystackare already defined in theConnectorenum (lines 226 and 274) andRoutableConnectorsenum (lines 78 and 121). Now I need to look at the connector configuration files to understand how to properly add the specifications. Let me examine the connector configs structure:Assistant
I can see that
coingate(line 183) andpaystack(line 232) are already defined in theConnectorConfigstruct. Now let me examine the TOML configuration files to understand how to properly add the connector specifications:Assistant
Let me check if there are existing configurations for other crypto or alternative payment method connectors to understand the pattern better:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →
claude-sonnet-4-5-20250929Compare side by side →