Skip to content

Commit ecf86fd

Browse files
authored
Merge pull request #15 from cybersource-tpi/master
v24.1.0
2 parents f48257a + d607d4f commit ecf86fd

200 files changed

Lines changed: 14646 additions & 10808 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.cspell.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
"cimg",
99
"circleci",
1010
"codecov",
11-
"Commercetools",
11+
"commercetools",
1212
"commitlint",
13-
"Cybersource",
1413
"dependabot",
1514
"editorconfig",
1615
"esnext",

.env

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
CONFIG_PORT =
1+
CONFIG_PORT =
22

33
PAYMENT_GATEWAY_EXTENSION_DESTINATION_URL =
44
PAYMENT_GATEWAY_EXTENSION_HEADER_VALUE =
55
PAYMENT_GATEWAY_RUN_ENVIRONMENT =
66
PAYMENT_GATEWAY_ENABLE_DEBUG =
77

8-
PAYMENT_GATEWAY_MERCHANT_ID =
8+
PAYMENT_GATEWAY_MERCHANT_ID =
99
PAYMENT_GATEWAY_MERCHANT_KEY_ID =
1010
PAYMENT_GATEWAY_MERCHANT_SECRET_KEY =
1111

@@ -22,23 +22,18 @@ PAYMENT_GATEWAY_APPLE_PAY_MERCHANT_ID =
2222
PAYMENT_GATEWAY_APPLE_PAY_CERTIFICATE_PATH =
2323
PAYMENT_GATEWAY_APPLE_PAY_KEY_PATH =
2424

25-
PAYMENT_GATEWAY_ENABLE_RATE_LIMITER =
25+
PAYMENT_GATEWAY_ENABLE_RATE_LIMITER =
2626
PAYMENT_GATEWAY_LIMIT_SAVED_CARD_RATE =
2727
PAYMENT_GATEWAY_SAVED_CARD_LIMIT_FRAME =
2828

2929
PAYMENT_GATEWAY_DECISION_SYNC =
3030
PAYMENT_GATEWAY_DECISION_MANAGER =
31-
PAYMENT_GATEWAY_RUN_SYNC =
32-
PAYMENT_GATEWAY_DECISION_SYNC_MULTI_MID =
31+
PAYMENT_GATEWAY_RUN_SYNC =
32+
PAYMENT_GATEWAY_DECISION_SYNC_MULTI_MID =
33+
PAYMENT_GATEWAY_NETWORK_TOKEN_MULTI_MID =
3334

3435
PAYMENT_GATEWAY_SERVERLESS_DEPLOYMENT =
35-
AWS_ENABLE_LOGS =
36-
AWS_ACCESS_KEY_ID =
37-
AWS_SECRET_ACCESS_KEY =
38-
AWS_REGION =
3936
FUNCTIONS_HTTPWORKER_PORT =
40-
AZURE_CONTAINER_URL =
41-
AZURE_ENABLE_LOGS =
4237

4338
CT_PROJECT_KEY =
4439
CT_CLIENT_ID =

.eslintrc.json

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,15 @@
55
"env": { "es6": true },
66
"ignorePatterns": ["node_modules", "build", "coverage"],
77
"plugins": ["import", "eslint-comments", "functional"],
8-
"extends": [
9-
"eslint:recommended",
10-
"plugin:eslint-comments/recommended",
11-
"plugin:@typescript-eslint/recommended",
12-
"plugin:import/typescript",
13-
"plugin:functional/lite",
14-
"prettier",
15-
"prettier/@typescript-eslint"
16-
],
8+
"extends": ["eslint:recommended", "plugin:eslint-comments/recommended", "plugin:@typescript-eslint/recommended", "plugin:import/typescript", "prettier", "prettier/@typescript-eslint"],
179
"globals": { "BigInt": true, "console": true, "WebAssembly": true },
1810
"rules": {
1911
"@typescript-eslint/explicit-module-boundary-types": "off",
20-
"eslint-comments/disable-enable-pair": [
21-
"error",
22-
{ "allowWholeFile": true }
23-
],
12+
"eslint-comments/disable-enable-pair": ["error", { "allowWholeFile": true }],
2413
"eslint-comments/no-unused-disable": "error",
25-
"import/order": [
26-
"error",
27-
{ "newlines-between": "always", "alphabetize": { "order": "asc" } }
28-
],
29-
"sort-imports": [
30-
"error",
31-
{ "ignoreDeclarationSort": true, "ignoreCase": true }
32-
]
14+
"import/order": ["error", { "newlines-between": "always", "alphabetize": { "order": "asc" } }],
15+
"sort-imports": ["error", { "ignoreDeclarationSort": true, "ignoreCase": true }],
16+
"prefer-const": "off",
17+
"@typescript-eslint/no-explicit-any": "off"
3318
}
3419
}

.slsignore

Lines changed: 0 additions & 18 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16-alpine3.14
1+
FROM --platform=linux/amd64 node:18
22

33
WORKDIR /app
44
COPY . /app

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,18 @@ Commercetools Cybersource Extension provides payment services based integration
66
- [Overview](#overview)
77
- [Extension](#Extension)
88

9-
109
## Supported features
11-
- Cybersource based payment methods like Credit Card, 3D Secure, Visa Click to Pay, Google Pay, eCheck & Apple Pay.
10+
- Cybersource based payment methods like Card Payment, 3D Secure, Visa Click to Pay, Google Pay, eCheck & Apple Pay.
1211
- [Tokenization](./docs/Tokenization.md) to create, update and delete a card token.
1312
- [Refunding](./docs/Refund-a-Payment.md) a payment back to the merchant.
1413
- Authorization [Cancellation](./docs/Reverse-a-Payment.md) on a payment that has not yet been captured.
1514
- [Manual capture](./docs/Capture-a-Payment.md) of a payment.
1615
- [Synchronize payments](./docs/Synchronizing-Payments.md) for synchronizing the missing transactions and fraud transactions based on the decision taken by the merchant.
16+
- [Network Tokens](./docs/Network-Tokens.md) for updating the customer tokens through Webhook notifications
1717

1818
## Overview
1919
This repository contains one standalone module that interact with Commercetools and Cybersource.
2020

21-
2221
![Architecture](./docs/images/High-Level-Architecture.svg)
2322

2423
1. Front end can be any module which is supported by Commercetools. Refer [create payment](./docs/Creating-a-Payment.md) to know more about the fields that needs to be passed when a payment is created for each of the payment method.

0 commit comments

Comments
 (0)