@medusajs/payment-stripe 0.0.3 → 1.0.0-rc-20241003153304
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/core/stripe-base.d.ts +6 -7
- package/dist/core/stripe-base.d.ts.map +1 -0
- package/dist/core/stripe-base.js +238 -440
- package/dist/core/stripe-base.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +1 -1
- package/dist/services/index.js.map +1 -0
- package/dist/services/stripe-bancontact.d.ts +1 -0
- package/dist/services/stripe-bancontact.d.ts.map +1 -0
- package/dist/services/stripe-bancontact.js +14 -35
- package/dist/services/stripe-bancontact.js.map +1 -0
- package/dist/services/stripe-blik.d.ts +1 -0
- package/dist/services/stripe-blik.d.ts.map +1 -0
- package/dist/services/stripe-blik.js +14 -35
- package/dist/services/stripe-blik.js.map +1 -0
- package/dist/services/stripe-giropay.d.ts +1 -0
- package/dist/services/stripe-giropay.d.ts.map +1 -0
- package/dist/services/stripe-giropay.js +14 -35
- package/dist/services/stripe-giropay.js.map +1 -0
- package/dist/services/stripe-ideal.d.ts +1 -0
- package/dist/services/stripe-ideal.d.ts.map +1 -0
- package/dist/services/stripe-ideal.js +14 -35
- package/dist/services/stripe-ideal.js.map +1 -0
- package/dist/services/stripe-provider.d.ts +1 -0
- package/dist/services/stripe-provider.d.ts.map +1 -0
- package/dist/services/stripe-provider.js +11 -32
- package/dist/services/stripe-provider.js.map +1 -0
- package/dist/services/stripe-przelewy24.d.ts +1 -0
- package/dist/services/stripe-przelewy24.d.ts.map +1 -0
- package/dist/services/stripe-przelewy24.js +14 -35
- package/dist/services/stripe-przelewy24.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +11 -7
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -0
- package/dist/utils/get-smallest-unit.d.ts +17 -0
- package/dist/utils/get-smallest-unit.d.ts.map +1 -0
- package/dist/utils/get-smallest-unit.js +68 -0
- package/dist/utils/get-smallest-unit.js.map +1 -0
- package/package.json +15 -16
@@ -1,16 +1,14 @@
|
|
1
1
|
import Stripe from "stripe";
|
2
|
-
import { MedusaContainer, PaymentProviderError, PaymentProviderSessionResponse,
|
3
|
-
import { AbstractPaymentProvider } from "@medusajs/utils";
|
4
|
-
import {
|
5
|
-
|
6
|
-
declare abstract class StripeBase extends AbstractPaymentProvider<StripeCredentials> {
|
2
|
+
import { CreatePaymentProviderSession, MedusaContainer, PaymentProviderError, PaymentProviderSessionResponse, ProviderWebhookPayload, UpdatePaymentProviderSession, WebhookActionResult } from "@medusajs/framework/types";
|
3
|
+
import { AbstractPaymentProvider, PaymentSessionStatus } from "@medusajs/framework/utils";
|
4
|
+
import { PaymentIntentOptions, StripeOptions } from "../types";
|
5
|
+
declare abstract class StripeBase extends AbstractPaymentProvider<StripeOptions> {
|
7
6
|
protected readonly options_: StripeOptions;
|
8
7
|
protected stripe_: Stripe;
|
9
8
|
protected container_: MedusaContainer;
|
9
|
+
static validateOptions(options: StripeOptions): void;
|
10
10
|
protected constructor(container: MedusaContainer, options: StripeOptions);
|
11
|
-
protected init(): Stripe;
|
12
11
|
abstract get paymentIntentOptions(): PaymentIntentOptions;
|
13
|
-
private validateOptions;
|
14
12
|
get options(): StripeOptions;
|
15
13
|
getPaymentIntentOptions(): PaymentIntentOptions;
|
16
14
|
getPaymentStatus(paymentSessionData: Record<string, unknown>): Promise<PaymentSessionStatus>;
|
@@ -37,3 +35,4 @@ declare abstract class StripeBase extends AbstractPaymentProvider<StripeCredenti
|
|
37
35
|
protected buildError(message: string, error: Stripe.StripeRawError | PaymentProviderError | Error): PaymentProviderError;
|
38
36
|
}
|
39
37
|
export default StripeBase;
|
38
|
+
//# sourceMappingURL=stripe-base.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"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