@forgebuild/hotal-ui 0.23.10 → 0.23.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/hotal-ui.js +2651 -2644
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,6 +141,8 @@ Search results, a Stripe payment form, booking submission, and confirmation —
|
|
|
141
141
|
| `createPaymentIntent` | `(date: string, guests: number) => Promise<PaymentIntentResult>` | Creates the Stripe PaymentIntent to hold |
|
|
142
142
|
| `book` | `(details: BookingDetails) => Promise<BookResult>` | Submits the reservation |
|
|
143
143
|
|
|
144
|
+
When `stripePublishableKey` / `createPaymentIntent` are not set, the payment section is not rendered, no card hold is taken, and `stripePaymentIntentId` is omitted from `BookingDetails`.
|
|
145
|
+
|
|
144
146
|
```ts
|
|
145
147
|
interface BookingSlot { time: string; availableTables: number; }
|
|
146
148
|
interface PaymentIntentResult { clientSecret: string; paymentIntentId: string; amountCents: number; }
|