Skip to content

Commit 3eb6002

Browse files
authored
Merge pull request #13 from cybersource-tpi/master
23.3.0
2 parents fa6fb44 + 977e1ce commit 3eb6002

118 files changed

Lines changed: 5812 additions & 3108 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.

.cspell.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json",
44
"language": "en",
55
"words": [
6-
"bitjson",
76
"bitauth",
7+
"bitjson",
88
"cimg",
99
"circleci",
1010
"codecov",
11+
"Commercetools",
1112
"commitlint",
13+
"Cybersource",
1214
"dependabot",
1315
"editorconfig",
1416
"esnext",

.env

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

3-
PAYMENT_GATEWAY_EXTENSION_DESTINATION_URL =
4-
PAYMENT_GATEWAY_EXTENSION_HEADER_VALUE =
3+
PAYMENT_GATEWAY_EXTENSION_DESTINATION_URL =
4+
PAYMENT_GATEWAY_EXTENSION_HEADER_VALUE =
5+
PAYMENT_GATEWAY_RUN_ENVIRONMENT =
6+
PAYMENT_GATEWAY_ENABLE_DEBUG =
57

6-
PAYMENT_GATEWAY_MERCHANT_ID =
7-
PAYMENT_GATEWAY_MERCHANT_KEY_ID =
8-
PAYMENT_GATEWAY_MERCHANT_SECRET_KEY =
8+
PAYMENT_GATEWAY_MERCHANT_ID =
9+
PAYMENT_GATEWAY_MERCHANT_KEY_ID =
10+
PAYMENT_GATEWAY_MERCHANT_SECRET_KEY =
911

10-
PAYMENT_GATEWAY_RUN_ENVIRONMENT =
11-
PAYMENT_GATEWAY_SCA_CHALLENGE =
12+
PAYMENT_GATEWAY_TARGET_ORIGINS =
13+
PAYMENT_GATEWAY_VERIFICATION_KEY =
14+
PAYMENT_GATEWAY_CC_ALLOWED_CARD_NETWORKS =
15+
PAYMENT_GATEWAY_3DS_RETURN_URL =
16+
PAYMENT_GATEWAY_SCA_CHALLENGE =
1217
PAYMENT_GATEWAY_ORDER_RECONCILIATION =
13-
PAYMENT_GATEWAY_TARGET_ORIGIN =
14-
PAYMENT_GATEWAY_VERIFICATION_KEY =
15-
PAYMENT_GATEWAY_3DS_RETURN_URL =
16-
PAYMENT_GATEWAY_ENABLE_DEBUG =
18+
PAYMENT_GATEWAY_WHITELIST_URLS =
1719

20+
PAYMENT_GATEWAY_APPLE_PAY_DOMAIN_NAME =
1821
PAYMENT_GATEWAY_APPLE_PAY_MERCHANT_ID =
1922
PAYMENT_GATEWAY_APPLE_PAY_CERTIFICATE_PATH =
2023
PAYMENT_GATEWAY_APPLE_PAY_KEY_PATH =
@@ -24,15 +27,18 @@ PAYMENT_GATEWAY_LIMIT_SAVED_CARD_RATE =
2427
PAYMENT_GATEWAY_SAVED_CARD_LIMIT_FRAME =
2528

2629
PAYMENT_GATEWAY_DECISION_SYNC =
27-
PAYMENT_GATEWAY_DECISION_MANAGER =
30+
PAYMENT_GATEWAY_DECISION_MANAGER =
2831
PAYMENT_GATEWAY_RUN_SYNC =
2932
PAYMENT_GATEWAY_DECISION_SYNC_MULTI_MID =
3033

31-
AWS_ACCESS_KEY_ID =
32-
AWS_SECRET_ACCESS_KEY =
33-
AWS_REGION =
34-
PAYMENT_GATEWAY_ENABLE_CLOUD_LOGS =
35-
PAYMENT_GATEWAY_ENABLE_SERVERLESS_DEPLOYMENT =
34+
PAYMENT_GATEWAY_SERVERLESS_DEPLOYMENT =
35+
AWS_ENABLE_LOGS =
36+
AWS_ACCESS_KEY_ID =
37+
AWS_SECRET_ACCESS_KEY =
38+
AWS_REGION =
39+
FUNCTIONS_HTTPWORKER_PORT =
40+
AZURE_CONTAINER_URL =
41+
AZURE_ENABLE_LOGS =
3642

3743
CT_PROJECT_KEY =
3844
CT_CLIENT_ID =

.slsignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
README.md
2+
docs/**
3+
src/unit-tests/**
4+
ctExtension.zip
5+
node_modules/@ava/**
6+
node_modules/ava/**
7+
node_modules/chai/**
8+
node_modules/chai-as-promised/**
9+
node_modules/chokidar/**
10+
node_modules/dir-archiver/**
11+
node_modules/pinkie/**
12+
node_modules/pinkie-promise/**
13+
node_modules/run-func/**
14+
node_modules/serverless/**
15+
node_modules/validate-npm-package-license/**
16+
node_modules/validate-npm-package-name/**
17+
node_modules/vscode-uri/**
18+
node_modules/zip-stream/**

README.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Commercetools Cybersource Plugin
1+
# Commercetools Cybersource Extension
22

3-
Commercetools Cybersource plugin provides payment services based integration between the Commercetools and Cybersource PSP.
3+
Commercetools Cybersource Extension provides payment services based integration between the Commercetools and Cybersource PSP.
44

55
- [Supported features](#supported-features)
66
- [Overview](#overview)
7-
- [Plugin](#plugin)
7+
- [Extension](#Extension)
88

99

1010
## Supported features
11-
- Cybersource based payment methods like Credit Card, 3D Secure, Visa Click to Pay, Google Pay & Apple Pay.
11+
- Cybersource based payment methods like Credit Card, 3D Secure, Visa Click to Pay, Google Pay, eCheck & Apple Pay.
1212
- [Tokenization](./docs/Tokenization.md) to create, update and delete a card token.
1313
- [Refunding](./docs/Refund-a-Payment.md) a payment back to the merchant.
1414
- Authorization [Cancellation](./docs/Reverse-a-Payment.md) on a payment that has not yet been captured.
@@ -22,19 +22,15 @@ This repository contains one standalone module that interact with Commercetools
2222
![Architecture](./docs/images/High-Level-Architecture.svg)
2323

2424
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.
25-
2. With help of the [Commercetools HTTP API Extensions](https://docs.commercetools.com/api/projects/api-extensions), provided payment data is sent to the plugin.
26-
3. The plugin authenticates and processes provided payload passed by the front end, exchanges it with Cybersource API, and provides **Synchronous** response back to the Commercetools caller. Based on the result, front end either creates an order or continues with further payment steps.
25+
2. With help of the [Commercetools HTTP API Extensions](https://docs.commercetools.com/api/projects/api-extensions), provided payment data is sent to the Extension.
26+
3. The Extension authenticates and processes provided payload passed by the front end, exchanges it with Cybersource API and provides **Synchronous** response back to the Commercetools caller. Based on the result, front end either creates an order or continues with further payment steps.
2727
Note that order creations or modifications should be part of the front end business logic.
2828

29-
Please see the [Overview](./docs/Overview.md) for a high-level overview of the plugin.
29+
Please see the [Overview](./docs/Overview.md) for a high-level overview of the Extension.
3030

31-
## Plugin
31+
## Extension
3232

33-
The plugin is a publicly exposed service that acts as a middleware between the Commercetools platform and Cybersource. Once [Commercetools HTTP API Extensions](https://docs.commercetools.com/api/projects/api-extensions) is [configured](./docs/API-Extension-Setup.md#a-namerunningscriptarunning-extension-setup-script) to call Cybersource plugin, for every payment create or update request and customer update request, a Cybersource plugin will be remotely called by the Commercetools platform.
33+
The Extension is a publicly exposed service that acts as a middleware between the Commercetools platform and Cybersource. Once [Commercetools HTTP API Extensions](https://docs.commercetools.com/api/projects/api-extensions) is [configured](./docs/API-Extension-Setup.md#a-namerunningscriptarunning-extension-setup-script) to call Cybersource Extension, for every payment create or update request and customer update request, a Cybersource Extension will be remotely called by the Commercetools platform.
3434

35-
- Follow [Setup Guide](./docs/Setup.md) for getting started with the integration of Commercetools with the plugin.
36-
- Follow [Usage Guide](./docs/Usage.md) to see more information about the payment services.
37-
38-
## Network Capability
39-
40-
By accepting this document, you acknowledge and accept that you are responsible for and assume liability for the functionality, maintenance and availability of your software and network. At all times, it is your responsibility to ensure the accuracy, technical sufficiency and functionality of your software, network, plug-ins, configurations, applications, code, application program interfaces (APIs), software development kits and all other technology (“Your Network”). You are responsible for Your Network’s ability to use and/or access the Cybersource network, any Cybersource API and receive the benefit of Cybersource’s services. You are responsible for all costs, fees, expenses and liabilities associated with Your Network’s ability to access and interface with the Cybersource network and receive the benefit of Cybersource’s services. Cybersource will not be responsible or liable for loss or costs associated with or that results from Your Network’s inability to connect to or process transactions on the Cybersource network.
35+
- Follow [Setup Guide](./docs/Setup.md) for getting started with the integration of Commercetools with the Extension.
36+
- Follow [Usage Guide](./docs/Usage.md) to see more information about the payment services.

ct-azureFunction/function.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"bindings": [
3+
{
4+
"type": "httpTrigger",
5+
"authLevel": "anonymous",
6+
"direction": "in",
7+
"name": "req",
8+
"methods": ["get", "post"],
9+
"route":"{*route}"
10+
},
11+
12+
{
13+
"type": "http",
14+
"direction": "out",
15+
"name": "res"
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)