Sylius / Sylius/RefundPlugin

Make refunds stoppable

Open
#99 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
PHP
Stars
73
Forks
76
PR merge metrics
No merged PRs in 30d

Description

When using the RefundPaymentGenerated event to execute any refund-process based code it is not possible to roll back a refund.

Imagine talking to some form of API after a refund was initiated which decided that refund is not good. There is no way to undo that refund payment, which means it remains in the system even though other factors have decided it should not exist in the first place.

CC @Zales0123

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the RefundPaymentGenerated event and tracing the refund execution flow. Determine how a refund could be rejected after initiation, then define the expected cancellation or rollback behavior and add coverage for it; done means refund-process code can stop an initiated refund without leaving an unintended payment in the system.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
payments
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.