Skip to content

Commit 1d1a6a9

Browse files
committed
update guest payment presentation mode options type
1 parent 71f597c commit 1d1a6a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/paypal-js/types/v6/components/paypal-guest-payments.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import {
55
PayPalWarning,
66
PresentationModeOptionsForAuto,
77
} from "./base-component";
8+
import {
9+
OnShippingAddressChangeData,
10+
OnShippingOptionsChangeData,
11+
} from "./paypal-payments";
812

913
export type PayPalGuestOneTimePaymentSessionOptions =
1014
BasePaymentSessionOptions & {
@@ -16,6 +20,13 @@ export type PayPalGuestOneTimePaymentSessionOptions =
1620
export type PayPalGuestPresentationModeOptions =
1721
PresentationModeOptionsForAuto & {
1822
targetElement?: string | EventTarget;
23+
buyerCountry?: string;
24+
onShippingAddressChange?: (
25+
data: OnShippingAddressChangeData,
26+
) => Promise<void>;
27+
onShippingOptionsChange?: (
28+
data: OnShippingOptionsChangeData,
29+
) => Promise<void>;
1930
};
2031

2132
export type PayPalGuestOneTimePaymentSessionPromise = Promise<{

0 commit comments

Comments
 (0)