File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 5
5
.DS_Store
6
6
.vscode
7
7
.idea
8
+ .connect
8
9
build /
9
10
processor /.env
10
11
processor /junit-report.xml
Original file line number Diff line number Diff line change @@ -8,15 +8,10 @@ import { getAccessToken } from '../commercetools/auth.commercetools';
8
8
9
9
export const createExtensionAndCustomFields = async ( extensionUrl : string ) : Promise < void > => {
10
10
const response = await getAccessToken ( ) ;
11
- try {
12
- await createPaymentExtension ( extensionUrl , response ?. access_token as string ) ;
13
- await createCustomPaymentType ( ) ;
14
- await createCustomPaymentInterfaceInteractionType ( ) ;
15
- await createCustomTransactionType ( ) ;
16
- } catch ( error ) {
17
- const errorMessage = error instanceof Error ? error . message : 'Unknown error' ;
18
- throw new Error ( `Failed to create extension and custom fields: ${ errorMessage } ` ) ;
19
- }
11
+ await createPaymentExtension ( extensionUrl , response ?. access_token as string ) ;
12
+ await createCustomPaymentType ( ) ;
13
+ await createCustomPaymentInterfaceInteractionType ( ) ;
14
+ await createCustomTransactionType ( ) ;
20
15
} ;
21
16
22
17
export const removeExtension = async ( ) : Promise < void > => {
You can’t perform that action at this time.
0 commit comments