Skip to content

Commit

Permalink
feat(accept-blue): correct refund state
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvdbrug committed Nov 3, 2024
1 parent 6ca7180 commit b067e87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions packages/vendure-plugin-accept-blue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.8.1 (2024-11-03)

- Bug fix: Return Settled state for successful refunds

# 1.8.0 (2024-11-01)

- Implemented refunding via admin UI for initial AC transaction
Expand Down
2 changes: 1 addition & 1 deletion packages/vendure-plugin-accept-blue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pinelab/vendure-plugin-accept-blue",
"version": "1.8.0",
"version": "1.8.1",
"description": "Vendure plugin for creating subscriptions with the Accept Blue platform",
"author": "Martijn van de Brug <[email protected]>",
"homepage": "https://pinelab-plugins.com/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { RefundOrderInput } from '@vendure/common/lib/generated-types';
import {
CreatePaymentResult,
CreateRefundResult,
Expand All @@ -6,16 +7,11 @@ import {
Logger,
Order,
Payment,
PaymentMethod,
PaymentMethodHandler,
RequestContext,
SettlePaymentResult,
UserInputError,
} from '@vendure/core';
import {
ConfigArg,
RefundOrderInput,
} from '@vendure/common/lib/generated-types';
import { loggerCtx } from '../constants';
import {
CheckPaymentMethodInput,
Expand Down Expand Up @@ -156,7 +152,7 @@ export const acceptBluePaymentHandler = new PaymentMethodHandler({
};
}
return {
state: 'Failed',
state: 'Settled',
transactionId: String(refundResult.referenceNumber),
metadata: refundResult,
};
Expand Down

0 comments on commit b067e87

Please sign in to comment.