Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refund updates #4934

Merged
merged 5 commits into from May 11, 2023
Merged

Refund updates #4934

merged 5 commits into from May 11, 2023

Conversation

dennisreimann
Copy link
Member

@dennisreimann dennisreimann commented Apr 28, 2023

Closes #3839. Closes #4812.

@dennisreimann
Copy link
Member Author

An option to also offer a refund LESS the costs involved in issuing the refund (for example onchain fee to send it out)

@Kukks as you initially proposed this one: Is this really necessary now that we have the custom option? It'd also only be helpful for onchain and if we'd calculate the fee in advance.

@dstrukt dstrukt self-requested a review May 1, 2023 19:12
@Kukks
Copy link
Member

Kukks commented May 2, 2023

An option to also offer a refund LESS the costs involved in issuing the refund (for example onchain fee to send it out)

@Kukks as you initially proposed this one: Is this really necessary now that we have the custom option? It'd also only be helpful for onchain and if we'd calculate the fee in advance.

I'd say yes, as merchants usually don't want to have to calculate themselves, this option could be "send received amount less x% as processing fee', with an input to specify x (0-100% in decimal)

@dennisreimann dennisreimann changed the title Refund: Warn user when overpaying with custom amount Refund updates May 2, 2023
@dennisreimann
Copy link
Member Author

Alright, added it like this:

grafik

@dennisreimann
Copy link
Member Author

With regard to this comment: Should we introduce the "minus X%" option as a more general setting which is available in addition to all options? We could simply display it above the "Create refund" button.

@Kukks @petzsch @dstrukt @pavlenex

@Kukks
Copy link
Member

Kukks commented May 3, 2023

With regard to this comment: Should we introduce the "minus X%" option as a more general setting which is available in addition to all options? We could simply display it above the "Create refund" button.

@Kukks @petzsch @dstrukt @pavlenex

That could work, so we move that as some kind of toggle under the options with a link "charge a fee"?

@dennisreimann
Copy link
Member Author

grafik

@dennisreimann dennisreimann marked this pull request as ready for review May 3, 2023 16:34
@dennisreimann
Copy link
Member Author

Made the "subtract percentage" option available in general. Ready for review now.

refund

@dennisreimann dennisreimann requested a review from Kukks May 3, 2023 16:41
Copy link
Member

@dstrukt dstrukt left a comment

Choose a reason for hiding this comment

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

Functional tACK.

As discussed on design call, this is a great improvement .. there were some other minor suggestions/ideas to improve the communication/clarity of options, but fell outside of the scope of this PR.

Will revisit some of them (Overpaid, labeling, etc..) in mocks once this is merged!

@Kukks Kukks merged commit 195dfc2 into btcpayserver:master May 11, 2023
4 checks passed
@dennisreimann dennisreimann deleted the refund-flow branch May 11, 2023 09:16
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.

Feature Request: Improve Refund Flow for overpaid invoices Improve Refund Flow (Part 2)
3 participants