From cd0b01c9182ad0bc7d4c6886849c17a401b98c71 Mon Sep 17 00:00:00 2001 From: Brandon Tom Date: Wed, 18 Dec 2024 08:18:10 -0800 Subject: [PATCH] feat: added `PayPalCompleteConfig` type --- types/lib/paypal.d.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/types/lib/paypal.d.ts b/types/lib/paypal.d.ts index 6c62a5eb..dbc75236 100644 --- a/types/lib/paypal.d.ts +++ b/types/lib/paypal.d.ts @@ -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';