Skip to content

Commit

Permalink
Merge branch 'develop' into feature/MOL-18/PICT-195_add-minor-modific…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
tdang1-shopmacher committed Jul 23, 2024
2 parents 6ab3bc1 + 843c257 commit 0af1ada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
4 changes: 4 additions & 0 deletions processor/src/utils/map.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ export const createMollieCreatePaymentParams = (payment: Payment): PaymentCreate
// captureMode: paymentRequest.captureMode ?? null, PICT-204 is on hold
// captureDelay: paymentRequest.captureMode ?? null, PICT-204 is on hold
applicationFee: paymentRequest.applicationFee ?? {},

// TODO: Conflicts between docs and Mollie API Client
// The official document pointed out that these 2 fields are supported
// But if we send them along with the payload even hard-coded the value, Mollie return with the error: "Non-existent body parameter 'profileId' or 'testmode'"
// profileId: paymentRequest.profileId ?? null,
// testmode: paymentRequest.testmode ?? null,
...specificParam,
Expand Down
20 changes: 0 additions & 20 deletions processor/tests/utils/map.utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ describe('createMollieCreatePaymentParams', () => {
billingAddress: {},
issuer: '',
metadata: null,
profileId: null,
restrictPaymentMethodsToCountry: null,
shippingAddress: {},
testmode: null,
cardToken: '',
include: '',
});
Expand Down Expand Up @@ -156,10 +154,8 @@ describe('createMollieCreatePaymentParams', () => {
billingAddress: {},
issuer: '',
metadata: null,
profileId: null,
restrictPaymentMethodsToCountry: null,
shippingAddress: {},
testmode: null,
cardToken: customFieldObject.cardToken,
include: '',
});
Expand Down Expand Up @@ -223,10 +219,8 @@ describe('createMollieCreatePaymentParams', () => {
applicationFee: {},
billingAddress: {},
metadata: null,
profileId: null,
restrictPaymentMethodsToCountry: null,
shippingAddress: {},
testmode: null,
});
});

Expand Down Expand Up @@ -289,10 +283,8 @@ describe('createMollieCreatePaymentParams', () => {
applicationFee: {},
billingAddress: {},
metadata: null,
profileId: null,
restrictPaymentMethodsToCountry: null,
shippingAddress: {},
testmode: null,
});
});

Expand Down Expand Up @@ -352,10 +344,8 @@ describe('createMollieCreatePaymentParams', () => {
applicationFee: {},
billingAddress: {},
metadata: null,
profileId: null,
restrictPaymentMethodsToCountry: null,
shippingAddress: {},
testmode: null,
});
});

Expand Down Expand Up @@ -413,10 +403,8 @@ describe('createMollieCreatePaymentParams', () => {
applicationFee: {},
billingAddress: {},
metadata: null,
profileId: null,
restrictPaymentMethodsToCountry: null,
shippingAddress: {},
testmode: null,
});
});

Expand Down Expand Up @@ -472,10 +460,8 @@ describe('createMollieCreatePaymentParams', () => {
applicationFee: {},
billingAddress: {},
metadata: null,
profileId: null,
restrictPaymentMethodsToCountry: null,
shippingAddress: {},
testmode: null,
});
});

Expand Down Expand Up @@ -583,10 +569,8 @@ describe('createMollieCreatePaymentParams', () => {
applicationFee: {},
billingAddress: {},
metadata: null,
profileId: null,
restrictPaymentMethodsToCountry: null,
shippingAddress: {},
testmode: null,
});
});

Expand Down Expand Up @@ -646,10 +630,8 @@ describe('createMollieCreatePaymentParams', () => {
applicationFee: {},
billingAddress: {},
metadata: null,
profileId: null,
restrictPaymentMethodsToCountry: null,
shippingAddress: {},
testmode: null,
});
});

Expand Down Expand Up @@ -709,10 +691,8 @@ describe('createMollieCreatePaymentParams', () => {
applicationFee: {},
billingAddress: {},
metadata: null,
profileId: null,
restrictPaymentMethodsToCountry: null,
shippingAddress: {},
testmode: null,
});
});
});

0 comments on commit 0af1ada

Please sign in to comment.