Skip to content

Commit

Permalink
Added Installment Props in Card Fields
Browse files Browse the repository at this point in the history
  • Loading branch information
paraghavendran committed Aug 29, 2024
1 parent b08ac60 commit 316b63a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/zoid/card-fields/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type InstallmentsConfiguration = {|
currencyCode : string,
billingCountryCode : string,
amount : string,
includeBuyerFee : boolean
includeBuyerInstallments ? : boolean
|};

type CardFieldsProps = {|
Expand Down Expand Up @@ -110,8 +110,8 @@ type CardFieldsProps = {|
merchantID: $ReadOnlyArray<string>,
installments? : {|
onInstallmentsRequested : () => InstallmentsConfiguration,
onInstallmentsAvailable : () => ZalgoPromise<Object> | Object,
onInstallmentsError? : () => ZalgoPromise<Object> | Object
onInstallmentsAvailable : (Object) => ?ZalgoPromise<void>,
onInstallmentsError? : (Object) => ?ZalgoPromise<void>
|}
|};

Expand Down Expand Up @@ -719,6 +719,10 @@ export const getCardFieldsComponent: () => CardFieldsComponent = memoize(
default: getUserIDToken,
required: false,
},
installments: {
type: "object",
required: false,
},
},
});

Expand Down

0 comments on commit 316b63a

Please sign in to comment.