Skip to content

Commit 3033719

Browse files
authored
Merge pull request #18 from cybersource-tpi/master
24.3.0 upgrade (#53)
2 parents 93bf46e + 1be6d19 commit 3033719

176 files changed

Lines changed: 27614 additions & 8005 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.

.env

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ 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

12+
1213
PAYMENT_GATEWAY_TARGET_ORIGINS =
1314
PAYMENT_GATEWAY_VERIFICATION_KEY =
1415
PAYMENT_GATEWAY_CC_ALLOWED_CARD_NETWORKS =
@@ -23,7 +24,7 @@ PAYMENT_GATEWAY_APPLE_PAY_CERTIFICATE_PATH =
2324
PAYMENT_GATEWAY_APPLE_PAY_KEY_PATH =
2425

2526
PAYMENT_GATEWAY_ENABLE_RATE_LIMITER =
26-
PAYMENT_GATEWAY_LIMIT_SAVED_CARD_RATE =
27+
PAYMENT_GATEWAY_LIMIT_SAVED_CARD_RATE =
2728
PAYMENT_GATEWAY_SAVED_CARD_LIMIT_FRAME =
2829

2930
PAYMENT_GATEWAY_DECISION_SYNC =
@@ -32,11 +33,20 @@ PAYMENT_GATEWAY_RUN_SYNC =
3233
PAYMENT_GATEWAY_DECISION_SYNC_MULTI_MID =
3334
PAYMENT_GATEWAY_NETWORK_TOKEN_MULTI_MID =
3435

35-
PAYMENT_GATEWAY_SERVERLESS_DEPLOYMENT =
36+
37+
PAYMENT_GATEWAY_UC_ALLOWED_PAYMENTS =
38+
PAYMENT_GATEWAY_UC_BILLING_TYPE =
39+
PAYMENT_GATEWAY_UC_ENABLE_PHONE =
40+
PAYMENT_GATEWAY_UC_ENABLE_EMAIL =
41+
PAYMENT_GATEWAY_UC_ENABLE_NETWORK_ICONS =
42+
PAYMENT_GATEWAY_UC_ENABLE_SHIPPING =
43+
PAYMENT_GATEWAY_UC_ALLOWED_SHIP_TO_COUNTRIES =
44+
45+
PAYMENT_GATEWAY_SERVERLESS_DEPLOYMENT =
3646
FUNCTIONS_HTTPWORKER_PORT =
3747

3848
CT_PROJECT_KEY =
3949
CT_CLIENT_ID =
4050
CT_CLIENT_SECRET =
4151
CT_AUTH_HOST =
42-
CT_API_HOST =
52+
CT_API_HOST =

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ src/**.js
88
coverage
99
*.log
1010
yarn.lock
11-
.DS_Store

docs/API-Extension-Setup.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Variables that begin with 'CT' prefix are Commercetools project specific propert
2424
| PAYMENT_GATEWAY_MERCHANT_SECRET_KEY | Value of a Cybersource shared secret key to be used for HTTP Signature authentication | Created in [key-Creation\#Cybersource](key-Creation.md#Cybersource). |
2525
| PAYMENT_GATEWAY_TARGET_ORIGINS | Base URLs where your frontend will be accessible | Used for Card payment method. Comma separated value without any spaces |
2626
| PAYMENT_GATEWAY_VERIFICATION_KEY | Used to check Flex tokens for tampering | Use <b>Openssl -rand64 32 </b>command to generate verification key |
27-
| PAYMENT_GATEWAY_CC_ALLOWED_CARD_NETWORKS | csv(comma separated value) of the card networks | If not specified extension will support all the card networks(VISA, MASTERCARD, AMEX, DISCOVER, MAESTRO, CUP, JCB, CARTESBANCAIRES & DINERSCLUB) by default. Case sensitive. Accepts block letters only without any spaces – eg: VISA,AMEX |
27+
| PAYMENT_GATEWAY_CC_ALLOWED_CARD_NETWORKS | csv(comma separated value) of the card networks | If not specified extension will support all the card networks(VISA, MASTERCARD, AMEX, DISCOVER, MAESTRO, CUP, JCB, CARTESBANCAIRES & DINERSCLUB) by default. In case of Unified Checkout it will support(VISA, MASTERCARD, AMEX) by default. Case sensitive. Accepts block letters only without any spaces – eg: VISA,AMEX |
2828
| PAYMENT_GATEWAY_3DS_RETURN_URL | URL that the issuing bank will redirect to the customer for Payer Authentication | Required if payment.paymentMethodInfo.method is creditCardWithPayerAuthentication |
2929
| PAYMENT_GATEWAY_SCA_CHALLENGE | Boolean value - true or false | Flag to force Strong consumer authentication challenge while saving a card using Payer Authentication. Case sensitive |
3030
| PAYMENT_GATEWAY_ORDER_RECONCILIATION | Boolean value - true or false | Flag for enabling or disabling Order reconciliation to indicate whether reconciliation Id to be passed in sale, capture and refund transactions. Case sensitive. The Cybersource-Commercetools Extension will consider order number as the reconciliation id if available. The order number from Commercetools should be numeric/alpha-numeric string to reflect in Cybersource |
@@ -41,6 +41,13 @@ Variables that begin with 'CT' prefix are Commercetools project specific propert
4141
| PAYMENT_GATEWAY_RUN_SYNC | Boolean value - true or false | Flag for enabling or disabling Run sync. Case sensitive |
4242
| PAYMENT_GATEWAY_DECISION_SYNC_MULTI_MID | csv(comma separated value) of merchant Ids. | Merchant Ids in which Decision sync should be enabled. Provide the exact merchant Id as it is without any spaces |
4343
| PAYMENT_GATEWAY_NETWORK_TOKEN_MULTI_MID | csv(comma separated value) of merchant Ids. | Merchant Ids in which Webhook Subscription to be created. Provide the exact merchant Id as it is without any spaces |
44+
| PAYMENT_GATEWAY_UC_ALLOWED_PAYMENTS | csv(comma separated value) of payment types. | If not specified extension will support following payment types(PANENTRY, SRC, & GOOGLEPAY) by default. Case sensitive. Accepts block letters only without any spaces – eg: PANENTRY,GOOGLEPAY |
45+
| PAYMENT_GATEWAY_UC_BILLING_TYPE | csv(comma separated value) of billing type. | Provide `FULL` ,`PARTIAL` or `NONE` to indicate level of address details required to be captured from Unified Checkout form. If the value is `FULL`, the form request the complete address from the USER. If the value is `PARTIAL`, the form will ask for only the necessary address details and if `NONE` no address details will be requested. Case sensitive. Accepts block letters only without any spaces – eg: FULL,PARTIAL |
46+
| PAYMENT_GATEWAY_UC_ENABLE_PHONE | Boolean value - true or false. | Flag for indicating Phone number to be requested from the Unified Checkout form |
47+
| PAYMENT_GATEWAY_UC_ENABLE_EMAIL | Boolean value - true or false | Flag for indicating Email to be requested from the Unified Checkout form |
48+
| PAYMENT_GATEWAY_UC_ENABLE_NETWORK_ICONS | Boolean value - true or false | Flag for enabling or disabling Network Icons in the Unified Checkout form |
49+
| PAYMENT_GATEWAY_UC_ENABLE_SHIPPING | Boolean value - true or false | Flag for indicating Shipping Address to be requested from the Unified Checkout form |
50+
| PAYMENT_GATEWAY_UC_ALLOWED_SHIP_TO_COUNTRIES | csv(comma separated value) of shipping countries. | List of countries available to ship to. Use the two- character ISO Standard Country Codes. |
4451
| PAYMENT_GATEWAY_SERVERLESS_DEPLOYMENT | aws or azure | Provide `aws` or `azure` to support serverless deployment. If the value is `aws`, it will consider AWS deployment. If the value is `azure`, it will consider Azure deployment. Case sensitive. |
4552
| FUNCTIONS_HTTPWORKER_PORT | Port to listen on for HTTPS requests | Required when extension is hosted on Azure function |
4653
| CT_PROJECT_KEY | Project key for your Commercetools project | Created in [key-Creation#Commercetools](key-Creation#commercetools) |
@@ -125,4 +132,4 @@ The steps involved in deploying the Cybersource-Commercetools Extension in devel
125132

126133
Unit tests can be executed with the following command
127134

128-
npm run cov
135+
npm run cov

docs/unified-checkout/Flow-Diagram-UnifiedCheckout.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)