coopcycle / coopcycle-web

Logistics & marketplace platform. Only for worker-owned business.
https://coopcycle.org
Other
571 stars 130 forks source link

Edenred does not support partial refunds, hence we should disable/grey out the refund amount input field #4615

Closed Atala closed 1 week ago

Atala commented 2 months ago

Describe the bug Edenred does not support partial refunds, hence we should disable/grey out the refund amount input field. if you try partial refund it will crash

To Reproduce

  1. go on order page. order should have been paid by edenred
  2. click "refund" button
  3. change the amount to be refunded so the refund is partial
Client error: `POST https://directpayment.stg.eu.edenred.io/v2/transactions/MTcyNjEzNTkwMDE0MTg5NDM4MDAxMz-915855/actions/refund` resulted in a `400 Bad Request` response:
{
"meta": {
"status": "failed",
"messages": [
{
"code": "TRANSACTION_NOT_AUTHORISED",
"l (truncated...)

the input field should be greyed out

image