Skip to content

Commit

Permalink
feat: support giftcard with the planned payment amount (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeliziact authored Jan 24, 2025
1 parent 9e3db4f commit 24498f1
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 12 deletions.
84 changes: 74 additions & 10 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
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@adyen/api-library": "22.1.0",
"@commercetools-backend/loggers": "22.38.1",
"@commercetools/connect-payments-sdk": "0.16.1",
"@commercetools/connect-payments-sdk": "0.17.2",
"@fastify/autoload": "6.0.3",
"@fastify/cors": "10.0.2",
"@fastify/formbody": "8.0.2",
Expand Down
2 changes: 1 addition & 1 deletion processor/src/services/adyen-payment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class AdyenPaymentService extends AbstractPaymentService {
id: getCartIdFromContext(),
});

const amountPlanned = await this.ctCartService.getPaymentAmount({ cart: ctCart });
const amountPlanned = await this.ctCartService.getPlannedPaymentAmount({ cart: ctCart });
const ctPayment = await this.ctPaymentService.createPayment({
amountPlanned,
paymentMethodInfo: {
Expand Down

0 comments on commit 24498f1

Please sign in to comment.