@misiki/gocommerce-connector 0.31.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.
@@ -2210,12 +2210,12 @@ var CheckoutService = class extends BaseService {
2210
2210
  }
2211
2211
  /**
2212
2212
  * The storefront's generic redirect flow, which it reaches through the code
2213
- * `PAYPAL`. The engine has no PayPal gateway; paymentMethodService puts the
2214
- * store's first hosted-page gateway — Adyen, Paddle, Lemon Squeezy, Creem,
2215
- * Hyperswitch or RevenueCat — under that code, with its own name and a
2216
- * neutral icon, because this is the one storefront flow that sends a shopper
2217
- * to a URL and back. The shopper returns to the success page; the gateway's
2218
- * 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.
2219
2219
  */
2220
2220
  async checkoutPaypal({ cartId, origin } = {}) {
2221
2221
  const gateway = await this.redirectGateway();
@@ -2439,7 +2439,7 @@ var CheckoutService = class extends BaseService {
2439
2439
  return result;
2440
2440
  }
2441
2441
  };
2442
- 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"]);
2443
2443
  var unsupported = (method, why) => new NotSupportedError("CheckoutService", method, why);
2444
2444
  function keyAlreadyUsed(err) {
2445
2445
  return err instanceof GoCommerceError && err.status === 400 && err.message.includes("Idempotency-Key was already used");