Fortrip

Pay order

Pay an order with a Link wallet token (US and Canada) or with Alipay or WeChat Pay, instead of its payment link.

MCP: pay_order

Usage

fortrip orders pay <orderId> --total <USD decimal> [options]

Options

FlagFieldDescription
<orderId>orderIdThe orderId of the order to pay.
--token <spt_…>sharedPaymentTokenRequired unless --wallet. The spt_… token the user's Link wallet issued for this order.
--walletmethodPay with Alipay or WeChat Pay instead of a token: prints the WeChat Pay code and both links.
--total <USD decimal>totalRequired. The total the user approved, exactly as orders get shows it, in USD, e.g. 125.00.

Output

Compact text on stdout: one line per hotel, offer or order, with its ids, and every note. With --json, the response as JSON on one line.

The JSON is the Order (pay) object. Errors go to stderr with an exit code.

On this page