Skip to content

[Bug]: Refund amount not parsed properly when value contains comma #12797

Description

@pepijn-vanvlaanderen

What happended?

Issue on the Medusa v2.8.4 with the core Stripe payment provider.

Steps to reproduce

  1. Open the Refund modal on the order detail in the Admin UI
  2. Enter a value, i.e. 6,95
  3. The amount is changed to 6, also the succes widget show an amount of €NaN is refunded.
  4. Also in the Stripe refund it is processed as a € 6 refund.

Note: in my admin I am not allowed to enter numeric values with a ., so there is also no workaround, except for doing the refund in Stripe and manually update database with refund value.

Expected behavior

I expected to have refunded the actual amount of € 6,95

Actual behavior

A refund was done of € 6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions