Skip to content

Refund Error Handling not displayed in admin #1148

@aaronjudd

Description

@aaronjudd

Error handling for refunds, seems to be broken. Additionally we need to limit refunds, they cannot be greater than the order value (and any discounts previously applied).

Expected behavior

Admin user should see any errors that come back from refund handling in any of the payment providers.

Related to #1147

Actual Behavior

No errors are displayed.

Server console displays a fatal log:

18:46:56.591Z FATAL Reaction:
  Attempt for refund transaction failed { _id: 'QCrf92AJGgodzMqty',
    sessionId: '3C4a9M6YkvAdKog4K',
    userId: 'nfK8ktR5FpDj4LRhu',
    shopId: 'J8Bhq3uTtdgwZx3rz',
    workflow:
     { status: 'coreOrderWorkflow/processing',
       workflow: [ 'coreOrderWorkflow/created', 'coreOrderWorkflow/processing' ] },
    billing:
     [ { address: [Object],
         _id: 'jCQYTEpdnErpgpAuM',
         paymentMethod: [Object],
         invoice: [Object] } ],
    shipping

Steps to Reproduce the Behavior

Attempt to refund an amount in the order workflow during admin.

Metadata

Metadata

Assignees

Labels

bugFor issues that describe a defect or regression in the released software

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions