File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -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
You can’t perform that action at this time.
0 commit comments