Skip to content

Commit

Permalink
feat: added PayPalCompleteConfig type
Browse files Browse the repository at this point in the history
  • Loading branch information
signalcafe committed Dec 18, 2024
1 parent 3125b0f commit cd0b01c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions types/lib/paypal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ export type DirectConfig = {
logoImageUrl?: string;
headerImageUrl?: string;
};
payPalComplete?: boolean;
};

export type PayPalConfig = BraintreeConfig | DirectConfig;
export type PayPalCompleteConfig = {
payPalComplete?: boolean;
display?: {
locale?: string;
displayName?: string;
amount?: string;
}
}

export type PayPalConfig = BraintreeConfig | DirectConfig | PayPalCompleteConfig

export type PayPalEvent = 'error' | 'token' | 'cancel' | 'ready';

Expand Down

0 comments on commit cd0b01c

Please sign in to comment.