Skip to content

Commit 31c6cb4

Browse files
Release/v1.3.2 (#166)
* MOL-730 - add release authorized payment endpoint * MOL-730 - update unit test * MOL-730 - update changelog * MOL-736 - add new setting for transaction custom type * MOL-736 - update test cases * MOL-736 - update condition check * MOL-736 - update post deploy script * MOL-736 - update condition check * MOL-736 - update changelog * Feature/mol 730 (#163) * MOL-730 - add release authorized payment endpoint * MOL-730 - update unit test * MOL-730 - update changelog * [UPDATE] release version
1 parent d4b07f3 commit 31c6cb4

27 files changed

+454
-391
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dist
55
.DS_Store
66
.vscode
77
.idea
8+
.connect
89
build/
910
processor/.env
1011
processor/junit-report.xml

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## v1.3.2
8+
9+
Added
10+
11+
- A new connector setting named `CTP_TRANSACTION_CUSTOM_TYPE_KEY` for adding/updating new custom fields - the custom field key and logic would stay the same
12+
13+
- IF set, new custom fields will be updated into the defined custom type key
14+
- IF not, new custom fields will be added into a default custom type with key `sctm_transactions_custom_type`
15+
16+
Updated
17+
18+
- Allow to cancel an Klarna authorized payment via newly introduce endpoint `/release-authorization` instead of using `DELETE` verb
19+
720
## v1.3.1
821

922
Fixed

application/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shopmacher-mollie-application",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "Integration application between commercetools and mollie payment service provider",
55
"private": true,
66
"scripts": {

application/src/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export const EXTENSION_KEY = 'sctm-payment-create-update-extension';
1212
export const EXTENSION_URL_PATH = '/processor';
1313
export const APPLICATION_URL_PATH = '/application/methods';
1414
export const USER_AGENT = {
15-
name: 'ShopmacherMollieCommercetoolsConnector/1.3.1',
16-
version: '1.3.1',
17-
libraryName: 'ShopmacherMollieCommercetoolsConnector/1.3.1',
15+
name: 'ShopmacherMollieCommercetoolsConnector/1.3.2',
16+
version: '1.3.2',
17+
libraryName: 'ShopmacherMollieCommercetoolsConnector/1.3.2',
1818
contactEmail: 'info@mollie.com',
1919
};

connect.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ deployAs:
2727
description: To enable secure mode for connector requests using OAuth authentication (0 or 1)
2828
required: true
2929
default: "0"
30+
- key: CTP_TRANSACTION_CUSTOM_TYPE_KEY
31+
description: Custom type key for transactions in commercetools
32+
required: false
3033
securedConfiguration:
3134
- key: MOLLIE_API_TEST_KEY
3235
description: Mollie PSP test API key

docs/CancelPaymentRefund.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The target Mollie endpoint will be [Cancel Payment Refund](https://docs.mollie.c
1616

1717
In order to use this functionality, the customer must have a charged-successfully payment and a refund created which is in-progress for that payment.
1818
Technically, the CommerceTools Payment object needs to include 3 transactions:
19+
1920
- 1 transaction with type = `Charge`, state = `Success`. This transaction should also store the targeted Mollie Payment ID in `interactionId`.
2021
- 1 transaction with type = `Refund`, state = `Pending`. This transaction should also store the targeted Mollie Refund ID in `interactionId`.
2122
- 1 transaction with type = `CancelAuthorization`, state = `Initial`. This transaction is to point out that the customer is wanting to cancel the Refund.

processor/.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ MOLLIE_PROFILE_ID=<YOUR_MOLLIE_PROFILE_ID>
3030

3131
## NGROK - only required for development
3232
CONNECTOR_EXTENSION_TOKEN=<YOUR_NGROK_AUTH_TOKEN>
33+
34+
## IF you have assigned a custom type to the transaction, you can specify it here
35+
### So that the processor can use it to update the type adding its new fields
36+
## If you have not assigned a custom type, you can leave this empty
37+
CTP_TRANSACTION_CUSTOM_TYPE_KEY=<your-current-transaction-custom-type-key>

processor/bin/ngrok.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ fi
1212

1313
# Start NGROK in background
1414
echo "⚡️ Starting ngrok"
15-
ngrok http 8080 --authtoken ${CONNECTOR_EXTENSION_TOKEN} > /dev/null &
15+
ngrok authtoken ${CONNECTOR_EXTENSION_TOKEN} &
16+
ngrok http 8080 > /dev/null &
1617

1718
# Wait for ngrok to be available
1819
while ! nc -z localhost 4040; do

processor/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

processor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "shopmacher-mollie-processor",
33
"description": "Integration between commercetools and mollie payment service provider",
4-
"version": "1.3.1",
4+
"version": "1.3.2",
55
"main": "index.js",
66
"private": true,
77
"scripts": {

0 commit comments

Comments
 (0)