@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.
- package/README.md +1 -1
- package/dist/{index-BdXhbm20.d.cts → index-sPZh8NN4.d.cts} +8 -6
- package/dist/{index-BdXhbm20.d.ts → index-sPZh8NN4.d.ts} +8 -6
- package/dist/index.cjs +8 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +8 -7
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +8 -7
- package/dist/services/index.js.map +1 -1
- package/package.json +1 -1
package/dist/services/index.cjs
CHANGED
|
@@ -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`.
|
|
2213
|
-
*
|
|
2214
|
-
*
|
|
2215
|
-
*
|
|
2216
|
-
*
|
|
2217
|
-
* webhook
|
|
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");
|