@misiki/gocommerce-connector 0.30.0 → 0.31.1

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.
@@ -520,6 +520,7 @@ function productImages(p) {
520
520
  if (url && !out.includes(url)) out.push(url);
521
521
  };
522
522
  push(mediaUrl(p.image_url));
523
+ push(mediaUrl(p.hover_image_url));
523
524
  for (const m of arr(p.media)) if (m.kind === "image") push(mediaUrl(m.url));
524
525
  for (const v of arr(p.variants)) for (const url of variantImages(v)) push(url);
525
526
  return out;
@@ -2209,12 +2210,12 @@ var CheckoutService = class extends BaseService {
2209
2210
  }
2210
2211
  /**
2211
2212
  * The storefront's generic redirect flow, which it reaches through the code
2212
- * `PAYPAL`. The engine has no PayPal gateway; paymentMethodService puts the
2213
- * store's first hosted-page gateway — Adyen, Paddle, Lemon Squeezy, Creem,
2214
- * Hyperswitch or RevenueCat — under that code, with its own name and a
2215
- * neutral icon, because this is the one storefront flow that sends a shopper
2216
- * to a URL and back. The shopper returns to the success page; the gateway's
2217
- * webhook tells the engine the order is paid.
2213
+ * `PAYPAL`. paymentMethodService puts the store's first hosted-page gateway
2214
+ * — PayPal, Adyen, Paddle, Lemon Squeezy, Creem, Hyperswitch or RevenueCat —
2215
+ * under that code, with its own name and a neutral icon, because this is the
2216
+ * one storefront flow that sends a shopper to a URL and back. The shopper
2217
+ * returns to the success page; the gateway's webhook tells the engine the
2218
+ * order is paid. PayPal's webhook is also what captures the approved payment.
2218
2219
  */
2219
2220
  async checkoutPaypal({ cartId, origin } = {}) {
2220
2221
  const gateway = await this.redirectGateway();
@@ -2438,7 +2439,7 @@ var CheckoutService = class extends BaseService {
2438
2439
  return result;
2439
2440
  }
2440
2441
  };
2441
- var REDIRECT_GATEWAYS = /* @__PURE__ */ new Set(["adyen", "paddle", "lemonsqueezy", "creem", "hyperswitch", "revenuecat"]);
2442
+ var REDIRECT_GATEWAYS = /* @__PURE__ */ new Set(["paypal", "adyen", "paddle", "lemonsqueezy", "creem", "hyperswitch", "revenuecat"]);
2442
2443
  var unsupported = (method, why) => new NotSupportedError("CheckoutService", method, why);
2443
2444
  function keyAlreadyUsed(err) {
2444
2445
  return err instanceof GoCommerceError && err.status === 400 && err.message.includes("Idempotency-Key was already used");