Rename redirect_url
to store_url
in the state parameter
#2396
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.
Changes proposed in this Pull Request:
Part of #2146, this PR renames
redirect_url
tostore_url
, so it will not be confused withredirect_uri
.The
store_url
is merchant's store URL, which Google will help redirect to after the OAuth2 flow is completed.Note that after the PR is merged we also need to update the internal document about the new parameter name.
Internal doc link: PCYsg-Ypu-p2
Screenshots:
Detailed test instructions:
Prerequisite
add_filter( 'woocommerce_gla_notifications_enabled', '__return_true' )
.gla_wpcom_rest_api_status
is not in the DB.Test steps
Enable
new product sync from the top-left banner.state
parameter, which is base64 encoded.store_url
paramAdditional details:
Changelog entry