Get Payment URL
get_payment_urlCreates a hosted Stripe (credit-card) checkout link for a prepared booking — an alternative consumer payment rail to create_checkout (Revolut). Required: bookingId (the preparedBookingId from prepare_booking), currency (3-letter), and backUrl; optional successUrl. REQUIRES A REGISTERED-ACCOUNT SESSION; a guest_login session is REJECTED here (the Stripe rail is not open to guests; use create_checkout for a guest instead). Returns a payment url and a sessionId. Share the url with the guest — the booking is confirmed automatically by webhook once payment succeeds. Prefer create_checkout unless a Stripe card link is specifically needed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bookingId": "<bookingId>",
"currency": "<currency>",
"backUrl": "<backUrl>"
},
"name": "get_payment_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backUrl | Yes | URL to redirect on cancel/back | |
| currency | Yes | Payment currency code (e.g., USD, EUR) | |
| bookingId | Yes | Booking ID from prepare_booking (preparedBookingId) | |
| successUrl | No | Custom URL to redirect on success | |
| sessionToken | No | Optional guest-checkout token returned by `guest_login`. |