交易 API 將於 2023 年 5 月 3 日淘汰,並將於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
MerchantPaymentOption
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"merchantPaymentMethod": [
{
object (MerchantPaymentMethod )
}
],
"defaultMerchantPaymentMethodId": string,
"managePaymentMethodUrl": string
} |
欄位 |
merchantPaymentMethod[] |
object (MerchantPaymentMethod )
必要欄位。操作/商家提供的付款方式清單。
|
defaultMerchantPaymentMethodId |
string
選用設定。預設付款方式的 ID (如果有的話)。
|
managePaymentMethodUrl |
string
選用設定。用於管理付款方式的動作/商家網站連結。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eTransaction functionalities for Conversational Actions are unavailable in Denmark, France, Germany, Italy, the Netherlands, Norway, Poland, Spain, and Sweden due to regulatory changes.\u003c/p\u003e\n"],["\u003cp\u003eThe Actions on Google Orders API enables developers to manage transactions for physical goods within their Actions.\u003c/p\u003e\n"],["\u003cp\u003eUsing the Orders API requires OAuth 2.0 authentication with a user token authorized for the \u003ccode\u003ehttps://www.googleapis.com/auth/actions.order\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eA JSON payload example demonstrates the structure of an order containing details like buyer information, merchant details, items, pricing, and fulfillment information.\u003c/p\u003e\n"]]],["The core content details the JSON structure for merchant-provided payment methods. It specifies a required `merchantPaymentMethod` array, which contains a list of payment methods. An optional `defaultMerchantPaymentMethodId` can identify the preferred method. An optional `managePaymentMethodUrl` provides a link to the merchant's website for users to handle their payment options. This structure is essential for defining the available payment choices within a transaction.\n"],null,["# MerchantPaymentOption\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRequirements for Merchant-provided payment method.\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"merchantPaymentMethod\": [ { object (/assistant/df-asdk/transactions/reference/physical/rest/v3/MerchantPaymentMethod) } ], \"defaultMerchantPaymentMethodId\": string, \"managePaymentMethodUrl\": string } ``` |\n\n| Fields ||\n|----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `merchantPaymentMethod[]` | `object (`[MerchantPaymentMethod](/assistant/df-asdk/transactions/reference/physical/rest/v3/MerchantPaymentMethod)`)` Required. List of payment methods provided by Action/Merchant. |\n| `defaultMerchantPaymentMethodId` | `string` Optional. Id of the default payment method, if any. |\n| `managePaymentMethodUrl` | `string` Optional. A link to the action/merchant website for managing payment method. |"]]