Skip to content

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

Merged
merged 3 commits into from
Apr 18, 2025
Merged

Conversation

Matejk00
Copy link
Contributor

Closes: CXPA-9706

@Matejk00 Matejk00 requested review from a team as code owners April 10, 2025 13:16
@@ -64,6 +66,7 @@ export class OpfB2bCheckoutPaymentTypeComponent
protected poNumberInputElement: ElementRef<HTMLInputElement>;

protected busy$ = new BehaviorSubject<boolean>(false);
protected opfPaymentFacade = inject(OpfPaymentFacade);
Copy link
Contributor

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

Copy link
Contributor Author

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],
Copy link
Contributor

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

Copy link
Contributor Author

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);
Copy link
Contributor

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.

@Matejk00 Matejk00 requested a review from rmch91 April 17, 2025 09:43
@Matejk00 Matejk00 merged commit f2d574b into epic/opf-b2b Apr 18, 2025
8 of 10 checks passed
@Matejk00 Matejk00 deleted the feature/CXSPA-9706 branch April 18, 2025 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants