feat(checkout): CHECKOUT-9820 implement fetching b2b checkout config for PO#3248
Closed
richapatel1510 wants to merge 1 commit into
Closed
feat(checkout): CHECKOUT-9820 implement fetching b2b checkout config for PO#3248richapatel1510 wants to merge 1 commit into
richapatel1510 wants to merge 1 commit into
Conversation
bc-peng
reviewed
May 14, 2026
| bcToken = body.token; | ||
| } | ||
|
|
||
| return this._requestSender.get(`${b2bBaseUrl}/api/v2/store-configs/checkout`, { |
Contributor
There was a problem hiding this comment.
I see, we may not need to do this as PO config may be surfaced at the initializing checkout like extraFields.
Contributor
Author
|
This is not required anymore. Will raise separate PR to get these config from checkoutSettings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What/Why?
Adds a new
loadPoConfig()SDK method (plusgetPoConfig(), isLoadingPoConfig(), getLoadPoConfigError()accessors) so the checkout-jsusePoConfighook can read the B2B store's purchase order (PO) configuration — whether the PO field is enabled, its label, and whether it's required.Fetches from
GET {b2bApiSettings.baseUrl}/api/v2/store-configs/checkout, authenticated with the B2B token from state (with a BC JWT fallback for theauthTokenheader when the B2B token hasn't been loaded yet).Rollout/Rollback
Revert this PR
Testing