@payrails/web-sdk 5.40.0 → 5.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -2
- package/index.js +4 -4
- package/index.mjs +24 -0
- package/package.json +17 -1
- package/payrails.d.ts +9 -2
- package/payrails.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payrails/web-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.42.0",
|
|
4
4
|
"description": "SDK providing tokenization options on the client for merchants",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "payrails.d.ts",
|
|
@@ -16,5 +16,21 @@
|
|
|
16
16
|
"rollup-plugin-import-css": "3.5.8",
|
|
17
17
|
"vitest-fetch-mock": "0.4.5"
|
|
18
18
|
},
|
|
19
|
+
"module": "index.mjs",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./payrails.d.ts",
|
|
24
|
+
"default": "./index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./payrails.d.ts",
|
|
28
|
+
"default": "./index.js"
|
|
29
|
+
},
|
|
30
|
+
"default": "./index.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./payrails-styles.css": "./payrails-styles.css",
|
|
33
|
+
"./payrails.js": "./payrails.js"
|
|
34
|
+
},
|
|
19
35
|
"scripts": {}
|
|
20
36
|
}
|
package/payrails.d.ts
CHANGED
|
@@ -251,6 +251,7 @@ declare class WorkflowExecution {
|
|
|
251
251
|
config: ApplePayConfig | PayPalConfig | GooglePayConfig | undefined;
|
|
252
252
|
clientConfig?: {
|
|
253
253
|
flow?: PAYMENT_CLIENT_FLOW;
|
|
254
|
+
displayName?: string;
|
|
254
255
|
supportsInstallments?: boolean;
|
|
255
256
|
installments?: PaymentInstallmentsConfig;
|
|
256
257
|
supportsBillingInfo?: boolean;
|
|
@@ -270,6 +271,7 @@ declare class WorkflowExecution {
|
|
|
270
271
|
config: ApplePayConfig | PayPalConfig | GooglePayConfig | undefined;
|
|
271
272
|
clientConfig?: {
|
|
272
273
|
flow?: PAYMENT_CLIENT_FLOW;
|
|
274
|
+
displayName?: string;
|
|
273
275
|
supportsInstallments?: boolean;
|
|
274
276
|
installments?: PaymentInstallmentsConfig;
|
|
275
277
|
supportsBillingInfo?: boolean;
|
|
@@ -384,6 +386,7 @@ interface StorablePaymentCompositionOption<I = CardMetadata | PayPalMetadata, C
|
|
|
384
386
|
config: C;
|
|
385
387
|
clientConfig?: {
|
|
386
388
|
flow?: PAYMENT_CLIENT_FLOW;
|
|
389
|
+
displayName?: string;
|
|
387
390
|
supportsInstallments?: boolean;
|
|
388
391
|
installments?: PaymentInstallmentsConfig;
|
|
389
392
|
supportsBillingInfo?: boolean;
|
|
@@ -2002,7 +2005,11 @@ declare class SdkLoader {
|
|
|
2002
2005
|
static preloadCardForm(): void;
|
|
2003
2006
|
private static loadScript;
|
|
2004
2007
|
private static getScriptKey;
|
|
2008
|
+
private static readonly PAYPAL_MAX_RETRIES;
|
|
2009
|
+
private static readonly PAYPAL_BASE_DELAY_MS;
|
|
2005
2010
|
private static loadPayPalScript;
|
|
2011
|
+
private static removePayPalScriptElements;
|
|
2012
|
+
private static delay;
|
|
2006
2013
|
private constructor();
|
|
2007
2014
|
private static logLoadError;
|
|
2008
2015
|
}
|
|
@@ -2031,7 +2038,7 @@ interface ConfigurationQueryTypes {
|
|
|
2031
2038
|
instrumentDelete: QueryDefinition<Links | undefined>;
|
|
2032
2039
|
instrumentUpdate: QueryDefinition<Links | undefined>;
|
|
2033
2040
|
executionId: QueryDefinition<string | undefined>;
|
|
2034
|
-
paymentMethodConfig: QueryDefinition<StorablePaymentCompositionOption | undefined>;
|
|
2041
|
+
paymentMethodConfig: QueryDefinition<StorablePaymentCompositionOption | StorablePaymentCompositionOption[] | undefined>;
|
|
2035
2042
|
paymentMethodInstruments: QueryDefinition<StoredPaymentInstrument<CardMetadata | PayPalMetadata>[] | undefined>;
|
|
2036
2043
|
}
|
|
2037
2044
|
|
|
@@ -2196,4 +2203,4 @@ interface PayrailsClientOptions {
|
|
|
2196
2203
|
}
|
|
2197
2204
|
|
|
2198
2205
|
export { AuthorizationFailureReasons, ElementType, INTEGRATION_TYPE, PAYMENT_METHOD_CODES, Payrails, PayrailsCollectContainer, PayrailsEnvironment };
|
|
2199
|
-
export type { ApplePayButtonOptions, CardFormOptions, CardListOptions, CardPaymentButtonOptions, CollectContainerOptions, DropinOptions, ExecutionMeta, ExecutionMetaCustomer, ExecutionMetaKey, GenericRedirectButtonOptions, GooglePayButtonOptions, InitOptions, LeanButtonOptions, PaymentEvents, PaypalButtonOptions, PayrailsAmount, PayrailsClientOptions, PayrailsContainerType, PayrailsSecureField, PayrailsSecureFieldEvent, ReturnInfo, SaveInstrumentResponse, WorkflowExecutionResponse };
|
|
2206
|
+
export type { ApplePayButtonOptions, CardFormOptions, CardListOptions, CardPaymentButtonOptions, CollectContainerOptions, DropinOptions, ExecutionMeta, ExecutionMetaCustomer, ExecutionMetaKey, GenericRedirectButtonOptions, GooglePayButtonOptions, InitOptions, LeanButtonOptions, PaymentEvents, PaypalButtonOptions, PayrailsAmount, PayrailsClientOptions, PayrailsContainerType, PayrailsSecureField, PayrailsSecureFieldEvent, ReturnInfo, SaveInstrumentResponse, StorablePaymentCompositionOption, WorkflowExecutionResponse };
|