tf-checkout-react 1.4.18 → 1.4.20
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/dist/api/index.d.ts +1 -0
- package/dist/components/confirmationContainer/index.d.ts +3 -0
- package/dist/components/paymentContainer/PaymentPlanSection.d.ts +10 -0
- package/dist/components/stripePayment/index.d.ts +3 -2
- package/dist/tf-checkout-react.cjs.development.js +321 -119
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +321 -119
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/dist/tf-checkout-styles.css +1 -1
- package/dist/types/payment-plan-configuration.d.ts +18 -0
- package/package.json +2 -2
- package/src/api/index.ts +13 -0
- package/src/components/confirmationContainer/index.tsx +53 -50
- package/src/components/paymentContainer/PaymentPlanSection.tsx +152 -0
- package/src/components/paymentContainer/index.tsx +223 -154
- package/src/components/paymentContainer/style.css +8 -0
- package/src/components/seatMapContainer/SeatMapComponent.tsx +26 -22
- package/src/components/seatMapContainer/TicketsSection.tsx +11 -10
- package/src/components/seatMapContainer/index.tsx +67 -72
- package/src/components/stripePayment/index.tsx +19 -18
- package/src/types/payment-plan-configuration.ts +19 -0
- package/src/types/seatMap.d.ts +1 -0
package/dist/api/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare const getAccessToken: (data: FormData) => Promise<AxiosResponse<a
|
|
|
17
17
|
export declare const getPaymentData: (hash: string) => Promise<AxiosResponse<any, any>>;
|
|
18
18
|
export declare const handlePaymentData: (orderHash: string, data: any) => Promise<AxiosResponse<any, any>>;
|
|
19
19
|
export declare const handlePaymentSuccess: (orderHash: string) => Promise<AxiosResponse<any, any>>;
|
|
20
|
+
export declare const createPaymentPlan: (orderHash: string, stripePaymentMethodId: string) => Promise<AxiosResponse<any, any>>;
|
|
20
21
|
export declare const handleFreeSuccess: (orderHash: string) => Promise<AxiosResponse<any, any>>;
|
|
21
22
|
export declare const getProfileData: (accessToken?: string | undefined) => Promise<any>;
|
|
22
23
|
export declare const getCountries: () => Promise<AxiosResponse<any, any>>;
|
|
@@ -11,6 +11,9 @@ export interface IConfirmationLabels {
|
|
|
11
11
|
confirmationTitle?: string;
|
|
12
12
|
confirmationMain?: string;
|
|
13
13
|
confirmationHelper?: string;
|
|
14
|
+
paymentPlanConfirmationTitle?: string;
|
|
15
|
+
paymentPlanConfirmationMain?: string;
|
|
16
|
+
paymentPlanConfirmationHelper?: string;
|
|
14
17
|
}
|
|
15
18
|
export interface IConfirmationPage {
|
|
16
19
|
hasCopyIcon?: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IPaymentPlanConfig } from '../../types/payment-plan-configuration';
|
|
3
|
+
interface PaymentPlanSectionProps {
|
|
4
|
+
paymentPlanConfig: IPaymentPlanConfig;
|
|
5
|
+
currency: string;
|
|
6
|
+
paymentPlanUseSavedCard: boolean;
|
|
7
|
+
setPaymentPlanUseSavedCard: (value: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const PaymentPlanSection: (props: PaymentPlanSectionProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -4,7 +4,7 @@ import { StripeCardNumberElementOptions } from '@stripe/stripe-js';
|
|
|
4
4
|
export interface ICheckoutForm {
|
|
5
5
|
total: string;
|
|
6
6
|
currency: string;
|
|
7
|
-
onSubmit: (error: any) => Promise<any>;
|
|
7
|
+
onSubmit: (error: any, data?: object) => Promise<any>;
|
|
8
8
|
error?: string | null;
|
|
9
9
|
stripeCardOptions?: StripeCardNumberElementOptions;
|
|
10
10
|
stripe_client_secret: string;
|
|
@@ -16,6 +16,7 @@ export interface ICheckoutForm {
|
|
|
16
16
|
conditions: any;
|
|
17
17
|
disableZipSection: boolean;
|
|
18
18
|
paymentButtonText?: string;
|
|
19
|
+
forPaymentPlan?: boolean;
|
|
19
20
|
}
|
|
20
|
-
declare const CheckoutForm: ({ total, onSubmit, stripeCardOptions, error, stripe_client_secret, currency, billing_info, isLoading, handleSetLoading, conditions, disableZipSection, paymentButtonText, }: ICheckoutForm) => JSX.Element;
|
|
21
|
+
declare const CheckoutForm: ({ total, onSubmit, stripeCardOptions, error, stripe_client_secret, currency, billing_info, isLoading, handleSetLoading, conditions, disableZipSection, paymentButtonText, forPaymentPlan, }: ICheckoutForm) => JSX.Element;
|
|
21
22
|
export default CheckoutForm;
|