@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.
package/README.md CHANGED
@@ -231,7 +231,7 @@ Each of these is a real gap, listed so nobody has to find it in production.
231
231
  none of them the gateway the shopper chose. Cash on delivery and Razorpay's
232
232
  modal match engine gateways directly. The storefront's redirect flow (which it
233
233
  reaches by the code `PAYPAL`) carries the store's first hosted-page gateway —
234
- Adyen, Paddle, Lemon Squeezy, Creem, Hyperswitch or RevenueCat — under that
234
+ PayPal, Adyen, Paddle, Lemon Squeezy, Creem, Hyperswitch or RevenueCat — under that
235
235
  gateway's own name and a neutral card icon; a second one cannot be told apart
236
236
  from the first and is not offered. GoCommerce's Stripe is a Payment Element (a
237
237
  client secret), which this storefront does not mount. Every method left off is
@@ -4721,12 +4721,12 @@ declare class CheckoutService extends BaseService {
4721
4721
  checkoutStripeCapture(): Promise<never>;
4722
4722
  /**
4723
4723
  * The storefront's generic redirect flow, which it reaches through the code
4724
- * `PAYPAL`. The engine has no PayPal gateway; paymentMethodService puts the
4725
- * store's first hosted-page gateway — Adyen, Paddle, Lemon Squeezy, Creem,
4726
- * Hyperswitch or RevenueCat — under that code, with its own name and a
4727
- * neutral icon, because this is the one storefront flow that sends a shopper
4728
- * to a URL and back. The shopper returns to the success page; the gateway's
4729
- * webhook tells the engine the order is paid.
4724
+ * `PAYPAL`. paymentMethodService puts the store's first hosted-page gateway
4725
+ * — PayPal, Adyen, Paddle, Lemon Squeezy, Creem, Hyperswitch or RevenueCat —
4726
+ * under that code, with its own name and a neutral icon, because this is the
4727
+ * one storefront flow that sends a shopper to a URL and back. The shopper
4728
+ * returns to the success page; the gateway's webhook tells the engine the
4729
+ * order is paid. PayPal's webhook is also what captures the approved payment.
4730
4730
  */
4731
4731
  checkoutPaypal({ cartId, origin }?: {
4732
4732
  cartId?: string;
@@ -4721,12 +4721,12 @@ declare class CheckoutService extends BaseService {
4721
4721
  checkoutStripeCapture(): Promise<never>;
4722
4722
  /**
4723
4723
  * The storefront's generic redirect flow, which it reaches through the code
4724
- * `PAYPAL`. The engine has no PayPal gateway; paymentMethodService puts the
4725
- * store's first hosted-page gateway — Adyen, Paddle, Lemon Squeezy, Creem,
4726
- * Hyperswitch or RevenueCat — under that code, with its own name and a
4727
- * neutral icon, because this is the one storefront flow that sends a shopper
4728
- * to a URL and back. The shopper returns to the success page; the gateway's
4729
- * webhook tells the engine the order is paid.
4724
+ * `PAYPAL`. paymentMethodService puts the store's first hosted-page gateway
4725
+ * — PayPal, Adyen, Paddle, Lemon Squeezy, Creem, Hyperswitch or RevenueCat —
4726
+ * under that code, with its own name and a neutral icon, because this is the
4727
+ * one storefront flow that sends a shopper to a URL and back. The shopper
4728
+ * returns to the success page; the gateway's webhook tells the engine the
4729
+ * order is paid. PayPal's webhook is also what captures the approved payment.
4730
4730
  */
4731
4731
  checkoutPaypal({ cartId, origin }?: {
4732
4732
  cartId?: string;
package/dist/index.cjs CHANGED
@@ -2230,12 +2230,12 @@ var CheckoutService = class extends BaseService {
2230
2230
  }
2231
2231
  /**
2232
2232
  * The storefront's generic redirect flow, which it reaches through the code
2233
- * `PAYPAL`. The engine has no PayPal gateway; paymentMethodService puts the
2234
- * store's first hosted-page gateway — Adyen, Paddle, Lemon Squeezy, Creem,
2235
- * Hyperswitch or RevenueCat — under that code, with its own name and a
2236
- * neutral icon, because this is the one storefront flow that sends a shopper
2237
- * to a URL and back. The shopper returns to the success page; the gateway's
2238
- * webhook tells the engine the order is paid.
2233
+ * `PAYPAL`. paymentMethodService puts the store's first hosted-page gateway
2234
+ * — PayPal, Adyen, Paddle, Lemon Squeezy, Creem, Hyperswitch or RevenueCat —
2235
+ * under that code, with its own name and a neutral icon, because this is the
2236
+ * one storefront flow that sends a shopper to a URL and back. The shopper
2237
+ * returns to the success page; the gateway's webhook tells the engine the
2238
+ * order is paid. PayPal's webhook is also what captures the approved payment.
2239
2239
  */
2240
2240
  async checkoutPaypal({ cartId, origin } = {}) {
2241
2241
  const gateway = await this.redirectGateway();
@@ -2459,7 +2459,7 @@ var CheckoutService = class extends BaseService {
2459
2459
  return result;
2460
2460
  }
2461
2461
  };
2462
- var REDIRECT_GATEWAYS = /* @__PURE__ */ new Set(["adyen", "paddle", "lemonsqueezy", "creem", "hyperswitch", "revenuecat"]);
2462
+ var REDIRECT_GATEWAYS = /* @__PURE__ */ new Set(["paypal", "adyen", "paddle", "lemonsqueezy", "creem", "hyperswitch", "revenuecat"]);
2463
2463
  var unsupported = (method, why) => new NotSupportedError("CheckoutService", method, why);
2464
2464
  function keyAlreadyUsed(err) {
2465
2465
  return err instanceof GoCommerceError && err.status === 400 && err.message.includes("Idempotency-Key was already used");