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_0 (already cloned)
- Base commit: 31e109a9a1367ef53786c146604b31fca69b15ef
- Task ID: juspay__hyperswitch-7957
- Version: v1.114.0
TASK DESCRIPTION: Bug: [BUG] Facilitapay env connector configs breaking WASM
It is
BodyKeyand notBodykey.Affected files:
crates/connector_configs/toml/production.tomlcrates/connector_configs/toml/sandbox.tomlcrates/connector_configs/toml/integration_test.tomlthis isn't affecting the current wasm as Facilitapay is not yet on dashboard.
DETAILED CONTEXT & HINTS:
Type of Change
- Bugfix
- New feature
- Enhancement
- Refactoring
- Dependency updates
- Documentation
- CI/CD
Description
This PR fixes Facilitapay payment method env that broke WASM.
Additional Changes
- This PR modifies the API contract
- This PR modifies the database schema
- This PR modifies application configuration/environment variables
Motivation and Context
WASM broke.
How did you test it?
WASM shouldn't break now. closes #7957
Checklist
- I formatted the code
cargo +nightly fmt --all - I addressed lints thrown by
cargo clippy - I reviewed the submitted code
Assistant
I'll help you fix the Facilitapay env connector configs breaking WASM issue. Let me start by examining the affected files to understand the problem with
BodyKeyvsBodykey.First, I'll create a todo list to track our work:
Assistant
Let me first check the current state of the Facilitapay configurations in the production.toml file:
Assistant
Let me search for Facilitapay configurations in the production.toml file:
Assistant
Let me try to search more broadly for facilitapay or Bodykey:
Assistant
Let me check the specific files that contain "Bodykey" to see the exact issue:
Assistant
Let me read the production.toml file to find the Facilitapay configuration:
Assistant
Let me read the production.toml file more directly to see its content and find the Facilitapay section:
Assistant
Now I need to find the Facilitapay configuration. Let me search more specifically for it in the whole file:
Assistant
Perfect! I found the issue. On line 4406, we have
Bodykeyinstead ofBodyKey. Now let me check the sandbox.toml and integration_test.toml files to see if they have the same issue:Assistant
(no content)
Assistant
Let me check if the integration_test.toml file exists:
Assistant
The integration_test.toml file doesn't exist in this repository. Let me now update my todo list to reflect what I've found and start fixing the issue:
Assistant
Now I'll fix the issue in the production.toml file first:
Assistant
I need to get permission to edit the file. Let me check the sandbox.toml file next:
Assistant
I need to read the files first before editing them. Let me read the sandbox.toml file:
Assistant
Now let me also check if there are any other instances of Bodykey in the codebase that we should be aware of:
Assistant
Let me check the development.toml file to see if it has the same issue:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.