Skip to content

Commit

Permalink
feat(adyen-template): remove unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanorct committed Feb 27, 2024
1 parent e322676 commit f58563b
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 271 deletions.
14 changes: 12 additions & 2 deletions connect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,43 @@ deployAs:
standardConfiguration:
- key: CTP_PROJECT_KEY
description: Commercetools project key
- key: CTP_SCOPE
description: Commercetools client scope
required: true
- key: CTP_REGION
description: Region of Commercetools project
required: true
- key: CTP_AUTH_URL
description: Commercetools Auth URL
required: true
- key: CTP_API_URL
description: Commercetools API URL
required: true
- key: CTP_SESSION_URL
description: Session API URL
required: true
- key: ADYEN_ENVIRONMENT
description: Adyen environment
required: true
default: TEST
- key: ADYEN_CLIENT_KEY
description: Adyen client key
required: true
- key: ADYEN_LIVE_URL_PREFIX
description: Adyen live URL prefix
- key: MERCHANT_RETURN_URL
description: Merchant return URL
securedConfiguration:
- key: CTP_CLIENT_ID
description: Commercetools client ID
required: true
- key: CTP_CLIENT_SECRET
description: Commercetools client secret
required: true
- key: ADYEN_API_KEY
description: Adyen API key
required: true
- key: ADYEN_NOTIFICATION_HMAC_KEY
description: Adyen HMAC key
required: true
- name: enabler
applicationType: service
endpoint: /
Expand Down
6 changes: 3 additions & 3 deletions processor/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "payment-integration-template",
"version": "1.0.0",
"description": "Payment provider integration template",
"name": "payment-integration-adyen",
"version": "0.0.2",
"description": "Payment integration with Adyen",
"main": "dist/server.js",
"scripts": {
"start": "node dist/main.js",
Expand Down
31 changes: 0 additions & 31 deletions processor/src/dtos/mock-payment.dto.ts

This file was deleted.

36 changes: 0 additions & 36 deletions processor/src/routes/mock-payment.route.ts

This file was deleted.

92 changes: 0 additions & 92 deletions processor/src/services/mock-payment.service.ts

This file was deleted.

76 changes: 0 additions & 76 deletions processor/src/services/processors/mock-operation.processor.ts

This file was deleted.

5 changes: 0 additions & 5 deletions processor/src/services/types/adyen-payment.type.ts

This file was deleted.

15 changes: 0 additions & 15 deletions processor/src/services/types/mock-payment.type.ts

This file was deleted.

11 changes: 0 additions & 11 deletions processor/src/services/types/operation.type.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { CommercetoolsCartService, CommercetoolsPaymentService } from '@commercetools/connect-payments-sdk';
import { PaymentOutcome, PaymentRequestSchemaDTO } from '../../dtos/mock-payment.dto';
import { ConfigResponseSchemaDTO } from '../../dtos/operations/config.dto';
import { SupportedPaymentComponentsSchemaDTO } from '../../dtos/operations/payment-componets.dto';
import {
Expand All @@ -12,10 +11,6 @@ import { StatusResponseSchemaDTO } from '../../dtos/operations/status.dto';
import { OperationProcessor } from '../processors/operation.processor';
import { Payment } from '@commercetools/platform-sdk';

export type CreatePaymentRequest = {
data: PaymentRequestSchemaDTO;
};

export type CapturePaymentRequest = {
amount: AmountSchemaDTO;
payment: Payment;
Expand All @@ -30,12 +25,6 @@ export type RefundPaymentRequest = {
payment: Payment;
};

export type PaymentProviderResponse = {
resultCode: PaymentOutcome;
pspReference: string;
paymentMethodType: string;
};

export type PaymentProviderModificationResponse = {
outcome: PaymentModificationStatus;
pspReference: string;
Expand Down

0 comments on commit f58563b

Please sign in to comment.