@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/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`.
|
|
4725
|
-
*
|
|
4726
|
-
*
|
|
4727
|
-
*
|
|
4728
|
-
*
|
|
4729
|
-
* webhook
|
|
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`.
|
|
4725
|
-
*
|
|
4726
|
-
*
|
|
4727
|
-
*
|
|
4728
|
-
*
|
|
4729
|
-
* webhook
|
|
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`.
|
|
2234
|
-
*
|
|
2235
|
-
*
|
|
2236
|
-
*
|
|
2237
|
-
*
|
|
2238
|
-
* webhook
|
|
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");
|