Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ workflows:
- e2e:
filters:
<<: *pull_request_filter
- sdk-on-cdn:
filters:
<<: *pull_request_filter
# - sdk-on-cdn:
# filters:
# <<: *pull_request_filter
- security/scan:
name: "Gitleaks secrets scan"
filters:
Expand Down
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
"sourceTag": "scope:integration",
"onlyDependOnLibsWithTags": ["scope:shared"]
}
],
"checkDynamicDependenciesExceptions": [
"@bigcommerce/checkout/ui"
]
}
],
Expand Down
197 changes: 73 additions & 124 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,13 @@
"prettier": "@bigcommerce/eslint-config/prettier",
"homepage": "https://github.com/bigcommerce/checkout-js#readme",
"dependencies": {
"@bigcommerce/checkout-sdk": "^1.778.0",
"@bigcommerce/checkout-sdk": "github:bigcommerce/checkout-sdk-js#c09e68fc4fb03617a2dcba721efa5fb9c7b6ed81",
"@bigcommerce/citadel": "^2.15.1",
"@bigcommerce/form-poster": "^1.2.2",
"@bigcommerce/memoize": "^1.0.0",
"@bigcommerce/request-sender": "^1.2.4",
"@bigcommerce/script-loader": "^2.2.2",
"@sentry/browser": "^7.11.1",
"@sentry/integrations": "^7.54.0",
"@sentry/browser": "^9.40.0",
"@types/card-validator": "^4.1.0",
"@types/classnames": "^2.2.6",
"@types/credit-card-type": "^7.0.0",
Expand Down Expand Up @@ -102,7 +101,7 @@
"@babel/preset-env": "^7.9.0",
"@bigcommerce/eslint-config": "^2.6.1",
"@bigcommerce/eslint-plugin": "^1.4.0",
"@faker-js/faker": "^6.3.1",
"@faker-js/faker": "^7.6.0",
"@nx/devkit": "19.8.9",
"@nx/eslint": "19.8.9",
"@nx/eslint-plugin": "19.8.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
PaymentInitializeOptions,
PaymentMethod,
} from '@bigcommerce/checkout-sdk';
import { createAdyenV2PaymentStrategy } from '@bigcommerce/checkout-sdk/integrations';
import { act, fireEvent, render, screen } from '@testing-library/react';
import { Formik } from 'formik';
import { noop } from 'lodash';
Expand Down Expand Up @@ -98,6 +99,7 @@ describe('when using Adyen V2 payment', () => {

expect(initializePayment).toHaveBeenCalledWith(
expect.objectContaining({
integrations: [createAdyenV2PaymentStrategy],
adyenv2: {
additionalActionOptions: {
containerId: 'adyen-scheme-additional-action-component-field',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
CardInstrument,
PaymentInitializeOptions,
} from '@bigcommerce/checkout-sdk';
import { createAdyenV2PaymentStrategy } from '@bigcommerce/checkout-sdk/integrations';
import React, { FunctionComponent, useCallback, useRef, useState } from 'react';

import { HostedWidgetComponentProps } from '@bigcommerce/checkout/hosted-widget-integration';
Expand Down Expand Up @@ -107,6 +108,7 @@ const AdyenV2PaymentMethod: FunctionComponent<PaymentMethodProps> = ({

return checkoutService.initializePayment({
...options,
integrations: [createAdyenV2PaymentStrategy],
adyenv2: {
cardVerificationContainerId:
selectedInstrumentId && cardVerificationContainerId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
PaymentInitializeOptions,
PaymentMethod,
} from '@bigcommerce/checkout-sdk';
import { createAdyenV3PaymentStrategy } from '@bigcommerce/checkout-sdk/integrations';
import { act, fireEvent, render, screen } from '@testing-library/react';
import { Formik } from 'formik';
import { noop } from 'lodash';
Expand Down Expand Up @@ -95,6 +96,7 @@ describe('when using AdyenV3 payment', () => {

expect(initializePayment).toHaveBeenCalledWith(
expect.objectContaining({
integrations: [createAdyenV3PaymentStrategy],
adyenv3: {
cardVerificationContainerId: undefined,
containerId: 'adyen-scheme-component-field',
Expand Down
Loading