diff --git a/src/zoid/card-fields/component.jsx b/src/zoid/card-fields/component.jsx index d30e1ebcc5..fc49a6a388 100644 --- a/src/zoid/card-fields/component.jsx +++ b/src/zoid/card-fields/component.jsx @@ -46,6 +46,14 @@ const CARD_FIELD_TYPE = { POSTAL: "postal", }; +type InstallmentsConfiguration = {| + financingCountryCode : string, + currencyCode : string, + billingCountryCode : string, + amount : string, + includeBuyerInstallments ? : boolean +|}; + type CardFieldsProps = {| clientID: string, style?: {| @@ -100,6 +108,11 @@ type CardFieldsProps = {| hcfSessionID: string, partnerAttributionID: string, merchantID: $ReadOnlyArray, + installments? : {| + onInstallmentsRequested : () => InstallmentsConfiguration | ZalgoPromise, + onInstallmentsAvailable : (Object) => void, + onInstallmentsError? : (Object) => void + |}, |}; type CardFieldProps = {| @@ -423,6 +436,11 @@ export const getCardFieldsComponent: () => CardFieldsComponent = memoize( default: getUserIDToken, required: false, }, + installments: { + type: "object", + required: false, + value: ({ props }) => props.parent.props.installments + }, }, }); }; @@ -701,6 +719,10 @@ export const getCardFieldsComponent: () => CardFieldsComponent = memoize( default: getUserIDToken, required: false, }, + installments: { + type: "object", + required: false, + }, }, });