@vicacha-devs/medusa-payment-mollie 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +69 -0
  2. package/package.json +6 -1
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # `@vicacha-devs/medusa-payment-mollie`
2
+
3
+ **Mollie** (iDEAL, Bancontact, SEPA, Cards) and **B2B Net-14 Invoice** payment provider plugin for **Medusa v2**.
4
+
5
+ ---
6
+
7
+ ## Key Features
8
+
9
+ - **Mollie Payment Provider (`mollie-ideal`)**:
10
+ - Supports `initiatePayment`, `authorizePayment`, `capturePayment`, `refundPayment`, `cancelPayment`, `deletePayment`, `retrievePayment`, `updatePayment`, `getPaymentStatus`, and `getWebhookActionAndData`.
11
+ - Validates Mollie payment IDs (`/^tr_[A-Za-z0-9]{6,40}$/`) and enforces SSRF-safe `baseUrl` overrides (`https://` or non-production loopback `127.0.0.1`/`localhost` for QA emulators).
12
+ - **B2B Net-14 Invoice Support**: Pairs with B2B checkout workflows for Net-14 deferred invoicing alongside instant Mollie methods.
13
+
14
+ ---
15
+
16
+ ## Installation & Configuration
17
+
18
+ ```bash
19
+ pnpm add @vicacha-devs/medusa-payment-mollie
20
+ ```
21
+
22
+ Register in `medusa-config.ts`:
23
+
24
+ ```ts
25
+ import { defineConfig } from "@medusajs/framework/utils"
26
+
27
+ export default defineConfig({
28
+ plugins: [
29
+ {
30
+ resolve: "@vicacha-devs/medusa-payment-mollie",
31
+ options: {},
32
+ },
33
+ ],
34
+ modules: [
35
+ {
36
+ resolve: "@medusajs/medusa/payment",
37
+ options: {
38
+ providers: [
39
+ {
40
+ resolve:
41
+ "@vicacha-devs/medusa-payment-mollie/providers/mollie-payment",
42
+ id: "mollie-ideal",
43
+ options: {
44
+ apiKey: process.env.MOLLIE_API_KEY,
45
+ webhookUrl: process.env.MOLLIE_WEBHOOK_URL,
46
+ },
47
+ },
48
+ ],
49
+ },
50
+ },
51
+ ],
52
+ })
53
+ ```
54
+
55
+ ### Environment Variables
56
+
57
+ | Variable | Description |
58
+ | :------------------- | :------------------------------------------------------------ |
59
+ | `MOLLIE_API_KEY` | Mollie live (`live_...`) or test (`test_...`) API key |
60
+ | `MOLLIE_WEBHOOK_URL` | Optional public HTTPS webhook URL for Mollie status callbacks |
61
+
62
+ ---
63
+
64
+ ## Development & Testing
65
+
66
+ ```bash
67
+ pnpm --filter @vicacha-devs/medusa-payment-mollie test
68
+ pnpm --filter @vicacha-devs/medusa-payment-mollie typecheck
69
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vicacha-devs/medusa-payment-mollie",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "description": "Mollie (iDEAL, Bancontact, SEPA, Cards) and B2B Net-14 Invoice payment provider plugin for Medusa v2.",
5
5
  "keywords": [
6
6
  "bancontact",
@@ -16,6 +16,11 @@
16
16
  ],
17
17
  "license": "MIT",
18
18
  "author": "Vicacha Devs",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/Vicacha-Devs/medusa-plugins.git",
22
+ "directory": "packages/payment-mollie"
23
+ },
19
24
  "files": [
20
25
  ".medusa/server",
21
26
  "dist",