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