-
Couldn't load subscription status.
- Fork 2.2k
Closed
Labels
bugFor issues that describe a defect or regression in the released softwareFor issues that describe a defect or regression in the released software
Milestone
Description
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 softwareFor issues that describe a defect or regression in the released software