juspay / juspay/hyperswitch

fix: refactor refund core

Open
#255 0 comments 0 reactions 0 assignees View on GitHub
A-core E-medium P-medium
Dominant language
Rust
Stars
43.7k
Forks
5.1k
Avg merge
2d 20h
Merged PRs (30d)
205

Description

## Description
The division of the refund core into modular functions isn't in place, whilst the functionalities that are being called are used in multiple places for different use cases. The refactoring of the refund core is necessary.

## Changes
- In the refactoring the core execution logic of the refund must be separated from the `schedule_refund_execution` function
- Function for executing instant refund and scheduled refund must be separated

Contributor guide

Open the contributing guide

Research direction

Start by locating schedule_refund_execution and the refund functionality it calls. Separate the core execution logic from scheduling, with distinct paths for instant and scheduled refunds, then verify both use cases retain their existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.