Skip to content

Commit

Permalink
register service into facade provider
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheFlo committed Jul 25, 2023
1 parent 9659e33 commit 6ee0b34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions integration-libs/opf/base/core/facade/facade-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ import {
OpfPaymentFacade,
} from '@spartacus/opf/base/root';

import { OpfPaymentHostedFieldsService } from '../services/opf-payment-hosted-fields.service';
import { OpfGlobalFunctionsService } from './opf-global-functions.service';
import { OpfOrderService } from './opf-order.service';
import { OpfOtpService } from './opf-otp.service';
import { OpfPaymentService } from './opf-payment.service';

export const facadeProviders: Provider[] = [
OpfPaymentService,
OpfPaymentHostedFieldsService,
OpfOrderService,
OpfOtpService,
OpfGlobalFunctionsService,
Expand Down
4 changes: 1 addition & 3 deletions integration-libs/opf/base/core/facade/opf-payment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
*/

import { Injectable } from '@angular/core';
import { Command, CommandService, WindowRef } from '@spartacus/core';
import { Command, CommandService } from '@spartacus/core';
import {
OpfPaymentFacade,
OpfPaymentVerificationPayload,
OpfPaymentVerificationResponse,
SubmitCompleteInput,
SubmitInput,
} from '@spartacus/opf/base/root';

import { Observable } from 'rxjs';
import { OpfPaymentConnector } from '../connectors/opf-payment.connector';
import { OpfPaymentHostedFieldsService } from '../services/opf-payment-hosted-fields.service';
Expand Down Expand Up @@ -58,7 +57,6 @@ export class OpfPaymentService implements OpfPaymentFacade {
constructor(
protected commandService: CommandService,
protected opfPaymentConnector: OpfPaymentConnector,
protected winRef: WindowRef,
protected opfPaymentHostedFieldsService: OpfPaymentHostedFieldsService
) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import { Injectable } from '@angular/core';
import { ActiveCartFacade } from '@spartacus/cart/base/root';
import {
CommandService,
GlobalMessageService,
RoutingService,
UserIdService,
Expand All @@ -25,9 +24,11 @@ import {
take,
tap,
} from 'rxjs/operators';
import { OpfOrderFacade, OpfOtpFacade } from '../../root/facade';

import {
MerchantCallback,
OpfOrderFacade,
OpfOtpFacade,
OpfPaymentError,
PaymentErrorType,
PaymentMethod,
Expand All @@ -39,15 +40,14 @@ import {
SubmitResponse,
SubmitStatus,
defaultError,
} from '../../root/model';
} from '@spartacus/opf/base/root';
import { OpfPaymentConnector } from '../connectors/opf-payment.connector';
import { OpfPaymentErrorHandlerService } from '../services/opf-payment-error-handler.service';
import { getBrowserInfo } from '../utils/opf-payment-utils';

@Injectable({ providedIn: 'root' })
@Injectable()
export class OpfPaymentHostedFieldsService {
constructor(
protected commandService: CommandService,
protected opfPaymentConnector: OpfPaymentConnector,
protected winRef: WindowRef,
protected opfOtpFacade: OpfOtpFacade,
Expand Down

0 comments on commit 6ee0b34

Please sign in to comment.