@xsolla/payment-client-core 0.6.0 → 0.7.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/esm2022/lib/core/payment/three-ds/dfp-collect/dfp-collect.service.mjs +18 -14
- package/esm2022/lib/core/payment/three-ds/three-ds-20/three-ds20.service.mjs +5 -2
- package/esm2022/lib/core/payment/three-ds/three-ds-form.interface.mjs +1 -1
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/instant-flow-check/apple-pay-instant-flow-check.service.mjs +85 -0
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/instant-flow-check/check-errors.enum.mjs +9 -0
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/instant-flow-check/instant-flow-checker-response.interface.mjs +2 -0
- package/esm2022/lib/core/sdk-payment-systems/google-pay/instant-flow-check/check-errors.enum.mjs +6 -0
- package/esm2022/lib/core/sdk-payment-systems/google-pay/instant-flow-check/google-pay-instant-flow-check.service.mjs +43 -0
- package/esm2022/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-analytics.service.mjs +38 -0
- package/esm2022/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-check-name.enum.mjs +8 -0
- package/esm2022/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-check-result.interface.mjs +2 -0
- package/esm2022/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-check-state.enum.mjs +6 -0
- package/esm2022/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-checks.collector.mjs +26 -0
- package/esm2022/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-trigger.enum.mjs +6 -0
- package/esm2022/lib/core/user-behaviour-analytics/user-behaviour-event-name.enum.mjs +2 -1
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +12 -1
- package/fesm2022/xsolla-payment-client-core.mjs +224 -16
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/three-ds/dfp-collect/dfp-collect.service.d.ts +0 -1
- package/lib/core/payment/three-ds/three-ds-20/three-ds20.service.d.ts +1 -0
- package/lib/core/payment/three-ds/three-ds-form.interface.d.ts +1 -0
- package/lib/core/sdk-payment-systems/apple-pay/instant-flow-check/apple-pay-instant-flow-check.service.d.ts +19 -0
- package/lib/core/sdk-payment-systems/apple-pay/instant-flow-check/check-errors.enum.d.ts +7 -0
- package/lib/core/sdk-payment-systems/apple-pay/instant-flow-check/instant-flow-checker-response.interface.d.ts +3 -0
- package/lib/core/sdk-payment-systems/google-pay/instant-flow-check/check-errors.enum.d.ts +4 -0
- package/lib/core/sdk-payment-systems/google-pay/instant-flow-check/google-pay-instant-flow-check.service.d.ts +14 -0
- package/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-analytics.service.d.ts +12 -0
- package/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-check-name.enum.d.ts +6 -0
- package/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-check-result.interface.d.ts +8 -0
- package/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-check-state.enum.d.ts +4 -0
- package/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-checks.collector.d.ts +10 -0
- package/lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-trigger.enum.d.ts +4 -0
- package/lib/core/user-behaviour-analytics/user-behaviour-event-name.enum.d.ts +2 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +11 -0
|
@@ -9,7 +9,6 @@ export declare class DfpCollectService {
|
|
|
9
9
|
private readonly formName;
|
|
10
10
|
constructor(window: ExtendedWindow, notifyDfpStatusService: NotifyDfpStatusService);
|
|
11
11
|
collectDfpStatus(threeDsForm: ThreeDsForm): void;
|
|
12
|
-
private openIframeWithPostRequest;
|
|
13
12
|
private createIframe;
|
|
14
13
|
private postFormToIframe;
|
|
15
14
|
private createForm;
|
|
@@ -24,6 +24,7 @@ export declare class ThreeDs20Service {
|
|
|
24
24
|
private latestDfpParameters;
|
|
25
25
|
private readonly notifyDfpTimerId;
|
|
26
26
|
private readonly notifyDfpTimeoutMs;
|
|
27
|
+
private readonly providerHostedDfpNotifyDfpTimeoutMs;
|
|
27
28
|
private readonly statusThreeDsTimerId;
|
|
28
29
|
private readonly statusThreeDsTimeoutMs;
|
|
29
30
|
constructor(statusThreeDsService: StatusThreeDsService, notifyDfpStatusService: NotifyDfpStatusService, webSocketFactory: WebSocketFactory, dfpCollectService: DfpCollectService, reinsuranceCheckService: ReinsuranceCheckService, userBehaviourAnalyticsService: UserBehaviourAnalyticsService);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SecureApiClient } from '../../../http/secure-api/secure-api.service';
|
|
2
|
+
import { SettingsService } from '../../../settings/settings.service';
|
|
3
|
+
import { LoggerService } from '../../../exceptions-handling/logger/logger.service';
|
|
4
|
+
import { InstantFlowCheckResult } from '../../instant-flow-checks/instant-flow-check-result.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ApplePayInstantFlowCheckService {
|
|
7
|
+
private readonly secureApiClient;
|
|
8
|
+
private readonly settingsService;
|
|
9
|
+
private readonly loggerService;
|
|
10
|
+
private checkPromise;
|
|
11
|
+
constructor(secureApiClient: SecureApiClient, settingsService: SettingsService, loggerService: LoggerService);
|
|
12
|
+
isInstantFlowAvailable(): Promise<InstantFlowCheckResult>;
|
|
13
|
+
private performInstantFlowChecks;
|
|
14
|
+
private checkIntegrationToggle;
|
|
15
|
+
private checkPartnerDomain;
|
|
16
|
+
private checkAppleCertificates;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApplePayInstantFlowCheckService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApplePayInstantFlowCheckService>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum InstantFlowCheckErrors {
|
|
2
|
+
TOGGLE_TURNED_OFF = "TOGGLE_TURNED_OFF",
|
|
3
|
+
PARTNER_DOMAIN_MISSING = "PARTNER_DOMAIN_MISSING",
|
|
4
|
+
PARTNER_DOMAIN_WRONG_FORMAT = "PARTNER_DOMAIN_WRONG_FORMAT",
|
|
5
|
+
CERTIFICATES_MISSING = "CERTIFICATES_MISSING",
|
|
6
|
+
CERTIFICATES_CHECK_FAILED = "CERTIFICATES_CHECK_FAILED"
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SettingsService } from '../../../settings/settings.service';
|
|
2
|
+
import { PaymentService } from '../../../payment/payment.service';
|
|
3
|
+
import { InstantFlowCheckResult } from '../../instant-flow-checks/instant-flow-check-result.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GooglePayInstantFlowCheckService {
|
|
6
|
+
private readonly settingsService;
|
|
7
|
+
private readonly paymentService;
|
|
8
|
+
constructor(settingsService: SettingsService, paymentService: PaymentService);
|
|
9
|
+
getInstantFlowChecks(): InstantFlowCheckResult;
|
|
10
|
+
private checkIntegrationToggle;
|
|
11
|
+
private checkBackendInstantData;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GooglePayInstantFlowCheckService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GooglePayInstantFlowCheckService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UserBehaviourAnalyticsService } from '../../user-behaviour-analytics/user-behaviour-analytics.service';
|
|
2
|
+
import { InstantFlowCheckResult } from './instant-flow-check-result.interface';
|
|
3
|
+
import { InstantFlowTrigger } from './instant-flow-trigger.enum';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InstantFlowAnalyticsService {
|
|
6
|
+
private readonly userBehaviourAnalyticsService;
|
|
7
|
+
constructor(userBehaviourAnalyticsService: UserBehaviourAnalyticsService);
|
|
8
|
+
sendInstantFlowData(instanceId: number, trigger: InstantFlowTrigger, result: InstantFlowCheckResult): void;
|
|
9
|
+
private isSupportedByClient;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InstantFlowAnalyticsService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InstantFlowAnalyticsService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InstantFlowCheckName } from './instant-flow-check-name.enum';
|
|
2
|
+
import { InstantFlowCheckResult } from './instant-flow-check-result.interface';
|
|
3
|
+
export declare class InstantFlowChecksCollector {
|
|
4
|
+
private readonly checks;
|
|
5
|
+
private hasFailedChecks;
|
|
6
|
+
add(name: InstantFlowCheckName, error: string | null): void;
|
|
7
|
+
skip(name: InstantFlowCheckName): void;
|
|
8
|
+
isPassing(): boolean;
|
|
9
|
+
getResult(): InstantFlowCheckResult;
|
|
10
|
+
}
|
|
@@ -44,5 +44,6 @@ export declare enum UserBehaviourEventName {
|
|
|
44
44
|
applePayAcquirer = "apple-pay-acquirer",
|
|
45
45
|
googlePayHandleFailedPayment = "google-pay-handle-failed-payment",
|
|
46
46
|
googlePayHandleSuccessfulPayment = "google-pay-handle-successful-payment",
|
|
47
|
-
sysInstantFlowOpen = "sys-instant_flow-open"
|
|
47
|
+
sysInstantFlowOpen = "sys-instant_flow-open",
|
|
48
|
+
sysInstantFlowData = "sys-instant_flow-data"
|
|
48
49
|
}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PAYMENT_CLIENT_CORE_VERSION = "0.
|
|
1
|
+
export declare const PAYMENT_CLIENT_CORE_VERSION = "0.7.0";
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -4,9 +4,19 @@ export * from './lib/core-library.module';
|
|
|
4
4
|
export * from './lib/core/legal/legal.component.config';
|
|
5
5
|
export * from './lib/core/sdk-payment-systems/payment-systems/payment-system-processing.service';
|
|
6
6
|
export * from './lib/core/sdk-payment-systems/google-pay/google-pay.service';
|
|
7
|
+
export * from './lib/core/sdk-payment-systems/google-pay/instant-flow-check/google-pay-instant-flow-check.service';
|
|
8
|
+
export * from './lib/core/sdk-payment-systems/google-pay/instant-flow-check/check-errors.enum';
|
|
7
9
|
export * from './lib/core/sdk-payment-systems/apple-pay/apple-pay.service';
|
|
8
10
|
export * from './lib/core/sdk-payment-systems/apple-pay/apple-pay-cart/apple-pay-cart.service';
|
|
9
11
|
export * from './lib/core/sdk-payment-systems/apple-pay/apple-pay-params.interface';
|
|
12
|
+
export * from './lib/core/sdk-payment-systems/apple-pay/instant-flow-check/apple-pay-instant-flow-check.service';
|
|
13
|
+
export * from './lib/core/sdk-payment-systems/apple-pay/instant-flow-check/check-errors.enum';
|
|
14
|
+
export * from './lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-analytics.service';
|
|
15
|
+
export * from './lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-check-name.enum';
|
|
16
|
+
export * from './lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-check-result.interface';
|
|
17
|
+
export * from './lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-check-state.enum';
|
|
18
|
+
export * from './lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-checks.collector';
|
|
19
|
+
export * from './lib/core/sdk-payment-systems/instant-flow-checks/instant-flow-trigger.enum';
|
|
10
20
|
export * from './lib/core/user-behaviour-analytics/user-behaviour-event/user-behaviour-event-types';
|
|
11
21
|
export * from './lib/core/payment/form/control-status.interface';
|
|
12
22
|
export * from './lib/core/payment/field-names.enum';
|
|
@@ -16,6 +26,7 @@ export * from './lib/core/transaction-initiation-type.enum';
|
|
|
16
26
|
export * from './lib/core/payment/payment-configurations/types/is-credit-card-settings.guard';
|
|
17
27
|
export * from './lib/core/payment/payment-configurations/types/credit-card-form-configuration.interface';
|
|
18
28
|
export * from './lib/core/payment/credit-card-payment-methods-id.variable';
|
|
29
|
+
export * from './lib/core/payment/actions/redirect/ps4-pages/pages-payment-methods-id.const';
|
|
19
30
|
export * from './lib/core/sdk-payment-systems/google-pay/google-pay-button-color.type';
|
|
20
31
|
export * from './lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.interface';
|
|
21
32
|
export * from './lib/core/exceptions-handling/errors';
|