Skip to main content
Creates a setup session so the user can save a payment method. Saved payment methods are charged only for flight bookings — they do not fund cards or the wallet. Cards created with create_card are funded from the wallet (fund_wallet).

Parameters

This tool takes no parameters.

Returns

A secure Stripe checkout URL and its session ID. The user must open the URL to save their card details; once completed, the saved card is charged when they book a flight. To see what is already saved, use list_payment_methods.

Example

{ "name": "setup_payment_method", "arguments": {} }