Skip to content

Commit b0939d3

Browse files
Merge branch 'feature/MOL-797' into release/v1.4.3
2 parents 2e469d3 + b163164 commit b0939d3

File tree

11 files changed

+115
-47
lines changed

11 files changed

+115
-47
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ 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.4
8+
9+
Added
10+
11+
- Support Riverty and Swish payment methods
12+
713
## v1.4.3
814

915
Fixed

application/cypress/fixtures/fetch-project.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"ES",
1717
"BE",
1818
"FR",
19-
"PT"
19+
"PT",
20+
"SE"
2021
],
2122
"currencies": ["EUR", "GBP", "PLN", "CHF"],
2223
"languages": [
@@ -30,7 +31,8 @@
3031
"es-ES",
3132
"de-AT",
3233
"pt-PT",
33-
"it-IT"
34+
"it-IT",
35+
"sv-SE"
3436
],
3537
"initialized": true,
3638
"expiry": {

application/cypress/fixtures/forward-to.json

Lines changed: 44 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,41 +1440,6 @@
14401440
}
14411441
}
14421442
},
1443-
{
1444-
"resource": "method",
1445-
"id": "giropay",
1446-
"description": "giropay",
1447-
"minimumAmount": {
1448-
"value": "1.00",
1449-
"currency": "EUR"
1450-
},
1451-
"maximumAmount": {
1452-
"value": "10000.00",
1453-
"currency": "EUR"
1454-
},
1455-
"image": {
1456-
"size1x": "https://www.mollie.com/external/icons/payment-methods/giropay.png",
1457-
"size2x": "https://www.mollie.com/external/icons/payment-methods/giropay%402x.png",
1458-
"svg": "https://www.mollie.com/external/icons/payment-methods/giropay.svg"
1459-
},
1460-
"status": "pending-boarding",
1461-
"pricing": [
1462-
{
1463-
"description": "Giropay",
1464-
"fixed": {
1465-
"value": "0.25",
1466-
"currency": "EUR"
1467-
},
1468-
"variable": "1.5"
1469-
}
1470-
],
1471-
"_links": {
1472-
"self": {
1473-
"href": "https://api.mollie.com/v2/methods/giropay",
1474-
"type": "application/hal+json"
1475-
}
1476-
}
1477-
},
14781443
{
14791444
"resource": "method",
14801445
"id": "przelewy24",
@@ -1642,6 +1607,14 @@
16421607
},
16431608
"variable": "0"
16441609
},
1610+
{
1611+
"description": "SEPA Direct Debit Failure",
1612+
"fixed": {
1613+
"value": "0.95",
1614+
"currency": "EUR"
1615+
},
1616+
"variable": "0"
1617+
},
16451618
{
16461619
"description": "SEPA Direct: Debit Batch",
16471620
"fixed": {
@@ -1951,6 +1924,41 @@
19511924
}
19521925
}
19531926
},
1927+
{
1928+
"resource": "method",
1929+
"id": "swish",
1930+
"description": "Swish",
1931+
"minimumAmount": {
1932+
"value": "0.01",
1933+
"currency": "SEK"
1934+
},
1935+
"maximumAmount": {
1936+
"value": "115000.00",
1937+
"currency": "SEK"
1938+
},
1939+
"image": {
1940+
"size1x": "https://www.mollie.com/external/icons/payment-methods/swish.png",
1941+
"size2x": "https://www.mollie.com/external/icons/payment-methods/swish%402x.png",
1942+
"svg": "https://www.mollie.com/external/icons/payment-methods/swish.svg"
1943+
},
1944+
"status": "activated",
1945+
"pricing": [
1946+
{
1947+
"description": "Swish",
1948+
"fixed": {
1949+
"value": "0.25",
1950+
"currency": "EUR"
1951+
},
1952+
"variable": "1.25"
1953+
}
1954+
],
1955+
"_links": {
1956+
"self": {
1957+
"href": "https://api.mollie.com/v2/methods/swish",
1958+
"type": "application/hal+json"
1959+
}
1960+
}
1961+
},
19541962
{
19551963
"resource": "method",
19561964
"id": "mbway",
@@ -2034,4 +2042,4 @@
20342042
"type": "application/hal+json"
20352043
}
20362044
}
2037-
}
2045+
}

application/cypress/fixtures/objects-paginated.json

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,50 @@
742742
"displayOrder": 0
743743
},
744744
"__typename": "CustomObject"
745-
}
745+
},
746+
{
747+
"id": "63a4eb21-1893-483b-90d3-0931fb16bd87",
748+
"container": "sctm-app-methods",
749+
"key": "swish",
750+
"value": {
751+
"id": "swish",
752+
"technicalName": "Swish",
753+
"name": {
754+
"de-DE": "Swish",
755+
"pl-PL": "Swish",
756+
"it-IT": "Swish",
757+
"fr-FR": "Swish",
758+
"de-CH": "Swish",
759+
"nl-NL": "Swish",
760+
"de-BE": "Swish",
761+
"es-ES": "Swish",
762+
"de-AT": "Swish",
763+
"en-GB": "Swish",
764+
"pt-PT": "Swish",
765+
"sv-SE": "Swish"
766+
},
767+
"description": {
768+
"de-DE": "",
769+
"pl-PL": "",
770+
"it-IT": "",
771+
"fr-FR": "",
772+
"de-CH": "",
773+
"nl-NL": "",
774+
"de-BE": "",
775+
"es-ES": "",
776+
"de-AT": "",
777+
"en-GB": "",
778+
"pt-PT": "",
779+
"sv-SE": ""
780+
},
781+
"imageUrl": "https://www.mollie.com/external/icons/payment-methods/swish.svg",
782+
"status": "Active",
783+
"displayOrder": 0
784+
},
785+
"version": 2,
786+
"createdAt": "2025-06-23T04:09:11.120Z",
787+
"lastModifiedAt": "2025-06-23T04:09:25.178Z",
788+
"__typename": "CustomObject"
789+
}
746790
]
747791
}

application/src/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export const EXTENSION_KEY = 'sctm-payment-create-update-extension';
3232
export const EXTENSION_URL_PATH = '/processor';
3333
export const APPLICATION_URL_PATH = '/application/methods';
3434
export const USER_AGENT = {
35-
name: 'ShopmacherMollieCommercetoolsConnector/1.4.3',
36-
version: '1.4.3',
37-
libraryName: 'ShopmacherMollieCommercetoolsConnector/1.4.3',
35+
name: 'ShopmacherMollieCommercetoolsConnector/1.4.4',
36+
version: '1.4.4',
37+
libraryName: 'ShopmacherMollieCommercetoolsConnector/1.4.4',
3838
contactEmail: 'info@mollie.com',
3939
};

application/src/types/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ export enum SupportedPaymentMethods {
7777
in3 = 'in3',
7878
alma = 'alma',
7979
payconiq = 'payconiq',
80+
riverty = 'riverty',
81+
swish = 'swish',
8082
}
8183

8284
export const PaymentsWithResitrctedSurcharge = ['klarna', 'in3', 'alma'];

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

processor/src/commercetools/customObjects.commercetools.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ export const getMethodConfigObjects = async (): Promise<CustomObject[]> => {
1515
.withContainer({
1616
container: CUSTOM_OBJECT_CONTAINER_NAME,
1717
})
18-
.get()
18+
.get({
19+
queryArgs: {
20+
limit: 50,
21+
},
22+
})
1923
.execute();
2024

2125
return methodObjects;

processor/src/types/mollie.types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,6 @@ export enum SupportedPaymentMethods {
4747
in3 = 'in3',
4848
alma = 'alma',
4949
payconiq = 'payconiq',
50+
riverty = 'riverty',
51+
swish = 'swish',
5052
}

0 commit comments

Comments
 (0)