@xsolla/payment-client-core 0.2.33 → 0.2.34
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/agreementsGroup.const.mjs +4 -1
- package/esm2022/lib/core/payment/field-names.enum.mjs +13 -1
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/apple-pay-integration.type.mjs +1 -1
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/apple-pay.const.mjs +1 -2
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/apple-pay.service.mjs +25 -82
- package/esm2022/lib/core/sdk-payment-systems/apple-pay/checkout-params.interface.mjs +1 -1
- package/fesm2022/xsolla-payment-client-core.mjs +38 -81
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/field-names.enum.d.ts +13 -1
- package/lib/core/sdk-payment-systems/apple-pay/apple-pay-integration.type.d.ts +1 -1
- package/lib/core/sdk-payment-systems/apple-pay/apple-pay.const.d.ts +0 -1
- package/lib/core/sdk-payment-systems/apple-pay/apple-pay.service.d.ts +0 -2
- package/lib/core/sdk-payment-systems/apple-pay/checkout-params.interface.d.ts +3 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.2.34.tgz +0 -0
- package/xsolla-payment-client-core-0.2.33.tgz +0 -0
|
@@ -48,6 +48,7 @@ export declare enum FieldNames {
|
|
|
48
48
|
termsAndConditionsRolandEula = "termsAndConditionsRolandEula",
|
|
49
49
|
termsAndConditionsDeusLoVultEula = "termsAndConditionsDeusLoVultEula",
|
|
50
50
|
termsAndConditionsOnzenga = "termsAndConditionsOnzenga",
|
|
51
|
+
licenseDisclaimer = "licenseDisclaimer",
|
|
51
52
|
xsollaTipsAmount = "xsollaTipsAmount",
|
|
52
53
|
zip = "zip",
|
|
53
54
|
allowSave = "allowSave",
|
|
@@ -62,5 +63,16 @@ export declare enum FieldNames {
|
|
|
62
63
|
tinkoffDisclaimer = "ps.tinkoff.disclaimer",
|
|
63
64
|
ppEmail = "pp_email",
|
|
64
65
|
redeemPoints = "redeemPoints",
|
|
65
|
-
omnibusDirective = "omnibus_directive"
|
|
66
|
+
omnibusDirective = "omnibus_directive",
|
|
67
|
+
labelApplePay = "label_applePay",
|
|
68
|
+
countryCode = "countryCode",
|
|
69
|
+
merchantCapabilities = "merchantCapabilities",
|
|
70
|
+
requiredBillingContactFields = "requiredBillingContactFields",
|
|
71
|
+
requiredShippingContactFields = "requiredShippingContactFields",
|
|
72
|
+
supportedNetworks = "supportedNetworks",
|
|
73
|
+
acquirer = "acquirer",
|
|
74
|
+
isSandbox = "isSandbox",
|
|
75
|
+
payInstanceAccountId = "payInstanceAccountId",
|
|
76
|
+
getApplePaySessionUrl = "getApplePaySessionUrl",
|
|
77
|
+
payViaCheckoutUrl = "payViaCheckoutUrl"
|
|
66
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ApplePayIntegration = '
|
|
1
|
+
export type ApplePayIntegration = 'redirect' | 'none';
|
|
@@ -27,7 +27,6 @@ export declare class ApplePayService {
|
|
|
27
27
|
initLibrary(tokenKey: string): Promise<void>;
|
|
28
28
|
redirectToPaymentPage(parameters: ApplePayParams, token: string, isSandbox?: boolean): string | undefined;
|
|
29
29
|
setOrder(data: unknown): void;
|
|
30
|
-
proceedCheckout(parameters?: ApplePayParams): void;
|
|
31
30
|
isDeviceCapable(): boolean;
|
|
32
31
|
getTokenNonceFieldData(tokenNonce: string): {
|
|
33
32
|
name: string;
|
|
@@ -41,7 +40,6 @@ export declare class ApplePayService {
|
|
|
41
40
|
private getJsonValueFromField;
|
|
42
41
|
private emitError;
|
|
43
42
|
private emitIntegrationType;
|
|
44
|
-
private canUseSdk;
|
|
45
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApplePayService, never>;
|
|
46
44
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApplePayService>;
|
|
47
45
|
}
|
|
@@ -4,8 +4,10 @@ export interface ApplePayCheckoutParams {
|
|
|
4
4
|
currencyCode: string;
|
|
5
5
|
countryCode: string;
|
|
6
6
|
merchantCapabilities: string[] | undefined;
|
|
7
|
+
requiredBillingContactFields: string[] | undefined;
|
|
8
|
+
requiredShippingContactFields: string[] | undefined;
|
|
7
9
|
supportedNetworks: string[] | undefined;
|
|
8
|
-
agreements: string[];
|
|
10
|
+
agreements: string[][];
|
|
9
11
|
acquirer: string;
|
|
10
12
|
isSandbox: string;
|
|
11
13
|
payInstanceAccountId: string;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|