tf-checkout-react 1.7.7-beta.9 → 1.7.8
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/payment.d.ts +1 -3
- package/dist/components/confirmationContainer/index.d.ts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/paymentContainer/index.d.ts +6 -20
- package/dist/constants/index.d.ts +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/tf-checkout-react.cjs.development.js +380 -693
- 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 +382 -694
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -8
- package/src/api/payment.ts +1 -17
- package/src/components/billing-info-container/index.tsx +67 -166
- package/src/components/confirmationContainer/index.tsx +0 -1
- package/src/components/index.ts +0 -1
- package/src/components/paymentContainer/OrderDetails.tsx +20 -0
- package/src/components/paymentContainer/index.tsx +81 -146
- package/src/components/ticketsContainer/TicketsSection.tsx +52 -10
- package/src/components/ticketsContainer/TimeSlotTicketRow.tsx +24 -5
- package/src/constants/index.ts +1 -1
- package/src/index.ts +0 -1
- package/src/types/api/checkout.d.ts +16 -27
- package/src/types/api/common.d.ts +3 -0
- package/src/types/api/payment.d.ts +1 -32
- package/dist/components/process-redirect-container/index.d.ts +0 -18
- package/src/components/process-redirect-container/index.tsx +0 -180
package/dist/api/payment.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getPaymentData: (hash: string) => Promise<IPaymentDataResponse | any>;
|
|
1
|
+
export declare const getPaymentData: (hash: string) => Promise<IPaymentDataResponse>;
|
|
3
2
|
export declare const handlePaymentSuccess: (orderHash: string) => Promise<IPaymentSuccessDataResponse>;
|
|
4
3
|
export declare const handleFreeSuccess: (orderHash: string) => Promise<IFreeRegistrationDataResponse>;
|
|
5
4
|
export declare const getConfirmationData: (orderHash: string) => Promise<ICheckoutCompleteDataResponse>;
|
|
6
5
|
export declare const getConditions: (eventId: string) => Promise<IConditionsAdaptedDataResponse>;
|
|
7
|
-
export declare const processPayment: (orderHash: string, params: any) => Promise<ICheckoutProcessPaymentData>;
|
|
@@ -10,4 +10,3 @@ export { AddonsContainter } from './addonsContainer';
|
|
|
10
10
|
export { DelegationsContainer } from './delegationsContainer';
|
|
11
11
|
export { SeatMapContainer } from './seatMapContainer';
|
|
12
12
|
export { IDVerification } from './idVerificationContainer';
|
|
13
|
-
export { ProcessRedirectContainer } from './process-redirect-container';
|
|
@@ -6,27 +6,8 @@ import { StripeElementsOptions } from '@stripe/stripe-js';
|
|
|
6
6
|
import { StripePaymentElementOptions } from '@stripe/stripe-js';
|
|
7
7
|
import { AxiosError } from 'axios';
|
|
8
8
|
import { IPaymentField } from '../../types';
|
|
9
|
-
export declare enum PaymentType {
|
|
10
|
-
STRIPE_INTENTS = "stripe_intents",
|
|
11
|
-
MERCADO_PAGO_PRO = "mercado_pago_pro"
|
|
12
|
-
}
|
|
13
|
-
export interface IPaymentTypeConfig {
|
|
14
|
-
type: PaymentType;
|
|
15
|
-
}
|
|
16
|
-
export interface IStripeIntendTypeConfig extends IPaymentTypeConfig {
|
|
17
|
-
publishableKey: string;
|
|
18
|
-
accountId?: string;
|
|
19
|
-
onReady: (stripe: any, elements: any) => void;
|
|
20
|
-
elementsOptions?: StripeElementsOptions;
|
|
21
|
-
paymentElementOptions?: StripePaymentElementOptions;
|
|
22
|
-
}
|
|
23
|
-
export interface IMercadoPagoProTypeConfig extends IPaymentTypeConfig {
|
|
24
|
-
publicKey: string;
|
|
25
|
-
preferenceId?: string;
|
|
26
|
-
}
|
|
27
9
|
export interface IPaymentPage {
|
|
28
10
|
paymentFields: IPaymentField[];
|
|
29
|
-
paymentTypeConfigs: IPaymentTypeConfig | IMercadoPagoProTypeConfig | IStripeIntendTypeConfig;
|
|
30
11
|
handlePayment: any;
|
|
31
12
|
checkoutData: any;
|
|
32
13
|
formTitle?: string;
|
|
@@ -39,6 +20,8 @@ export interface IPaymentPage {
|
|
|
39
20
|
input?: CSSProperties;
|
|
40
21
|
checkbox?: CSSProperties;
|
|
41
22
|
};
|
|
23
|
+
elementsOptions?: StripeElementsOptions;
|
|
24
|
+
paymentElementOptions?: StripePaymentElementOptions;
|
|
42
25
|
onCountdownFinish?: () => void;
|
|
43
26
|
enableTimer?: boolean;
|
|
44
27
|
paymentInfoLabel?: string;
|
|
@@ -47,6 +30,9 @@ export interface IPaymentPage {
|
|
|
47
30
|
hidePaymentForm?: boolean;
|
|
48
31
|
hideFieldsBlock?: boolean;
|
|
49
32
|
isSinglePageCheckout?: boolean;
|
|
33
|
+
stripePublishableKey?: string;
|
|
34
|
+
stripeAccountId?: string;
|
|
35
|
+
onStripeReady?: (stripe: any, elements: any) => void;
|
|
50
36
|
enablePaymentPlan?: boolean;
|
|
51
37
|
}
|
|
52
|
-
export declare const PaymentContainer: ({ paymentFields, handlePayment,
|
|
38
|
+
export declare const PaymentContainer: ({ paymentFields, handlePayment, formTitle, errorText, checkoutData, onErrorClose, onGetPaymentDataSuccess, onGetPaymentDataError, onPaymentError, themeOptions, elementsOptions, paymentElementOptions, onCountdownFinish, enableTimer, orderInfoLabel, paymentInfoLabel, displayPaymentButton, hidePaymentForm, hideFieldsBlock, isSinglePageCheckout, stripePublishableKey, stripeAccountId, onStripeReady, enablePaymentPlan, }: IPaymentPage) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,4 +25,3 @@ export { VERIFICATION_STATUSES } from './components/idVerificationContainer/cons
|
|
|
25
25
|
export { setConfigs } from './utils/setConfigs';
|
|
26
26
|
export { logoutUser } from './utils/auth';
|
|
27
27
|
export { OrderDetails } from './components/paymentContainer/OrderDetails';
|
|
28
|
-
export { ProcessRedirectContainer } from './components/process-redirect-container';
|