Bạn phải cung cấp thông tin cụ thể về doanh nghiệp và sản phẩm của mình thì mới có thể chọn tham gia chương trình thanh toán. Bạn phải đáp ứng các tiêu chí sau để sử dụng checkoutSettings:
Tài khoản người bán của bạn phải đăng ký tham gia chương trình trang thông tin miễn phí.
Kiểm tra giao diện người dùng Google Merchant Center để xem bạn đã đăng ký tham gia chương trình trang thông tin miễn phí hay chưa. Nếu bạn chưa đăng ký, hãy hoàn tất các bước làm quen với trang thông tin miễn phí. Hãy sử dụng
định dạng sau cho URL thanh toán:
https://mystore.com/path-to-product/{id}
Khi khách hàng nhấp vào URL thanh toán trong trang thông tin miễn phí của bạn, {id} sẽ tự động được thay thế bằng offerId của sản phẩm.
Thêm URL thanh toán
Bạn có thể sử dụng freelistingsprogram.checkoutsettings.insert để thêm hoặc cập nhật mẫu URL thanh toán. Lệnh gọi này sẽ cập nhật mẫu URL thanh toán ở cấp tài khoản và chọn tất cả các mặt hàng hợp lệ vào tính năng thanh toán.
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
Bạn có thể sử dụng freelistingsprogram.checkoutsettings.get để xem URL thanh toán hiện có. get chỉ có thể đọc và yêu cầu merchantId. Phương thức get trả về tài nguyên checkout tương ứng.
GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
Xoá URL thanh toán
Bạn có thể xoá URL thanh toán bằng cách sử dụng freelistingsprogram.checkoutsettings.delete.
Thao tác này sẽ chọn không sử dụng tính năng thanh toán cho tất cả mặt hàng của bạn.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["Google is introducing the Merchant API beta, the new version of the Content API for Shopping."],["Use the `checkoutSettings` attribute to add a checkout link directly to your free listings, enhancing the customer shopping experience."],["To utilize `checkoutSettings`, you need an active product feed in Google Merchant Center and be enrolled in the free listings program."],["Implement the checkout feature by adding or updating your checkout URL template using the provided API calls, allowing customers to purchase directly from your free listings."],["Manage your checkout URL by viewing, updating, or removing it via the respective API calls, giving you control over the checkout process for your free listings."]]],["The Merchant API beta, a new version of the Content API for Shopping, is introduced. To use `checkoutSettings` for free listings, users need an active product feed and enrollment in the free listings program. Merchants can add or update their checkout URL templates using `freelistingsprogram.checkoutsettings.insert`, view existing URLs with `get`, and remove them with `delete`. The checkout URL directs customers to a product's checkout page, automatically replacing `{id}` with the product's `offerId`.\n"]]