Skip to content

Commit 8ea347e

Browse files
Merge pull request #201 from mollie/feature/MOL-895/shared-payment-custom-type
refactor(MOL-895): shared payment custom type
2 parents d792601 + 0956648 commit 8ea347e

10 files changed

Lines changed: 720 additions & 211 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ 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.4.5
8+
9+
Added
10+
11+
- Support for shared payment custom type (MOL-895)
12+
13+
Changed
14+
15+
- Reduced code complexity for surcharge logic
16+
717
## v1.4.4
818

919
Fixed

connect.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ deployAs:
3030
- key: CTP_TRANSACTION_CUSTOM_TYPE_KEY
3131
description: Custom type key for transactions in commercetools
3232
required: false
33+
- key: CTP_PAYMENT_CUSTOM_TYPE_KEY
34+
description: Custom type key for payments in commercetools
35+
required: false
36+
- key: CTP_INTERFACE_INTERACTION_CUSTOM_TYPE_KEY
37+
description: Custom type key for payment interface interactions in commercetools
38+
required: false
3339
securedConfiguration:
3440
- key: MOLLIE_API_TEST_KEY
3541
description: Mollie PSP test API key

processor/.env.example

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,18 @@ MOLLIE_API_TEST_KEY=<YOUR_MOLLIE_API_TEST_KEY>
2828
MOLLIE_API_LIVE_KEY=<YOUR_MOLLIE_API_LIVE_KEY>
2929
MOLLIE_PROFILE_ID=<YOUR_MOLLIE_PROFILE_ID>
3030

31-
## NGROK - only required for development
31+
## ngrok authtoken - only required for development for testing Mollie webhook; used at processor/bin/ngrok.sh
3232
CONNECTOR_EXTENSION_TOKEN=<YOUR_NGROK_AUTH_TOKEN>
3333

3434
## IF you have assigned a custom type to the transaction, you can specify it here
3535
### So that the processor can use it to update the type adding its new fields
3636
## 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>
37+
CTP_TRANSACTION_CUSTOM_TYPE_KEY=<YOUR_CURRENT_TRANSACTION_CUSTOM_TYPE_KEY>
38+
## IF you have assigned a custom type to the payment, you can specify it here
39+
### So that the processor can use it to update the type adding its new fields
40+
## If you have not assigned a custom type, you can leave this empty
41+
CTP_PAYMENT_CUSTOM_TYPE_KEY=<YOUR_CURRENT_PAYMENT_CUSTOM_TYPE_KEY>
42+
## IF you have assigned a custom type to the payment interface interaction, you can specify it here
43+
### So that the processor can use it to update the type adding its new fields
44+
## If you have not assigned a custom type, you can leave this empty
45+
CTP_INTERFACE_INTERACTION_CUSTOM_TYPE_KEY=<YOUR_CURRENT_INTERFACE_INTERACTION_CUSTOM_TYPE_KEY>

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.4.4",
4+
"version": "1.4.5",
55
"main": "index.js",
66
"private": true,
77
"scripts": {

0 commit comments

Comments
 (0)