Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dist
.DS_Store
.vscode
.idea
.connect
build/
processor/.env
processor/junit-report.xml
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.

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

## v1.3.2

Added

- 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

- IF set, new custom fields will be updated into the defined custom type key
- IF not, new custom fields will be added into a default custom type with key `sctm_transactions_custom_type`

Updated

- Allow to cancel an Klarna authorized payment via newly introduce endpoint `/release-authorization` instead of using `DELETE` verb

## v1.3.1

Fixed
Expand Down
2 changes: 1 addition & 1 deletion application/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shopmacher-mollie-application",
"version": "1.3.1",
"version": "1.3.2",
"description": "Integration application between commercetools and mollie payment service provider",
"private": true,
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions application/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export const EXTENSION_KEY = 'sctm-payment-create-update-extension';
export const EXTENSION_URL_PATH = '/processor';
export const APPLICATION_URL_PATH = '/application/methods';
export const USER_AGENT = {
name: 'ShopmacherMollieCommercetoolsConnector/1.3.1',
version: '1.3.1',
libraryName: 'ShopmacherMollieCommercetoolsConnector/1.3.1',
name: 'ShopmacherMollieCommercetoolsConnector/1.3.2',
version: '1.3.2',
libraryName: 'ShopmacherMollieCommercetoolsConnector/1.3.2',
contactEmail: 'info@mollie.com',
};
3 changes: 3 additions & 0 deletions connect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ deployAs:
description: To enable secure mode for connector requests using OAuth authentication (0 or 1)
required: true
default: "0"
- key: CTP_TRANSACTION_CUSTOM_TYPE_KEY
description: Custom type key for transactions in commercetools
required: false
securedConfiguration:
- key: MOLLIE_API_TEST_KEY
description: Mollie PSP test API key
Expand Down
1 change: 1 addition & 0 deletions docs/CancelPaymentRefund.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The target Mollie endpoint will be [Cancel Payment Refund](https://docs.mollie.c

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.
Technically, the CommerceTools Payment object needs to include 3 transactions:

- 1 transaction with type = `Charge`, state = `Success`. This transaction should also store the targeted Mollie Payment ID in `interactionId`.
- 1 transaction with type = `Refund`, state = `Pending`. This transaction should also store the targeted Mollie Refund ID in `interactionId`.
- 1 transaction with type = `CancelAuthorization`, state = `Initial`. This transaction is to point out that the customer is wanting to cancel the Refund.
Expand Down
5 changes: 5 additions & 0 deletions processor/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ MOLLIE_PROFILE_ID=<YOUR_MOLLIE_PROFILE_ID>

## NGROK - only required for development
CONNECTOR_EXTENSION_TOKEN=<YOUR_NGROK_AUTH_TOKEN>

## IF you have assigned a custom type to the transaction, you can specify it here
### So that the processor can use it to update the type adding its new fields
## If you have not assigned a custom type, you can leave this empty
CTP_TRANSACTION_CUSTOM_TYPE_KEY=<your-current-transaction-custom-type-key>
3 changes: 2 additions & 1 deletion processor/bin/ngrok.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ fi

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

# Wait for ngrok to be available
while ! nc -z localhost 4040; do
Expand Down
4 changes: 2 additions & 2 deletions processor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion processor/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "shopmacher-mollie-processor",
"description": "Integration between commercetools and mollie payment service provider",
"version": "1.3.1",
"version": "1.3.2",
"main": "index.js",
"private": true,
"scripts": {
Expand Down
Loading
Loading