@xsolla/payment-client-core 0.2.81 → 0.2.83
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/actions/redirect/acquirers-with-redirect-in-new-window.const.mjs +5 -0
- package/esm2022/lib/core/payment/actions/redirect/redirect.action.class.mjs +14 -1
- package/esm2022/lib/core/payment/actions/redirect/redirect.action.type.mjs +1 -1
- package/esm2022/lib/core/payment/credit-card-payment-methods-id.variable.mjs +3 -3
- package/esm2022/lib/core/payment/payment.service.mjs +7 -4
- package/esm2022/lib/core/payment/three-ds/dfp-collect/dfp-collect.service.mjs +7 -2
- package/esm2022/lib/core/payment/xps-api/xps-api.service.mjs +2 -2
- package/esm2022/lib/core/sdk-payment-systems/google-pay/google-pay-button-configuration.interface.mjs +2 -0
- package/esm2022/lib/core/sdk-payment-systems/google-pay/google-pay-library.interface.mjs +1 -1
- package/esm2022/lib/core/sdk-payment-systems/google-pay/google-pay.service.mjs +46 -3
- package/esm2022/lib/core/sdk-payment-systems/sdk-payment-systems-initial-data.interface.mjs +1 -1
- package/esm2022/lib/shared/translate/translate.helper.mjs +3 -3
- package/fesm2022/xsolla-payment-client-core.mjs +80 -14
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/actions/redirect/acquirers-with-redirect-in-new-window.const.d.ts +2 -0
- package/lib/core/payment/actions/redirect/redirect.action.class.d.ts +1 -0
- package/lib/core/payment/actions/redirect/redirect.action.type.d.ts +1 -0
- package/lib/core/payment/credit-card-payment-methods-id.variable.d.ts +1 -1
- package/lib/core/payment/payment.service.d.ts +3 -1
- package/lib/core/sdk-payment-systems/google-pay/google-pay-button-configuration.interface.d.ts +5 -0
- package/lib/core/sdk-payment-systems/google-pay/google-pay-library.interface.d.ts +1 -0
- package/lib/core/sdk-payment-systems/google-pay/google-pay.service.d.ts +3 -2
- package/lib/core/sdk-payment-systems/sdk-payment-systems-initial-data.interface.d.ts +1 -0
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.2.83.tgz +0 -0
- package/xsolla-payment-client-core-0.2.81.tgz +0 -0
|
@@ -11,6 +11,7 @@ export declare class RedirectActionCreator implements ActionCreator {
|
|
|
11
11
|
isSuitable(response: SubmitResponse): boolean;
|
|
12
12
|
private getRedirect;
|
|
13
13
|
private getRedirectUrl;
|
|
14
|
+
private getIsNewWindowRequired;
|
|
14
15
|
private preparePagesUrl;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<RedirectActionCreator, never>;
|
|
16
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<RedirectActionCreator>;
|
|
@@ -3,4 +3,4 @@ export declare const maestroPaymentMethodId = 490;
|
|
|
3
3
|
export declare const creditCardPaymentMethodId: 1380;
|
|
4
4
|
export declare const americanExpressMethodId = 714;
|
|
5
5
|
export declare const specialCards: number[];
|
|
6
|
-
export declare const cardsWith3ds: number
|
|
6
|
+
export declare const cardsWith3ds: Set<number>;
|
|
@@ -36,6 +36,7 @@ import { PrintInstructionService } from '../xsolla-number/api/print-instruction/
|
|
|
36
36
|
import { SyncResponse } from './requests/sync/response/sync-response.class';
|
|
37
37
|
import { PaymentBehaviourService } from './payment-behaviour/payment-behaviour.service';
|
|
38
38
|
import { LoggerService } from '../exceptions-handling/logger/logger.service';
|
|
39
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
39
40
|
import * as i0 from "@angular/core";
|
|
40
41
|
export declare class PaymentService {
|
|
41
42
|
private readonly loggerService;
|
|
@@ -56,6 +57,7 @@ export declare class PaymentService {
|
|
|
56
57
|
private readonly checkStatusActionCreator;
|
|
57
58
|
private readonly printInstructionService;
|
|
58
59
|
private readonly paymentBehaviourService;
|
|
60
|
+
private readonly translateService;
|
|
59
61
|
form: UntypedFormGroup | null;
|
|
60
62
|
get formFieldsStatus$(): Observable<FormFieldsStatus>;
|
|
61
63
|
get paymentForm$(): Observable<FormControlStatus | null>;
|
|
@@ -72,7 +74,7 @@ export declare class PaymentService {
|
|
|
72
74
|
private readonly formFieldsStatusSubject;
|
|
73
75
|
private readonly _formResponse$;
|
|
74
76
|
private isSavingMethodMode;
|
|
75
|
-
constructor(loggerService: LoggerService, initializeService: InitializeService, submitService: SubmitService, syncService: SyncService, formService: FormService, statusService: StatusService, financeDetailsService: FinanceDetailsService, creditCardStateService: CreditCardStateService, nextActionService: NextActionService, initializeNextActionService: InitializeNextActionService, controlConfigService: ControlConfigService, threeDsService: ThreeDsService, formMessagesService: FormMessagesService, settingsService: SettingsService, countryService: CountryService, checkStatusActionCreator: CheckStatusActionCreator, printInstructionService: PrintInstructionService, paymentBehaviourService: PaymentBehaviourService);
|
|
77
|
+
constructor(loggerService: LoggerService, initializeService: InitializeService, submitService: SubmitService, syncService: SyncService, formService: FormService, statusService: StatusService, financeDetailsService: FinanceDetailsService, creditCardStateService: CreditCardStateService, nextActionService: NextActionService, initializeNextActionService: InitializeNextActionService, controlConfigService: ControlConfigService, threeDsService: ThreeDsService, formMessagesService: FormMessagesService, settingsService: SettingsService, countryService: CountryService, checkStatusActionCreator: CheckStatusActionCreator, printInstructionService: PrintInstructionService, paymentBehaviourService: PaymentBehaviourService, translateService: TranslateService);
|
|
76
78
|
initialize(config: PaymentConfiguration): Promise<InitializedForm>;
|
|
77
79
|
submit(): Promise<NextAction | null | void>;
|
|
78
80
|
submitWithFields(fields?: Field[]): Promise<SubmitResponse>;
|
|
@@ -4,11 +4,11 @@ import { ExtendedWindow } from '../../extended-window.interface';
|
|
|
4
4
|
import { CheckStatusAction } from '../../payment/actions/check-status/check-status.action.type';
|
|
5
5
|
import { PaymentSystemProcessingService } from '../payment-systems/payment-system-processing.service';
|
|
6
6
|
import { CheckPaymentDeviceData } from './check-payment-device-data.interface';
|
|
7
|
-
import { GooglePayButtonColorType } from './google-pay-button-color.type';
|
|
8
7
|
import { GooglePayInitParams } from './google-pay-init-params.interface';
|
|
9
8
|
import { GooglePayCheckoutPaymentService } from './payment/google-pay-checkout-payment.service';
|
|
10
9
|
import { GooglePayInstantPaymentService } from './payment/google-pay-instant-payment.service';
|
|
11
10
|
import { LoggerService } from '../../exceptions-handling/logger/logger.service';
|
|
11
|
+
import { GooglePayButtonConfiguration } from './google-pay-button-configuration.interface';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class GooglePayService {
|
|
14
14
|
private readonly window;
|
|
@@ -32,12 +32,13 @@ export declare class GooglePayService {
|
|
|
32
32
|
initGooglePayLibrary(data: GooglePayInitParams): void;
|
|
33
33
|
checkPaymentDevice(data: CheckPaymentDeviceData): void;
|
|
34
34
|
proceedCheckout(): Promise<CheckStatusAction | null>;
|
|
35
|
-
createButton(onClickHandler: () => void,
|
|
35
|
+
createButton(onClickHandler: () => void, configuration: GooglePayButtonConfiguration): HTMLButtonElement | null;
|
|
36
36
|
private setupGooglePayClient;
|
|
37
37
|
private onLoadScript;
|
|
38
38
|
private getPaymentService;
|
|
39
39
|
private isClosedByUser;
|
|
40
40
|
private isCanceledStatus;
|
|
41
|
+
private getLocaleForButton;
|
|
41
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<GooglePayService, never>;
|
|
42
43
|
static ɵprov: i0.ɵɵInjectableDeclaration<GooglePayService>;
|
|
43
44
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|