@funnelsgrove/payments 0.11.11 → 0.11.12

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.
@@ -215,8 +215,13 @@ export function StripeCheckoutExpressCheckoutButton({ beforeConfirm, checkoutAna
215
215
  window.location.assign(returnUrl);
216
216
  }
217
217
  };
218
- const handleClick = (event) => {
218
+ const handleClick = async (event) => {
219
219
  queueCheckoutStarted(event.expressPaymentType);
220
+ const updated = await ensureServerUpdated(event.expressPaymentType);
221
+ if (!updated) {
222
+ event.reject();
223
+ return;
224
+ }
220
225
  event.resolve();
221
226
  };
222
227
  const handleCancel = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelsgrove/payments",
3
- "version": "0.11.11",
3
+ "version": "0.11.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/The-Solid-Grove/funnelsgrove.git",