@paypal/checkout-components 5.0.338 → 5.0.339
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/button.js +1 -1
- package/dist/test/button.js +1 -1
- package/package.json +1 -1
- package/src/zoid/card-fields/component.jsx +22 -0
package/package.json
CHANGED
|
@@ -46,6 +46,14 @@ const CARD_FIELD_TYPE = {
|
|
|
46
46
|
POSTAL: "postal",
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
+
type InstallmentsConfiguration = {|
|
|
50
|
+
financingCountryCode : string,
|
|
51
|
+
currencyCode : string,
|
|
52
|
+
billingCountryCode : string,
|
|
53
|
+
amount : string,
|
|
54
|
+
includeBuyerInstallments ? : boolean
|
|
55
|
+
|};
|
|
56
|
+
|
|
49
57
|
type CardFieldsProps = {|
|
|
50
58
|
clientID: string,
|
|
51
59
|
style?: {|
|
|
@@ -100,6 +108,11 @@ type CardFieldsProps = {|
|
|
|
100
108
|
hcfSessionID: string,
|
|
101
109
|
partnerAttributionID: string,
|
|
102
110
|
merchantID: $ReadOnlyArray<string>,
|
|
111
|
+
installments? : {|
|
|
112
|
+
onInstallmentsRequested : () => InstallmentsConfiguration | ZalgoPromise<InstallmentsConfiguration>,
|
|
113
|
+
onInstallmentsAvailable : (Object) => void,
|
|
114
|
+
onInstallmentsError? : (Object) => void
|
|
115
|
+
|},
|
|
103
116
|
|};
|
|
104
117
|
|
|
105
118
|
type CardFieldProps = {|
|
|
@@ -423,6 +436,11 @@ export const getCardFieldsComponent: () => CardFieldsComponent = memoize(
|
|
|
423
436
|
default: getUserIDToken,
|
|
424
437
|
required: false,
|
|
425
438
|
},
|
|
439
|
+
installments: {
|
|
440
|
+
type: "object",
|
|
441
|
+
required: false,
|
|
442
|
+
value: ({ props }) => props.parent.props.installments
|
|
443
|
+
},
|
|
426
444
|
},
|
|
427
445
|
});
|
|
428
446
|
};
|
|
@@ -701,6 +719,10 @@ export const getCardFieldsComponent: () => CardFieldsComponent = memoize(
|
|
|
701
719
|
default: getUserIDToken,
|
|
702
720
|
required: false,
|
|
703
721
|
},
|
|
722
|
+
installments: {
|
|
723
|
+
type: "object",
|
|
724
|
+
required: false,
|
|
725
|
+
},
|
|
704
726
|
},
|
|
705
727
|
});
|
|
706
728
|
|