@payrails/web-sdk 5.22.2 → 5.22.3-RC.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/index.js +4 -4
- package/package.json +2 -2
- package/payrails.d.ts +3 -21
- package/payrails.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payrails/web-sdk",
|
|
3
|
-
"version": "5.22.
|
|
3
|
+
"version": "5.22.3-RC.0",
|
|
4
4
|
"description": "SDK providing tokenization options on the client for merchants",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "payrails.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"author": "Payrails GitHub Bot <github@payrails.com>",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@payrails/fraud-sdk": "1.4.
|
|
11
|
+
"@payrails/fraud-sdk": "1.4.2",
|
|
12
12
|
"@payrails/web-cse": "1.2.3",
|
|
13
13
|
"@types/applepayjs": "14.0.4",
|
|
14
14
|
"@types/googlepay": "0.7.5"
|
package/payrails.d.ts
CHANGED
|
@@ -1046,7 +1046,6 @@ interface GooglePayDropinOptions extends GooglePayButtonOptions {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
1048
|
interface PaypalButtonOptions extends StoreInstrumentElementOptions {
|
|
1049
|
-
fraudNetGuid?: string;
|
|
1050
1049
|
events?: PaymentEvents & UIEvents & {
|
|
1051
1050
|
onPaypalAvailable?: () => void;
|
|
1052
1051
|
};
|
|
@@ -1061,7 +1060,6 @@ interface PaypalButtonOptions extends StoreInstrumentElementOptions {
|
|
|
1061
1060
|
declare class PaypalButton extends PayrailsElementWithStoreInstrumentCheckbox {
|
|
1062
1061
|
protected options?: PaypalButtonOptions | undefined;
|
|
1063
1062
|
constructor(options?: PaypalButtonOptions | undefined);
|
|
1064
|
-
fraudNetGuid: string | undefined;
|
|
1065
1063
|
private paymentExecutor;
|
|
1066
1064
|
private button;
|
|
1067
1065
|
private confirmLink;
|
|
@@ -1077,6 +1075,7 @@ declare class PaypalButton extends PayrailsElementWithStoreInstrumentCheckbox {
|
|
|
1077
1075
|
private createBaseConfig;
|
|
1078
1076
|
private createOneTimeOrder;
|
|
1079
1077
|
private approvePayment;
|
|
1078
|
+
private get fraudNetGuid();
|
|
1080
1079
|
mount(location: string): void;
|
|
1081
1080
|
unmount(): void;
|
|
1082
1081
|
}
|
|
@@ -1188,12 +1187,12 @@ interface ContainerStyles {
|
|
|
1188
1187
|
}
|
|
1189
1188
|
|
|
1190
1189
|
declare class SdkLoader {
|
|
1190
|
+
private static readonly scriptMap;
|
|
1191
1191
|
static load<T = void>(sdk: ThirdPartySDK, params?: PayPalScriptConfig): Promise<T>;
|
|
1192
1192
|
static reset(): void;
|
|
1193
1193
|
static preloadCardForm(): void;
|
|
1194
1194
|
private static loadScript;
|
|
1195
1195
|
private static loadPayPalScript;
|
|
1196
|
-
private static readonly scriptMap;
|
|
1197
1196
|
private constructor();
|
|
1198
1197
|
private static logLoadError;
|
|
1199
1198
|
}
|
|
@@ -1204,26 +1203,11 @@ interface PayPalScriptConfig {
|
|
|
1204
1203
|
intent: 'tokenize' | 'capture' | 'authorize';
|
|
1205
1204
|
}
|
|
1206
1205
|
declare enum ThirdPartySDK {
|
|
1207
|
-
ApplePay = "https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js",
|
|
1206
|
+
ApplePay = "https://applepay.cdn-apple.com/jsapi/v1.2.0/apple-pay-sdk.js",
|
|
1208
1207
|
GooglePay = "https://pay.google.com/gp/p/js/pay.js",
|
|
1209
1208
|
PayPal = "paypal-sdk"
|
|
1210
1209
|
}
|
|
1211
1210
|
|
|
1212
|
-
type FraudNetPageId = 'home-page' | 'search-result-page' | 'category-page' | 'product-detail-page' | 'cart-page' | 'inline-cart-page' | 'checkout-page';
|
|
1213
|
-
declare class FraudNet implements Mountable {
|
|
1214
|
-
private pageId;
|
|
1215
|
-
private environment;
|
|
1216
|
-
constructor(pageId: FraudNetPageId, environment: PayrailsClientOptions['environment']);
|
|
1217
|
-
readonly guid: any;
|
|
1218
|
-
mount(): void;
|
|
1219
|
-
unmount(): void;
|
|
1220
|
-
private loadFraudnet;
|
|
1221
|
-
private readonly fnclsVal;
|
|
1222
|
-
private readonly configId;
|
|
1223
|
-
private readonly scriptId;
|
|
1224
|
-
private createFraudnetConfig;
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
1211
|
interface PayrailsClientOptions {
|
|
1228
1212
|
environment?: PayrailsEnvironment;
|
|
1229
1213
|
events?: ClientEvents;
|
|
@@ -1241,7 +1225,6 @@ declare class Payrails {
|
|
|
1241
1225
|
private __cardForm;
|
|
1242
1226
|
private __cardList;
|
|
1243
1227
|
private __cardPaymentButton;
|
|
1244
|
-
private __fraudNet;
|
|
1245
1228
|
private __paypalButton;
|
|
1246
1229
|
private __genericRedirectButton;
|
|
1247
1230
|
private __dropin;
|
|
@@ -1265,7 +1248,6 @@ declare class Payrails {
|
|
|
1265
1248
|
paypalButton(options?: PaypalButtonOptions): PaypalButton;
|
|
1266
1249
|
genericRedirectButton(options: GenericRedirectButtonOptions): GenericRedirectButton;
|
|
1267
1250
|
getSavedPaypalAccounts(): StoredPaymentInstrument<PayPalMetadata>[];
|
|
1268
|
-
fraudNet(pageId: FraudNetPageId): FraudNet;
|
|
1269
1251
|
private logIntegrationMode;
|
|
1270
1252
|
private constructor();
|
|
1271
1253
|
private getContainerLayout;
|