@code-collective/booking-widget 1.0.13 → 1.0.15

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 CHANGED
@@ -9,7 +9,7 @@ Drop in a script tag and use the custom elements directly. No framework or npm i
9
9
  ```html
10
10
  <head>
11
11
  <link rel="stylesheet"
12
- href="https://cdn.jsdelivr.net/npm/@code-collective/booking-widget@1.0.12/dist/booking-widget.min.css"
12
+ href="https://cdn.jsdelivr.net/npm/@code-collective/booking-widget@1.0.14/dist/booking-widget.min.css"
13
13
  integrity="sha384-LDthHLROtZeufKbWmAhXBsAFLqqhkZjWFd8gWU+Ez11qyg5ebj9vpFnvJuZcM3ft"
14
14
  crossorigin="anonymous" />
15
15
  </head>
@@ -20,8 +20,8 @@ Drop in a script tag and use the custom elements directly. No framework or npm i
20
20
  <bw-checkout></bw-checkout>
21
21
 
22
22
  <script
23
- src="https://cdn.jsdelivr.net/npm/@code-collective/booking-widget@1.0.12/dist/booking-widget.min.js"
24
- integrity="sha384-nkQuTziRverWyDu3eR0AaBqefk10pn3x+o3IsjuNvdkkabowNQISYgXijIi8t0El"
23
+ src="https://cdn.jsdelivr.net/npm/@code-collective/booking-widget@1.0.14/dist/booking-widget.min.js"
24
+ integrity="sha384-LaWu33HT9CR5/74awGqZSRCWzmaik6Ko5Lt5TYkNU+dvAoDIBTTaQ9mgtXn6r0dA"
25
25
  crossorigin="anonymous"></script>
26
26
  </body>
27
27
  ```
@@ -76,8 +76,8 @@ Set `window.bwOptions` before the widget script loads:
76
76
  editPages: '',
77
77
  };
78
78
  </script>
79
- <script src="https://cdn.jsdelivr.net/npm/@code-collective/booking-widget@1.0.12/dist/booking-widget.min.js"
80
- integrity="sha384-nkQuTziRverWyDu3eR0AaBqefk10pn3x+o3IsjuNvdkkabowNQISYgXijIi8t0El"
79
+ <script src="https://cdn.jsdelivr.net/npm/@code-collective/booking-widget@1.0.14/dist/booking-widget.min.js"
80
+ integrity="sha384-LaWu33HT9CR5/74awGqZSRCWzmaik6Ko5Lt5TYkNU+dvAoDIBTTaQ9mgtXn6r0dA"
81
81
  crossorigin="anonymous"></script>
82
82
  ```
83
83
 
@@ -111,7 +111,7 @@ window.addEventListener('bw:order-confirmed', (e) => {
111
111
 
112
112
  ### Payment outcomes
113
113
 
114
- Peach's own charge and this gateway's confirmation of it are two separate steps - the charge succeeds immediately, but confirmation depends on a webhook that can lag by a few seconds. The checkout modal reflects that as distinct result screens, and stays open until the shopper dismisses it themselves (Done/Close) rather than closing automatically:
114
+ Peach's own charge and this gateway's confirmation of it are two separate steps - the charge succeeds immediately, but confirmation depends on a webhook that can lag by a few seconds. Confirmation is entirely server-driven: the widget never confirms a cart itself, it only polls the checkout API's status endpoint and renders whatever it reports. Three things resolve the status server-side: Peach's webhook for the normal case, a server-side sweep as a backstop if the webhook never arrives, and a direct Peach status check for a declined card, since Peach sends no webhook for those. A shopper who closes the tab mid-payment is still resolved correctly either way - nothing depends on their browser staying open. The checkout modal reflects the outcome as distinct result screens, and stays open until the shopper dismisses it themselves (Done/Close) rather than closing automatically:
115
115
 
116
116
  | Outcome | Shown when | Shopper can retry payment? |
117
117
  |---|---|---|
@@ -357,12 +357,12 @@ const product = await getProduct(Astro.params.slug);
357
357
  <bw-checkout checkout-key={product.checkoutKey}></bw-checkout>
358
358
 
359
359
  <link rel="stylesheet"
360
- href="https://cdn.jsdelivr.net/npm/@code-collective/booking-widget@1.0.12/dist/booking-widget.min.css"
360
+ href="https://cdn.jsdelivr.net/npm/@code-collective/booking-widget@1.0.14/dist/booking-widget.min.css"
361
361
  integrity="sha384-LDthHLROtZeufKbWmAhXBsAFLqqhkZjWFd8gWU+Ez11qyg5ebj9vpFnvJuZcM3ft"
362
362
  crossorigin="anonymous" />
363
363
  <script is:inline
364
- src="https://cdn.jsdelivr.net/npm/@code-collective/booking-widget@1.0.12/dist/booking-widget.min.js"
365
- integrity="sha384-nkQuTziRverWyDu3eR0AaBqefk10pn3x+o3IsjuNvdkkabowNQISYgXijIi8t0El"
364
+ src="https://cdn.jsdelivr.net/npm/@code-collective/booking-widget@1.0.14/dist/booking-widget.min.js"
365
+ integrity="sha384-LaWu33HT9CR5/74awGqZSRCWzmaik6Ko5Lt5TYkNU+dvAoDIBTTaQ9mgtXn6r0dA"
366
366
  crossorigin="anonymous"></script>
367
367
  ```
368
368