قبل از اینکه بتوانید در برنامه تسویه حساب شرکت کنید، باید اطلاعات خاصی درباره کسب و کار و محصولات خود ارائه دهید. برای استفاده از checkoutSettings باید معیارهای زیر را داشته باشید:
حساب تجاری شما باید در برنامه لیست های رایگان ثبت شود.
رابط کاربری Google Merchant Center را بررسی کنید تا ببینید آیا قبلاً در برنامه لیست های رایگان ثبت نام کرده اید یا خیر. اگر ثبتنام نکردهاید، مراحل ورود به فهرستهای رایگان را تکمیل کنید. از قالب زیر برای URL های پرداخت خود استفاده کنید:
https://mystore.com/path-to-product/{id}
وقتی مشتری روی نشانی اینترنتی تسویه حساب در فهرست رایگان شما کلیک می کند، {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
تاریخ آخرین بهروزرسانی 2025-01-12 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-01-12 بهوقت ساعت هماهنگ جهانی."],[[["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"]]