Skip to content

SOL-478 Refund support.#2

Open
limeeugenia wants to merge 3 commits intomainfrom
feature/refund
Open

SOL-478 Refund support.#2
limeeugenia wants to merge 3 commits intomainfrom
feature/refund

Conversation

@limeeugenia
Copy link
Copy Markdown
Collaborator

@limeeugenia limeeugenia commented Mar 17, 2026

Added OMS handling for refunds.

Copy link
Copy Markdown

@feversocial feversocial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also update instructions and readme accordingly, explaining in couple of sentences how current logic of refund looks like.

{
public const string PAYMENT_STATUS_NEW = 'new';

public const string PAYMENT_STATUS_AUTHORIZATION_PENDING = 'authorization_pending';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you're removing a lot of constatnts.. is this just a cleanup, they were not used?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, these were not used. It's a clean up.

<event>refund</event>
</transition>

<transition happy="true" condition="PaymentTemplate/IsRefunded">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not do that as OOTB suggestion; That process means that condition checks every time if refund happened or not, which is a lot of useless calls. Instead, I would assume that transition to the refund process is triggered manually. Happy case does not go through the refund. It goes from captured to closed automatically after 30 days; In between, manual transition to refund is possible

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not quite get why this will be checked every minute. It'll only happen if someone manually clicked the REFUND button first, so this one is waiting for a callback from that trigger. In most cases these should be fast.
Even if not fast this check is supposed to be checking the notification in the DB, not actually pinging the PSP.

Or do you have an issue with the "happy" attribute? It makes sense to remove that as refund is not a happy process to a ecom :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants