@xsolla/payment-client-core 0.2.17 → 0.2.18
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/esm2020/lib/core/payment/payment.interface.mjs +1 -1
- package/esm2020/lib/core/payment/payment.service.mjs +20 -2
- package/esm2020/lib/core/sdk-payment-systems/google-pay/google-pay-button-color.type.mjs +2 -0
- package/esm2020/lib/core/sdk-payment-systems/google-pay/google-pay.service.mjs +3 -3
- package/esm2020/lib/core-library.service.mjs +2 -1
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/xsolla-payment-client-core.mjs +24 -4
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +22 -3
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/payment.interface.d.ts +1 -0
- package/lib/core/payment/payment.service.d.ts +2 -0
- package/lib/core/sdk-payment-systems/google-pay/google-pay-button-color.type.d.ts +1 -0
- package/lib/core/sdk-payment-systems/google-pay/google-pay.service.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/xsolla-payment-client-core-0.2.18.tgz +0 -0
- package/xsolla-payment-client-core-0.2.17.tgz +0 -0
|
@@ -15,6 +15,7 @@ export interface Payment {
|
|
|
15
15
|
submit(): Promise<NextAction | null | void>;
|
|
16
16
|
getFields(): Field[];
|
|
17
17
|
getPid(): number | null;
|
|
18
|
+
getSubmitButtonText(): string | null;
|
|
18
19
|
validate(field: Field): Promise<ValidationErrors | null>;
|
|
19
20
|
getFinanceDetails(): FinanceDetails | null;
|
|
20
21
|
runThreeDs(): void;
|
|
@@ -68,6 +68,7 @@ export declare class PaymentService {
|
|
|
68
68
|
getInitialDataForSdkPaymentSystems(): SdkPaymentSystemsInitialData;
|
|
69
69
|
getQrCode(): string;
|
|
70
70
|
getPid(): number | null;
|
|
71
|
+
getSubmitButtonText(): string | null;
|
|
71
72
|
validate(field: Field): Promise<ValidationErrors | null>;
|
|
72
73
|
runThreeDs(): void;
|
|
73
74
|
getFinanceDetails(): FinanceDetails | null;
|
|
@@ -89,6 +90,7 @@ export declare class PaymentService {
|
|
|
89
90
|
private listenFormStatusChanges;
|
|
90
91
|
private updatePidConfig;
|
|
91
92
|
private emitFormResponse;
|
|
93
|
+
private getInitializeMessages;
|
|
92
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentService, never>;
|
|
93
95
|
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentService>;
|
|
94
96
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GooglePayButtonColorType = 'default' | 'white' | 'black';
|
|
@@ -4,6 +4,7 @@ import { PaymentSystemProcessingService } from '../payment-systems/payment-syste
|
|
|
4
4
|
import { ExtendedWindow } from '../../extended-window.interface';
|
|
5
5
|
import { GooglePayInitParams } from './google-pay-init-params.interface';
|
|
6
6
|
import { CheckStatusAction } from '../../payment/actions/check-status/check-status.action.type';
|
|
7
|
+
import { GooglePayButtonColorType } from './google-pay-button-color.type';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class GooglePayService {
|
|
9
10
|
private readonly window;
|
|
@@ -23,7 +24,7 @@ export declare class GooglePayService {
|
|
|
23
24
|
initGooglePayLibrary(data: GooglePayInitParams): void;
|
|
24
25
|
checkPaymentDevice(base64checkoutData: string): void;
|
|
25
26
|
proceedCheckout(): Promise<CheckStatusAction | null>;
|
|
26
|
-
createButton(onClickHandler: () => void): HTMLButtonElement | null;
|
|
27
|
+
createButton(onClickHandler: () => void, buttonColor?: GooglePayButtonColorType): HTMLButtonElement | null;
|
|
27
28
|
private setupGooglePayClient;
|
|
28
29
|
private onLoadScript;
|
|
29
30
|
private isCancelledStatus;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export * from './lib/core/payment/form/control-status.interface';
|
|
|
10
10
|
export * from './lib/core/payment/field-names.enum';
|
|
11
11
|
export * from './lib/core/credit-card/credit-card-types.enum';
|
|
12
12
|
export * from './lib/core/countries-api/country-response.interface';
|
|
13
|
+
export * from './lib/core/sdk-payment-systems/google-pay/google-pay-button-color.type';
|
|
Binary file
|
|
Binary file
|