חשבון המוכר שלכם צריך להיות רשום בתוכנית כרטיסי המוצר החינמיים.
בודקים בממשק המשתמש של Google Merchant Center אם כבר נרשמתם לתוכנית כרטיסי המוצר החינמיים. אם עדיין לא הצטרפתם לתוכנית, עליכם להשלים את השלבים להצטרפות לתוכנית כרטיסי המוצר החינמיים. צריך להשתמש בפורמט הבא לכתובות ה-URL של תהליך התשלום:
https://mystore.com/path-to-product/{id}
כשלקוח לוחץ על כתובת ה-URL לתשלום בכרטיס המוצר החינמי, הערך {id} מוחלף באופן אוטומטי ב-offerId של המוצר.
הוספת כתובת ה-URL של התשלום
אפשר להשתמש ב-freelistingsprogram.checkoutsettings.insert כדי להוסיף או לעדכן את התבנית של כתובת דף התשלום. הקריאה הזו מעדכנת את תבנית כתובת ה-URL של דף התשלום ברמת החשבון, ומפעילה את תכונת התשלום בכל המוצרים התקינים.
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
אפשר להשתמש ב-freelistingsprogram.checkoutsettings.get כדי להציג את כתובת ה-URL הקיימת של תהליך התשלום. get הוא קריאה בלבד, ונדרש merchantId. השיטה get מחזירה את המשאב checkout התואם.
GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/freelistingsprogram/checkoutsettings
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 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"]]