-
Notifications
You must be signed in to change notification settings - Fork 395
feat: add setting up b2b payment option id #20168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -64,6 +66,7 @@ export class OpfB2bCheckoutPaymentTypeComponent | |||
protected poNumberInputElement: ElementRef<HTMLInputElement>; | |||
|
|||
protected busy$ = new BehaviorSubject<boolean>(false); | |||
protected opfPaymentFacade = inject(OpfPaymentFacade); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like it is not used anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
import { facadeProviders } from './facade/facade-providers'; | ||
|
||
@NgModule({ | ||
imports: [], | ||
providers: [...facadeProviders, OpfPaymentConnector], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is OpfPaymentConnector
connects with Opf Api, and OpfPaymentOccConnector
works with OCC
? If yes, can you please add JSdoc to the connectors classes, i think it can be not fully clear especially for person who will look on this for the first time. Maybe it is not worth to add also JSdoc to adapters, so it is clear that it works not with OCC api but with OPF api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, good point. Connectors prefixed with OCC connects directly with the OCC endpoints, another one is calling OPF Commerce Cloud Adapter methods.
}) | ||
.pipe( | ||
catchError((error) => { | ||
throw normalizeHttpError(error, this.logger); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deprecated
since 2211.29 - use tryNormalizeHttpError instead. The normalizeHttpError will be removed from public API together with removing the feature toggle ssrStrictErrorHandlingForHttpAndNgrx.
Closes: CXPA-9706