Skip to content
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
fc677d6
Merge pull request #66 from mollie/bugfix/MOL-475
Tung-Huynh-Shopmacher Oct 2, 2024
11af8f6
Chore: Fix Sonarqube audit error
NghiaDTr Oct 2, 2024
d176d0e
MOL-471: fixing get payment methods
tdang1-shopmacher Sep 19, 2024
6f45600
MOL-475: Connector should verify if mailaddress for banktransfer is s…
NghiaDTr Oct 1, 2024
57dd739
Merge branch 'main' into fix-sonar-audit
Tung-Huynh-Shopmacher Oct 2, 2024
af5c0c8
Merge pull request #69 from mollie/fix-sonar-audit
Tung-Huynh-Shopmacher Oct 2, 2024
0553ed3
Chore: Fix Sonar Audit
NghiaDTr Oct 3, 2024
787b84a
Merge branch 'main' of github.com:mollie/commercetools-connector into…
NghiaDTr Oct 3, 2024
d77f9e2
Chore: Fix Sonar Audit
NghiaDTr Oct 3, 2024
65af4fd
Fix Audit
NghiaDTr Oct 3, 2024
91d4279
Merge branch 'main' of github.com:mollie/commercetools-connector into…
NghiaDTr Oct 3, 2024
e12d5da
Fix Sonar Audit
NghiaDTr Oct 3, 2024
c92effc
MOL-487/MOL-488: implement jwt authentication for
tdang1-shopmacher Oct 7, 2024
2e1d5eb
MOL-487/MOL-488: switch to use OAuth middleware
tdang1-shopmacher Oct 8, 2024
396fce5
Merge branch 'develop' into feature/MOL-487/PICT-262_resolved-develop
tdang1-shopmacher Oct 8, 2024
e216f9b
Merge branch 'develop' into feature/MOL-487/PICT-262_resolved-develop
tdang1-shopmacher Oct 8, 2024
9cc0512
MOL-487/MOL-488: change version
tdang1-shopmacher Oct 8, 2024
8071f9c
MOL-487/MOL-488: change version
tdang1-shopmacher Oct 8, 2024
e977ff0
Merge branch 'develop' into feature/MOL-487/PICT-262_resolved-develop
tdang1-shopmacher Oct 8, 2024
60c6b46
MOL-487/MOL-488: renaming
tdang1-shopmacher Oct 10, 2024
a574d2a
Merge branch 'feature/MOL-487/PICT-262' into feature/MOL-487/PICT-262…
tdang1-shopmacher Oct 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ dist
.idea
build/
processor/.env
processor/junit-report.xml
processor/junit-report.xml
application/.env
application/*/.env
26 changes: 17 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ Added

- Mollie custom application initialization

## v1.1.2

Added

- Add configuration to enable authorization mode
- OAuth middleware for securing connector endpoint

## v1.1.1

Fixes
Expand All @@ -27,6 +34,7 @@ Added

Added

- Add docs for status checking endpoint
- Endpoints for checking connector statuses

## v1.0.2
Expand Down Expand Up @@ -54,15 +62,15 @@ Added
- Package version for requests
- Log mechanism
- Supporting payment methods namely:
- [Apple pay](https://docs.mollie.com/docs/apple-pay)
- [Bancontact](https://docs.mollie.com/docs/bancontact)
- [BLIK](https://docs.mollie.com/docs/blik)
- [Credit/debit card](https://docs.mollie.com/docs/cards)
- [Gift cards](https://docs.mollie.com/docs/giftcards)
- [iDEAL](https://docs.mollie.com/docs/ideal)
- [KBC/CBC](https://docs.mollie.com/docs/kbc)
- [Paypal](https://docs.mollie.com/docs/paypal)
- [Przelewy24](https://docs.mollie.com/docs/przelewy24)
- [Apple pay](https://docs.mollie.com/docs/apple-pay)
- [Bancontact](https://docs.mollie.com/docs/bancontact)
- [BLIK](https://docs.mollie.com/docs/blik)
- [Credit/debit card](https://docs.mollie.com/docs/cards)
- [Gift cards](https://docs.mollie.com/docs/giftcards)
- [iDEAL](https://docs.mollie.com/docs/ideal)
- [KBC/CBC](https://docs.mollie.com/docs/kbc)
- [Paypal](https://docs.mollie.com/docs/paypal)
- [Przelewy24](https://docs.mollie.com/docs/przelewy24)
- Supporting for [Apply pay direct](https://docs.mollie.com/docs/direct-integration-of-apple-pay) & [Mollie card component](https://docs.mollie.com/docs/mollie-components)
- Filter options for listing payment methods
- Create/cancel payment via Payment API
Expand Down
4 changes: 4 additions & 0 deletions connect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ deployAs:
- key: MOLLIE_BANK_TRANSFER_DUE_DATE
description: Payment method Bank Transfer due date (1d -> 100d)
default: "14d"
- key: AUTHENTICATION_MODE
description: To enable secure mode for connector requests using OAuth authentication (0 or 1)
required: true
default: "0"
securedConfiguration:
- key: MOLLIE_API_TEST_KEY
description: Mollie PSP test API key
Expand Down
23 changes: 23 additions & 0 deletions docs/Authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@

This guide explains how to connect to the Mollie client and verify the connection. The initial connection setup will be used across various features requiring Mollie integration.

## Securing connector endpoints

To called our connector endpoint esp. the processor endpoint (/processor/*), a valid access token (with client credentials grant type) is required. This token must be updated into the extension destination.

``` MD
CREAT/UPDATE Extension
{
...
"destination": {
"type": "HTTP",
"url": "https://efd6-115-74-115-119.ngrok-free.app/processor",
"authorization": {
"type": "AuthorizationHeader",
"headerValue": "_token_"
}
}
...
}

```

Kindly recheck your extension record if facing unauthorized error when communicating with the connector. Also the token do expire after a time, please consider to implement a scheduled job to update this token.

## Connecting to Mollie

To connect to the Mollie account, you must specify the `MOLLIE_API_TEST_KEY` and `MOLLIE_API_LIVE_KEY` in your .env file. You can get the API key from your Mollie Dashboard.
Expand Down
1 change: 1 addition & 0 deletions processor/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CTP_CLIENT_SECRET=<YOUR_CTP_CLIENT_SECRET>
CTP_PROJECT_KEY=<YOUR_CTP_PROJECT_KEY>
CTP_SCOPE=<YOUR_CTP_PROJECT_SCOPE>
CTP_REGION=<YOUR_CTP_REGION>
AUTHENTICATION_MODE=<YOUR_AUTHENTICATION_MODE>

## Commercetools API URLs
CTP_AUTH_URL=https://auth.<YOUR_CTP_REGION>.commercetools.com
Expand Down
1 change: 1 addition & 0 deletions processor/.env.jest
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CTP_CLIENT_SECRET=12345678901234567890123456789012
CTP_PROJECT_KEY=TEST
CTP_SCOPE=TEST
CTP_REGION=europe-west1.gcp
AUTHENTICATION_MODE=0
CTP_SESSION_AUDIENCE=https://mc.europe-west1.gcp.commercetools.com
CTP_SESSION_ISSUER=gcp-eu
## MOLLIE vars
Expand Down
Loading