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

Voiding an initial payment (i.e. a full refund) after partially refunding the order is not possible with Stripe-SCA #5829

Closed
filipefurtad0 opened this issue Jul 27, 2020 · 2 comments · Fixed by #6453
Assignees
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. hackathon Issues for upcoming hackathons

Comments

@filipefurtad0
Copy link
Contributor

filipefurtad0 commented Jul 27, 2020

Description

Orders payed with both Stripe-Connect and Stripe-SCA allow to perform a partial refund of the order (after removing some items). However, after this partial refund, voiding the initial payment of the order is still possible in Stripe-Connect, but fails with Stripe-SCA.

Expected Behavior

In both payment methods, voiding of the initial order payment should be possible, after a partial refund. This should be reflected on the Stripe-Dashboard:

Initial payment:
image.png

After partial refund:
image.png

After voiding the initial payment:
image.png

Actual Behaviour

Only with Stripe-Connect it is possible to void of the initial payment of the order, after a partial refund. With Stripe-SCA this operation yields the error "Refund amount (€xxx) is greater than unrefunded amount on charge (€xxx)

Steps to Reproduce

Customer (or Admin, in the BO)

  1. Place an order with several items, using Stripe-SCA as a payment method.

Admin
2. Edit the respective order, remove some items.
3. Go to Payments - there should be a given amount in credit owed.
4. Press "Credit" on the initial payment of the order. A second entry should appear under Payments.
5. Now, on the first (initial) payment, press the X (void payment). See the error.

Animated Gif/Screenshot

After partial refund, and attempting to void the original payment:

image.png

Workaround

Cancelling the order is maybe an option, but it does not provide the refund through Stripe.

Severity

bug-s3: a feature is broken but there is a workaround

Your Environment

  • Version used: v3.1.3
  • Browser name and version: Firefox 78
  • Operating System and version (desktop or mobile): Desktop Ubuntu 20.04

Possible Fix

Observed while testing #5780 but apparently not related to this PR. Also appears independent of applying transaction fees.

@filipefurtad0 filipefurtad0 added the bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. label Jul 27, 2020
@luisramos0
Copy link
Contributor

I agree with S3 👍

@luisramos0
Copy link
Contributor

I think this will be XS, a couple of hours.

@RachL RachL added the hackathon Issues for upcoming hackathons label Sep 25, 2020
andrewpbrett added a commit to andrewpbrett/openfoodnetwork that referenced this issue Dec 3, 2020
andrewpbrett added a commit to andrewpbrett/openfoodnetwork that referenced this issue Dec 5, 2020
sauloperez added a commit that referenced this issue Dec 14, 2020
fix #5829 (Voiding an initial payment (i.e. a full refund) after partially refunding the order is not possible with Stripe-SCA)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. hackathon Issues for upcoming hackathons
Projects
None yet
4 participants