-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(payments-plugin): Prevent duplicate Mollie payments (#2691)
BREAKING CHANGE: MolliePlugin - A new mollieOrderId has been added in order to prevent duplicate payments in Mollie. This will require a DB migration to add the custom field to your DB schema.
- Loading branch information
1 parent
e0c0ae0
commit 34b61cd
Showing
9 changed files
with
427 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { CustomFieldConfig, Order, CustomOrderFields } from '@vendure/core'; | ||
|
||
export interface OrderWithMollieReference extends Order { | ||
customFields: CustomOrderFields & { | ||
mollieOrderId?: string; | ||
}; | ||
} | ||
|
||
export const orderCustomFields: CustomFieldConfig[] = [ | ||
{ | ||
name: 'mollieOrderId', | ||
type: 'string', | ||
internal: true, | ||
nullable: true, | ||
}, | ||
]; |
Oops, something went wrong.