Skip to content

Commit

Permalink
Merge pull request #42 from mollie/bugfix/MOL-297
Browse files Browse the repository at this point in the history
Bugfix/mol 297
  • Loading branch information
Tung-Huynh-Shopmacher authored Aug 20, 2024
2 parents 48d939d + 0075252 commit 5a5e71c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 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": "0.0.30",
"version": "0.0.31",
"main": "index.js",
"private": true,
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion processor/src/utils/map.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export const mapCommercetoolsPaymentCustomFieldsToMollieListParams = async (
const getSpecificPaymentParams = (method: PaymentMethod | CustomPaymentMethod, paymentRequest: any) => {
switch (method) {
case PaymentMethod.applepay:
return { applePayPaymentToken: JSON.stringify(paymentRequest.applePayPaymentToken ?? {}) };
return paymentRequest.applePayPaymentToken
? { applePayPaymentToken: JSON.stringify(paymentRequest.applePayPaymentToken) }
: {};
case PaymentMethod.banktransfer:
return {
dueDate: calculateDueDate(readConfiguration().mollie.bankTransferDueDate),
Expand Down

0 comments on commit 5a5e71c

Please sign in to comment.