Transaction API 将于 2023 年 5 月 3 日弃用,在此之前,会话操作将于 2023 年 6 月 13 日停用。如需了解详情,请参阅
对话型 Action 停用。
MerchantPaymentMethod
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
字段 |
paymentMethodGroup |
string
可选。付款方式所属的群组 / 付款资料名称。
|
paymentMethodId |
string
必需。从商家 / 操作传递的付款方式 ID。请注意,如果商家/操作发送了多种付款方式,则此 ID 应是唯一的。
|
paymentMethodDisplayInfo |
object (PaymentMethodDisplayInfo )
必需。显示此付款方式的信息。
|
paymentMethodStatus |
object (PaymentMethodStatus )
可选。付款方式的状态。如果未出现此字段,系统会假定付款方式处于正常状态。
|
PaymentMethodStatus
JSON 表示法 |
{
"status": enum (Status ),
"statusMessage": string
} |
字段 |
status |
enum (Status )
|
statusMessage |
string
向用户显示的有关付款方式状态(即“已过期”)的消息。仅当付款方式需要修正或不适用时,才需要指定此属性。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe \u003ccode\u003eMerchantPaymentMethod\u003c/code\u003e object represents a payment method provided by a merchant or action, including details like ID, display information, and status.\u003c/p\u003e\n"],["\u003cp\u003eEach payment method has a unique ID (\u003ccode\u003epaymentMethodId\u003c/code\u003e) and can belong to a group (\u003ccode\u003epaymentMethodGroup\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePaymentMethodDisplayInfo\u003c/code\u003e provides display details for the payment method.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePaymentMethodStatus\u003c/code\u003e indicates the current status of the payment method, including a user-facing message if needed.\u003c/p\u003e\n"]]],["Merchants/Actions provide payment methods, each with a unique `paymentMethodId`. Each method includes display information (`paymentMethodDisplayInfo`) and an optional status (`paymentMethodStatus`). The `paymentMethodStatus` object details the payment method's state using an enum `status` and a `statusMessage` for issues like expiration. The `paymentMethodGroup` field is used to categorize payment method. If the status is not present, it's assumed to be \"OK\".\n"],null,["# MerchantPaymentMethod\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [PaymentMethodStatus](#PaymentMethodStatus)\n - [JSON representation](#PaymentMethodStatus.SCHEMA_REPRESENTATION)\n\nPayment method provided by Merchant / Action.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"paymentMethodGroup\": string, \"paymentMethodId\": string, \"paymentMethodDisplayInfo\": { object (/assistant/df-asdk/transactions/reference/physical/rest/v3/Order#PaymentMethodDisplayInfo) }, \"paymentMethodStatus\": { object (/assistant/df-asdk/transactions/reference/physical/rest/v3/MerchantPaymentMethod#PaymentMethodStatus) } } ``` |\n\n| Fields ||\n|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `paymentMethodGroup` | `string` Optional. The group / profile name that the payment method belongs to. |\n| `paymentMethodId` | `string` Required. Id of the payment method passed from merchant / action. Note this id is should be unique if multiple payment methods are sent from Merchant/Action. |\n| `paymentMethodDisplayInfo` | `object (`[PaymentMethodDisplayInfo](/assistant/df-asdk/transactions/reference/physical/rest/v3/Order#PaymentMethodDisplayInfo)`)` Required. Display info of this payment method. |\n| `paymentMethodStatus` | `object (`[PaymentMethodStatus](/assistant/df-asdk/transactions/reference/physical/rest/v3/MerchantPaymentMethod#PaymentMethodStatus)`)` Optional. Status of the payment method. If not present, the payment method is assumed to be in OK status. |\n\nPaymentMethodStatus\n-------------------\n\nStatus of a payment method\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"status\": enum (/assistant/df-asdk/transactions/reference/physical/rest/v3/Status), \"statusMessage\": string } ``` |\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `status` | `enum (`[Status](/assistant/df-asdk/transactions/reference/physical/rest/v3/Status)`)` |\n| `statusMessage` | `string` User facing message regarding the payment method status, i.e. \"Expired\". Only required when payment method requires fix or is inapplicable. |"]]