Skip to main content
In Closed-Loop Mode, to accommodate diverse host environments such as web browsers, desktop agents, WeChat mini programs, and native mobile apps, RollingGo Hotel MCP provides standardized, mutually exclusive payment voucher mechanisms.

Core Fields & Target Environments

The booking creation tool (createHotelBookingWithPaymentURL) and order detail tool (getHotelOrderDetail) return the following cashier fields:

Exclusivity & Expiration Rules

1. Mutually Exclusive Payload Delivery

  • The platform automatically detects the Partner’s registered host environment:
    • Web/Desktop Hosts: The response delivers only paymentUrl; miniProgramPayInfo is completely omitted;
    • WeChat Hosts: The response delivers only miniProgramPayInfo; paymentUrl is completely omitted;
  • This ensures that clients receive clean payloads without branching ambiguity.

2. Safe Nulling for Non-Pending States

To prevent users from navigating to expired links:
  • When an order is Confirmed, Canceled, or Expired past the 30-minute window:
  • The payment field remains in the JSON payload, but its value is safely set to null (e.g. "paymentUrl": null).
  • When an agent observes a null payment field, it should inform the user that the reservation is already settled or expired.

Client Integration Examples

1. Web Browsers & Desktop Hosts (JavaScript / TypeScript)

For web or desktop environments, the agent extracts paymentUrl and prompts the user:

2. WeChat Mini Program Hosts (JavaScript)

For WeChat hosts, the agent extracts parameters from miniProgramPayInfo:

30-Minute Payment Window & Order Lifecycle

  1. 30-Minute Guaranteed Window:
    • Inventory and total rates are locked for 30 minutes following order generation.
    • If payment is not completed within 30 minutes, the order shifts to Expired and inventory is released.
  2. Order Confirmation Synchrony:
    • Once payment succeeds, the order status transitions immediately to Confirmed.
    • Calling getHotelOrderDetail retrieves the official confirmation voucher and hotel contact numbers.
Last modified on October 22, 2026