设置好网址模板后,您就可以通过以下方式将付款添加到广告位: 完成下列步骤。
- 确定付费广告位
- 设置槽价格
<ph type="x-smartling-placeholder">
- </ph>
- 设置预付款
- 设置缺席或取消费用
- 设置存款
- 必须设置信用卡
1. 确定付费广告位
您可以使用服务 Feed 定义价格,或者 可用性 Feed。通过在服务一级定义价格 您需要设置相应服务或餐厅中的所有可用性空档 有待调整价格而根据价格 为特定广告位设置价格例如,以下 可以通过根据价格或 级别:
- 每周二降价,周六上调。
- 如果空房在下午 5:00 到晚上 7:00 之间,不收取入场费。
- 就人数超过 6 人而言,要求押金。
- 特定客房的预订需要使用信用卡。
2. 设置槽价格
预付
此配置用于指定服务的用量必须是
在预订时全额付款。在库存状况中指定了预付款
通过 Avaibility
Feed 的 payment
字段来执行这一操作。
预付款示例
{ "availability": [{ "merchant_id": "dining-A", "service_id": "reservation", "start_sec": 1535853600, "duration_sec": 2700, "spots_total": 2, "spots_open": 2, "resources": { "room_id": "A-dining-room", "room_name": "Wine Tasting Room", "party_size": 2, "prepayment": { "price_info": { "price": { "price_micros": 200000000, "currency_code": "USD", }, "price_type": "PER_PERSON" } } } }] }
可用性 Feed
message Availability { ... // Optional prepayment information for this availability. Prepayment is only // available through the Payment Redirect Add-on Prepayment prepayment = 20; }
预付款的定义
// A payment the user may be charged as part of their reservation. message Prepayment { PriceInfo price_info = 1; }
缺席或取消费用
如果用户未赴约,系统可能会向其收取违约金或取消费用。 还是在取消之后取消 窗口。 如果未指定取消时段,则默认为 。
要指定违约金,请在服务 Feed 中添加
no_show_fee
字段,如以下示例所示:
缺席 / 取消费用示例
说明:
在此示例中,合作伙伴或商家有权收取固定费率 `no_show_fee.fee.price_micros` 字段中指定的 25 美元, 预约负责人未参加预约。您可能还需要支付这笔费用 如果用户在预约前 4 小时(14400 秒)内取消预约, 如“scheduling_rules.min_advance_online_canceling”字段指定。{ "merchant_id": "merchant-1", "service_id": "service-2-b", "name": "Reservation", "description": "A dining reservation", "price": { "price_micros": 200000000, "currency_code": "USD" }, "scheduling_rules": { "min_advance_online_canceling": 14400, }, "no_show_fee": { "fee": { "price_micros": 25000000, "currency_code": "USD" }, "fee_type": "FIXED_RATE_DEFAULT" } }
服务 Feed
message Service { ... // Defines a no show fee that may be charged to the user. Can be overridden // at the availability level. (optional) NoShowFee no_show_fee = 12; }
可用性 Feed
message Availability { ... // Defines a no show fee that may be charged to the user. Overrides the // service no show fee if one was specified. Setting this to an empty // NoShowFee message removes any service-level no show fee. (optional) NoShowFee no_show_fee = 13; }
违约金的定义
// A fee that a user may be charged if they have made a booking but do not // show up. message NoShowFee { // The amount the user may be charged if they do not show up for their // reservation. Price fee = 1; // Defines how the fee is determined from the availability. PriceType fee_type = 3; }
押金
押金用于收取初始费用,作为预订的一项要求。 押金可在预订时或日后收取。您可能要 需要确定押金可退还的具体条款,以及何时 可以取消预订 在线。
要指定存款,您应在服务 Feed 中添加deposit
字段,如以下示例中所示:
存款示例
说明:
min_advance_online_canceling `deposit.min_advance_cancellation_sec`定义了押金何时可退款。 请注意,在示例中,存款可以单独指定取消时间 。在此情况下,用户将可以取消服务 最长 24 小时(86400 秒)上线。这样可以确保商家 会收到直接通知。不过,用户可能仍然处于 最多可提前 4 小时获得押金退款 (14400 秒)(通过联系您或商家 取消),此信息将在结算时的条款中显示,以及 确认电子邮件。{ "merchant_id": "merchant-1", "service_id": "service-2-b", "name": "Reservation", "description": "A dining reservation", "price": { "price_micros": 200000000, "currency_code": "USD" }, "scheduling_rules": { "min_advance_online_canceling": 86400, }, "deposit": { "deposit": { "price_micros": 25000000, "currency_code": "USD", "min_advance_cancellation_sec": 14400, }, "deposit_type": "FIXED_RATE_DEFAULT" } }
服务 Feed
message Service { ... // Defines how a deposit may be charged to the user. Can be overridden at the // availability level. (optional) Deposit deposit = 11; }
可用性 Feed
message Availability { ... // Defines how a deposit may be charged to the user. Overrides the service // deposit if one was specified. Setting this to an empty Deposit message // removes any service-level deposit. (optional) Deposit deposit = 12; }
押金的定义
// A deposit that the user may be charged or have a hold on their credit card // for. message Deposit { // Deposit amount. Price deposit = 1; // Minimum advance cancellation for the deposit. int64 min_advance_cancellation_sec = 2; // Defines how the deposit is determined from the availability. PriceType deposit_type = 3; }
需要信用卡
服务可能会要求提供信用卡作为一种额外的身份验证方式。 但不能用于预付、押金或违约金。如果 这些用例是必需的,应对其进行明确配置。要求 通常会导致此服务的预订量大幅下降。
如果要求在结算时提供信用卡信息,则必须设置 字段
require_credit_card
至 REQUIRE_CREDIT_CARD_ALWAYS
。
需要提供信用卡的示例
{ "merchant_id": "merchant-1", "service_id": "reservation", "name": "reservation", "description": "Food reservation", "require_credit_card": "REQUIRE_CREDIT_CARD_ALWAYS" }
服务 Feed
message Service { ... // Indicates whether the user must provide a credit card in order to book this // service. // This value can be overridden at the availability level. (optional) RequireCreditCard require_credit_card = 13; }
可用性 Feed
message Availability { ... // Indicates whether the user must provide a credit card in order to book this // availability slot. // If the value is not set, it is inherited from the service level if it's set // there. (optional) RequireCreditCard require_credit_card = 14; }
需要定义信用卡
// Defines whether a credit card is required in order to book an appointment. enum RequireCreditCard { // The credit card requirement is not explicitly specified and the // behaviour is identical to the one specified for CONDITIONAL. REQUIRE_CREDIT_CARD_UNSPECIFIED = 0; // Google will require a credit card for the booking if any of the following // conditions are met: // * the availability has a price and the prepayment_type is REQUIRED // * the no_show_fee is set // * the deposit field is set. REQUIRE_CREDIT_CARD_CONDITIONAL = 1; // A credit card is always required in order to book this availability // regardless of other field values. REQUIRE_CREDIT_CARD_ALWAYS = 2; }
其他定义
价格范围的定义
// Wrapper for a range of monetary amount treated as unbounded unless both // values are set. At least one of min_amount and max_amount is required. message PriceRange { // Minimum amount. Price min_price = 1; // Maximum amount. Should always be > min_price. Price max_price = 2; }
价格信息的定义
// Container for price details. message PriceInfo { oneof price_options { Price price = 1; // The upper and/or lower bound PriceRange price_range = 2 ; } // Defines how price or price range is applied (per person or fixed) PriceType price_type = 3; }
价格类型定义
// Defines how a total price is determined from an availability. enum PriceType { // The price is for a fixed amount. This is the default value if the field is // not set. // // Examples: // $50 deposit to reserve a table; $20 no show fee for a yoga class FIXED_RATE_DEFAULT = 0; // The price specified is per person, and the total price is calculated // according to the party size specified in Resources as price_micros * // party_size. A PER_PERSON price must be accompanied by a party size in the // availability resources. If it is not, a party size of one is used. // // Examples: // $10 each for tickets to a museum PER_PERSON = 1; }