/
script-options.d.ts
36 lines (34 loc) · 1004 Bytes
/
script-options.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
interface PayPalScriptQueryParameters {
buyerCountry?: string;
clientId: string;
commit?: boolean;
components?: string;
currency?: string;
debug?: boolean | string;
disableFunding?: string;
enableFunding?: string;
integrationDate?: string;
intent?: string;
locale?: string;
// loadScript() supports an array and will convert it
// to the correct merchant-id and data-merchant-id string values
merchantId?: string[] | string;
vault?: boolean | string;
}
interface PayPalScriptDataAttributes {
dataClientToken?: string;
dataCspNonce?: string;
dataClientMetadataId?: string;
dataMerchantId?: string;
dataNamespace?: string;
dataPageType?: string;
dataPartnerAttributionId?: string;
dataSdkIntegrationSource?: string;
dataUid?: string;
dataUserIdToken?: string;
}
export interface PayPalScriptOptions
extends PayPalScriptQueryParameters,
PayPalScriptDataAttributes {
sdkBaseUrl?: string;
}