Skip to content

Commit 42ee292

Browse files
authored
25.2.1
Disable Card Bin Code Quality improvement by reducing code duplication Implemented standardized error formatting with appropriate details
2 parents 7f29697 + 4a12001 commit 42ee292

69 files changed

Lines changed: 3501 additions & 514 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.

docs/AWS-Serverless-Deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Replace value of
4444
4545
## Loggers in AWS Cloudwatch
4646

47-
In order to see the extension logs in Cloudwatch, console.log statement can be added inside the function `logData` in PaymentUtils.ts file.
47+
In order to see the extension logs in Cloudwatch, console.log statement can be added inside the `logData` function in PaymentUtils.ts file for general logs, and inside the `logError` function in ErrorHandler.ts file for Error logs.
4848

4949
## Steps to Deploy Extension on AWS Lambda
5050

docs/Azure-Serverless-Deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Your application is now available at `https://<Globally_Unique_Function_App_Name
5959

6060
## Loggers in Azure
6161

62-
- In order to see the extension logs, add a console.log statement inside the `logData` function in PaymentUtils.ts file. The logs can be found in your Azure Function, under `Monitoring` --> `Log Stream`
62+
- In order to see the extension logs in Cloudwatch, console.log statement can be added inside the `logData` function in PaymentUtils.ts file for general logs, and inside the `logError` function in ErrorHandler.ts file for Error logs. The logs can be found in your Azure Function, under `Monitoring` --> `Log Stream`
6363
> **_NOTE:_** Logs displayed here will not be stored permanently
6464
6565
## Modifying Environment Variables

docs/Docker-Container-in-AWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ DNS name will available in AWS console under respective LoadBalancer details in
140140

141141
You can see all your logs in AWS Cloudwatch, for that you need to perform below steps.
142142

143-
- Before you could create the image of the extension, the `logData` function in paymentUtils.ts file should be updated with console.log statements, which will log the extension logs properly
143+
- Before you could create the image of the extension, the `logData` function in PaymentUtils.ts file and the `logError` function in ErrorHandler.ts should be updated with console.log statements, which will log the extension logs properly
144144

145145
## Troubleshoot
146146
- When using `docker compose up` command, if you get the following error `pulling from host <accountId>.dkr.ecr.<region>.amazonaws.com failed with status code [manifests latest]: 403 Forbidden`, it means that authentication is expired. Refer [Authenticate-to-default-registry](#step-2-authenticate-the-docker-cli-to-your-default-registry) to authenticate again.

docs/Docker-Container-in-Azure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Once `deploy-aci.yaml` is ready with all the values, navigate to the directory w
132132

133133
## Loggers
134134

135-
- In order to see the extension logs, add a console.log statement inside the `logData` function in PaymentUtils.ts file before you could create the image. Logs generated by extension can be found under Monitoring --> Logs
135+
- In order to see the extension logs, console.log statement can be added inside the `logData` function in PaymentUtils.ts file for general logs, and inside the `logError` function in ErrorHandler.ts file for Error logs before you could create the image. Logs generated by extension can be found under Monitoring --> Logs
136136

137137
## Troubleshooting
138138

docs/Process-a-Card-Payment-With-Payer-Authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ After authentication is complete, authorization of the payment can then be tri
8484
| ------------------------------------- | ------------------------------ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8585
| custom.fields.isv_token | Cybersource flex token | See notes | This is the token parameter passed into the callback for the microform.createToken call <br><br> Required when not using a saved token |
8686
| custom.fields.isv_tokenAlias | Alias for saved token | No | When this is specified the token will be saved as a subscription for later use. Merchant can either provide a input text field asking for the customer to provide value for this field or a checkbox to select if the token needs be saved as a subscription for later use. In the latter case, Merchant should provide a unique value for `isv_tokenAlias` upon selecting the checkbox |
87-
| custom.fields.isv_maskedPan | Masked Card number | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.number.bin + flexData.content.paymentInformation.card.number.maskedValue` field containing the masked card number <br><br> Not required by the extension but used for display |
87+
| custom.fields.isv_maskedPan | Masked Card number | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.number.maskedValue` field containing the masked card number <br><br> Not required by the extension but used for display |
8888
| custom.fields.isv_cardType | Card type | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.number.detectedCardTypes[0]` field containing the card type <br><br> Not required by the extension but used for display |
8989
| custom.fields.isv_cardExpiryMonth | Card expiry month | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.expirationMonth.value` field containing the card type <br><br> Not required by the extension but used for display |
9090
| custom.fields.isv_cardExpiryYear | Card expiry year | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.expirationYear.value` field containing the card type <br><br> Not required by the extension but used for display |

docs/Process-a-Card-Payment-Without-Payer-Authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Processing of a payment is triggered by adding an initial transaction to a Comme
8181
| ------------------------------------- | ------------------------------ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8282
| custom.fields.isv_token | Cybersource flex token | See notes | This is the token parameter passed into the callback for the microform.createToken call <br><br> Required when not using a saved token |
8383
| custom.fields.isv_tokenAlias | Alias for saved token | No | When this is passed the token will be saved as a subscription for later use. Merchant can either provide a input text field asking for the customer to provide value for this field or a checkbox to select if the token needs be saved as a subscription for later use. In the latter case, Merchant should provide a unique value for `isv_tokenAlias` upon selecting the checkbox |
84-
| custom.fields.isv_maskedPan | Masked Card number | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.number.bin + flexData.content.paymentInformation.card.number.maskedValue` field containing the masked card number <br><br> Not required by the extension but used for display |
84+
| custom.fields.isv_maskedPan | Masked Card number | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.number.maskedValue` field containing the masked card number <br><br> Not required by the extension but used for display |
8585
| custom.fields.isv_cardType | Card type | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.number.detectedCardTypes[0]` field containing the card type <br><br> Not required by the extension but used for display |
8686
| custom.fields.isv_cardExpiryMonth | Card expiry month | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.expirationMonth.value` field containing the card type <br><br> Not required by the extension but used for display |
8787
| custom.fields.isv_cardExpiryYear | Card expiry year | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.expirationYear.value` field containing the card type <br><br> Not required by the extension but used for display |

docs/Tokenization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Merchant Centre → Customers → Customer list → Select a Customer → Custom
4949
| ------------------------------------- | ------------------------------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
5050
| custom.fields.isv_token | Cybersource flex token | Yes | This is the token parameter passed into the callback for the microform.createToken call |
5151
| custom.fields.isv_tokenAlias | Alias for saved token | Yes | When this is specified the token will be saved as a subscription for later use. Merchant can either provide a input text field asking for the customer to provide value for this field or a checkbox to select if the token needs be saved as a subscription for later use. In the latter case, Merchant should provide a unique value upon selecting the checkbox |
52-
| custom.fields.isv_maskedPan | Masked Card number | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.number.bin + flexData.content.paymentInformation.card.number.maskedValue` field containing the masked card number <br><br> Not required by extension but can be used for display |
52+
| custom.fields.isv_maskedPan | Masked Card number | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.number.maskedValue` field containing the masked card number <br><br> Not required by extension but can be used for display |
5353
| custom.fields.isv_cardType | Card type | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.number.detectedCardTypes[0]` field containing the card type <br><br> Not required by extension but can be used for display |
5454
| custom.fields.isv_cardExpiryMonth | Card expiry month | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.expirationMonth.value` field containing the card expiration month <br><br> Not required by extension but can be used for display |
5555
| custom.fields.isv_cardExpiryYear | Card expiry year | No | Can be obtained from the token parameter passed into the callback for the microform.createToken call. The token is a JWT which when decoded has a `flexData.content.paymentInformation.card.expirationYear.value` field containing the card expiration year <br><br> Not required by extension but can be used for display |

0 commit comments

Comments
 (0)