@payrails/web-sdk 5.46.0-RC.0 → 5.46.1
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 +7 -0
- package/index.js +4 -4
- package/index.mjs +4 -4
- package/package.json +1 -1
- package/payrails.d.ts +12 -29
- package/payrails.js +4 -4
package/package.json
CHANGED
package/payrails.d.ts
CHANGED
|
@@ -571,6 +571,10 @@ interface SdkConfiguration {
|
|
|
571
571
|
};
|
|
572
572
|
};
|
|
573
573
|
execution?: WorkflowExecutionResponse;
|
|
574
|
+
featureConfig?: SdkFeatureConfig;
|
|
575
|
+
}
|
|
576
|
+
interface SdkFeatureConfig {
|
|
577
|
+
gpayIframeRollout?: number;
|
|
574
578
|
}
|
|
575
579
|
interface PayrailsAmount {
|
|
576
580
|
value: string;
|
|
@@ -1535,7 +1539,7 @@ interface GooglePayButtonOptions extends StoreInstrumentElementOptions {
|
|
|
1535
1539
|
} & StoreInstrumentElementOptions['styles'];
|
|
1536
1540
|
returnInfo?: ReturnInfo;
|
|
1537
1541
|
}
|
|
1538
|
-
declare class GooglePayButton extends PayrailsElementWithStoreInstrumentCheckbox {
|
|
1542
|
+
declare class GooglePayButton$1 extends PayrailsElementWithStoreInstrumentCheckbox {
|
|
1539
1543
|
protected options: GooglePayButtonOptions;
|
|
1540
1544
|
private readonly paymentExecutor;
|
|
1541
1545
|
private static googleSDKClient;
|
|
@@ -1556,6 +1560,11 @@ declare class GooglePayButton extends PayrailsElementWithStoreInstrumentCheckbox
|
|
|
1556
1560
|
unmount(): void;
|
|
1557
1561
|
}
|
|
1558
1562
|
|
|
1563
|
+
declare class GooglePayButton extends PayrailsElementWithStoreInstrumentCheckbox {
|
|
1564
|
+
static isGooglePayAvailable(...args: Parameters<typeof GooglePayButton$1.isGooglePayAvailable>): Promise<boolean>;
|
|
1565
|
+
constructor(options: GooglePayButtonOptions);
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1559
1568
|
interface LeanButtonOptions {
|
|
1560
1569
|
id?: string;
|
|
1561
1570
|
events?: PaymentEvents;
|
|
@@ -2079,30 +2088,6 @@ interface PayPalScriptConfig {
|
|
|
2079
2088
|
locale?: string;
|
|
2080
2089
|
}
|
|
2081
2090
|
|
|
2082
|
-
interface PaymentAttemptContext {
|
|
2083
|
-
readonly executionId: string;
|
|
2084
|
-
readonly paymentMethodCode: PaymentMethodCode;
|
|
2085
|
-
}
|
|
2086
|
-
declare enum ACTION_REQUIRED_KIND {
|
|
2087
|
-
GENERIC_REDIRECT = "genericRedirect",
|
|
2088
|
-
THREE_DS = "3ds"
|
|
2089
|
-
}
|
|
2090
|
-
type ActionRequiredKind = `${ACTION_REQUIRED_KIND}`;
|
|
2091
|
-
interface ActionRequiredEvent extends PaymentAttemptContext {
|
|
2092
|
-
readonly url: string;
|
|
2093
|
-
readonly kind: ActionRequiredKind;
|
|
2094
|
-
/**
|
|
2095
|
-
* Call to take over the action. The SDK will not perform its default
|
|
2096
|
-
* behavior (navigate, mount the 3DS popup).
|
|
2097
|
-
*/
|
|
2098
|
-
preventDefault(): void;
|
|
2099
|
-
}
|
|
2100
|
-
type PayrailsEvents = {
|
|
2101
|
-
actionRequired: ActionRequiredEvent;
|
|
2102
|
-
};
|
|
2103
|
-
type PayrailsEventName = keyof PayrailsEvents;
|
|
2104
|
-
type PayrailsEventHandler<K extends PayrailsEventName> = (event: PayrailsEvents[K]) => void | Promise<void>;
|
|
2105
|
-
|
|
2106
2091
|
interface QueryDefinition<T> {
|
|
2107
2092
|
path: string[];
|
|
2108
2093
|
returnType: T;
|
|
@@ -2171,8 +2156,6 @@ declare class Payrails {
|
|
|
2171
2156
|
private logIntegrationMode;
|
|
2172
2157
|
private constructor();
|
|
2173
2158
|
private getContainerLayout;
|
|
2174
|
-
on<K extends PayrailsEventName>(name: K, handler: PayrailsEventHandler<K>): () => void;
|
|
2175
|
-
off<K extends PayrailsEventName>(name: K, handler: PayrailsEventHandler<K>): void;
|
|
2176
2159
|
binLookup(): Promise<any>;
|
|
2177
2160
|
}
|
|
2178
2161
|
interface ClientEvents {
|
|
@@ -2298,5 +2281,5 @@ interface PayrailsClientOptions {
|
|
|
2298
2281
|
};
|
|
2299
2282
|
}
|
|
2300
2283
|
|
|
2301
|
-
export {
|
|
2302
|
-
export type {
|
|
2284
|
+
export { AuthorizationFailureReasons, ElementType, INTEGRATION_TYPE, PAYMENT_METHOD_CODES, Payrails, PayrailsCollectContainer, PayrailsEnvironment, REVOLUT_PAY_DEFAULT_LABEL, REVOLUT_PAY_DEFAULT_THEME };
|
|
2285
|
+
export type { ApplePayButtonOptions, CardFormOptions, CardListOptions, CardPaymentButtonOptions, CollectContainerOptions, DropinOptions, ExecutionMeta, ExecutionMetaCustomer, ExecutionMetaKey, GenericRedirectButtonOptions, GooglePayButtonOptions, InitOptions, LeanButtonOptions, PaymentEvents, PaypalButtonOptions, PayrailsAmount, PayrailsClientOptions, PayrailsContainerType, PayrailsSecureField, PayrailsSecureFieldEvent, ReturnInfo, RevolutPayButtonTheme, RevolutPayStyles, SaveInstrumentResponse, StorablePaymentCompositionOption, WorkflowExecutionResponse };
|