UrlSettings
Specifications related to the Checkout
URL. The UriTemplate
is of the form https://www.mystore.com/checkout?item_id={id}
where {id}
will be automatically replaced with data from the merchant account with this attribute offerId
JSON representation |
{
// Union field url_template can be only one of the following:
"checkoutUriTemplate": string,
"cartUriTemplate": string
// End of list of possible types for union field url_template .
} |
Fields |
Union field url_template . url_template can be only one of the following:
|
checkoutUriTemplate |
string
URL template when the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart.
|
cartUriTemplate |
string
URL template when the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-25 UTC.
[null,null,["Last updated 2025-02-25 UTC."],[[["The `Checkout` URL directs buyers to the merchant's checkout page with the specified item."],["The URL template uses placeholders that are automatically replaced with the merchant's `offerId`."],["The `checkoutUriTemplate` field provides the URL template for the checkout process."],["The `cartUriTemplate` field (if available) provides the URL template for adding an item to the merchant's cart."]]],["The `Checkout` URL utilizes a `UriTemplate` like `https://www.mystore.com/checkout?item_id={id}`, with `{id}` replaced by the merchant's `offerId`. The `url_template` field, a union type, can be either `checkoutUriTemplate` or `cartUriTemplate`. `checkoutUriTemplate` directs buyers to the checkout page, while `cartUriTemplate` leads to the merchant's cart page, each with the selected item included. Only one of them can be defined.\n"]]