@funnelsgrove/payments 0.1.0 → 0.1.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 +32 -3
- package/dist/components/shared/ApplePaySubscribeButton.d.ts +15 -0
- package/dist/components/shared/ApplePaySubscribeButton.js +76 -0
- package/dist/components/shared/CheckoutBrandAssets.d.ts +12 -0
- package/dist/components/shared/CheckoutBrandAssets.js +56 -0
- package/dist/components/shared/GooglePaySubscribeButton.d.ts +14 -0
- package/dist/components/shared/GooglePaySubscribeButton.js +94 -0
- package/dist/components/shared/SharedStripeCheckoutDialog.d.ts +44 -0
- package/dist/components/shared/SharedStripeCheckoutDialog.js +717 -0
- package/dist/components/shared/SharedStripeCheckoutV2Dialog.d.ts +60 -0
- package/dist/components/shared/SharedStripeCheckoutV2Dialog.js +988 -0
- package/dist/components/shared/StripeExpressCheckoutButton.d.ts +18 -0
- package/dist/components/shared/StripeExpressCheckoutButton.js +164 -0
- package/dist/components/shared/StripeExpressCheckoutElement.d.ts +8 -0
- package/dist/components/shared/StripeExpressCheckoutElement.js +19 -0
- package/dist/components/shared/StripePlanSelector.d.ts +5 -7
- package/dist/components/shared/StripePlanSelector.js +16 -57
- package/dist/components/shared/walletPlatform.d.ts +11 -0
- package/dist/components/shared/walletPlatform.js +39 -0
- package/dist/config/billing.config.d.ts +60 -9
- package/dist/config/billing.config.js +7 -2
- package/dist/hooks/useResolvedPaywallPlans.d.ts +15 -0
- package/dist/hooks/useResolvedPaywallPlans.js +68 -0
- package/dist/index.d.ts +21 -5
- package/dist/index.js +21 -5
- package/dist/providers/paymentProvider.types.d.ts +4 -0
- package/dist/providers/paymentProvider.types.js +4 -0
- package/dist/providers/stripe/ApplePaySubscriptionCheckoutSlot.d.ts +5 -0
- package/dist/providers/stripe/ApplePaySubscriptionCheckoutSlot.js +21 -0
- package/dist/providers/stripe/GooglePaySubscriptionCheckoutSlot.d.ts +7 -0
- package/dist/providers/stripe/GooglePaySubscriptionCheckoutSlot.js +44 -0
- package/dist/providers/stripe/WalletSubscriptionCheckoutSlot.d.ts +32 -0
- package/dist/providers/stripe/WalletSubscriptionCheckoutSlot.js +69 -0
- package/dist/providers/stripe/useStripeSubscriptionCheckoutSession.d.ts +30 -0
- package/dist/providers/stripe/useStripeSubscriptionCheckoutSession.js +164 -0
- package/dist/services/paywallOffer.service.d.ts +65 -0
- package/dist/services/paywallOffer.service.js +312 -0
- package/dist/services/planCatalog.service.d.ts +28 -0
- package/dist/services/planCatalog.service.js +60 -0
- package/dist/services/runtimeBillingPlanCatalog.service.d.ts +6 -0
- package/dist/services/runtimeBillingPlanCatalog.service.js +24 -0
- package/dist/services/stripe.service.d.ts +66 -6
- package/dist/services/stripe.service.js +409 -54
- package/package.json +3 -3
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { Stripe } from '@stripe/stripe-js';
|
|
2
|
+
export type SharedStripeCheckoutV2DialogProps = {
|
|
3
|
+
amountCents: number;
|
|
4
|
+
buttonColor: string;
|
|
5
|
+
cardSubmitLabel: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
closeAriaLabel: string;
|
|
8
|
+
countdownLabel: string;
|
|
9
|
+
customerEmail?: string | null;
|
|
10
|
+
customerEmailEditable?: boolean;
|
|
11
|
+
customerEmailLabel?: string;
|
|
12
|
+
customerEmailPlaceholder?: string;
|
|
13
|
+
customerEmailInvalidMessage?: string;
|
|
14
|
+
customerName?: string | null;
|
|
15
|
+
discountAmountLabel: string;
|
|
16
|
+
discountLabel: string;
|
|
17
|
+
discountPercent: number;
|
|
18
|
+
initialWalletAvailable?: boolean | null;
|
|
19
|
+
nameOnCardPlaceholder?: string;
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
onCustomerEmailChange?: (value: string) => void;
|
|
22
|
+
onCustomerEmailCommit?: (email: string) => Promise<string | null | void>;
|
|
23
|
+
onError?: (message: string | null) => void;
|
|
24
|
+
onSuccess?: () => void;
|
|
25
|
+
paymentMethodLabels?: readonly string[];
|
|
26
|
+
paypalButtonLabel: string;
|
|
27
|
+
paypalLabel: string;
|
|
28
|
+
promoActive?: boolean;
|
|
29
|
+
processingLabel: string;
|
|
30
|
+
promoCode: string;
|
|
31
|
+
promoCodeLabel: string;
|
|
32
|
+
remainingSeconds: number;
|
|
33
|
+
returnUrl: string;
|
|
34
|
+
savedLabel: string;
|
|
35
|
+
secureLabel: string;
|
|
36
|
+
satisfactionLabel: string;
|
|
37
|
+
satisfactionPercent: string;
|
|
38
|
+
stripePromise: Promise<Stripe | null>;
|
|
39
|
+
summaryLabel?: string;
|
|
40
|
+
themeColor: string;
|
|
41
|
+
title: string;
|
|
42
|
+
totalLabel: string;
|
|
43
|
+
totalValue: string;
|
|
44
|
+
walletButtonLabel: string;
|
|
45
|
+
originalPriceLabel: string;
|
|
46
|
+
originalPriceValue: string;
|
|
47
|
+
};
|
|
48
|
+
export type SharedCheckoutSpecialOfferDialogProps = {
|
|
49
|
+
buttonColor: string;
|
|
50
|
+
buttonLabel: string;
|
|
51
|
+
description: string;
|
|
52
|
+
discountLabel: string;
|
|
53
|
+
imageAlt?: string;
|
|
54
|
+
imageSrc?: string;
|
|
55
|
+
onAccept: () => void;
|
|
56
|
+
themeColor: string;
|
|
57
|
+
title: string;
|
|
58
|
+
};
|
|
59
|
+
export declare function SharedStripeCheckoutV2Dialog({ clientSecret, onClose, stripePromise, ...props }: SharedStripeCheckoutV2DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export declare function SharedCheckoutSpecialOfferDialog({ buttonColor, buttonLabel, description, discountLabel, imageAlt, imageSrc, onAccept, themeColor, title, }: SharedCheckoutSpecialOfferDialogProps): import("react/jsx-runtime").JSX.Element;
|