@payrails/web-sdk 5.29.1-RC.4 → 5.29.1-RC.5
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 +1 -1
- package/payrails.d.ts +19 -2
- package/payrails.js +4 -4
package/package.json
CHANGED
package/payrails.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ declare class WorkflowExecution {
|
|
|
125
125
|
static get savedGooglePayAccounts(): StoredPaymentInstrument<CardMetadata>[];
|
|
126
126
|
static get savedApplePayAccounts(): StoredPaymentInstrument<CardMetadata>[];
|
|
127
127
|
static get paypalConfig(): PayPalConfig;
|
|
128
|
-
static get googlePayConfig():
|
|
128
|
+
static get googlePayConfig(): any;
|
|
129
129
|
static isPaymentMethodAvailable(paymentMethod: PAYMENT_METHOD_CODES): boolean;
|
|
130
130
|
static get applePayConfig(): {
|
|
131
131
|
merchantIdentifier: string;
|
|
@@ -172,6 +172,7 @@ declare class WorkflowExecution {
|
|
|
172
172
|
installments?: PaymentInstallmentsConfig;
|
|
173
173
|
supportsBillingInfo?: boolean;
|
|
174
174
|
schema?: JSONSchemaType;
|
|
175
|
+
additionalConfig?: any;
|
|
175
176
|
};
|
|
176
177
|
paymentMethodCode: PAYMENT_METHOD_CODES;
|
|
177
178
|
} | undefined;
|
|
@@ -187,6 +188,7 @@ declare class WorkflowExecution {
|
|
|
187
188
|
installments?: PaymentInstallmentsConfig;
|
|
188
189
|
supportsBillingInfo?: boolean;
|
|
189
190
|
schema?: JSONSchemaType;
|
|
191
|
+
additionalConfig?: any;
|
|
190
192
|
};
|
|
191
193
|
paymentMethodCode: PAYMENT_METHOD_CODES;
|
|
192
194
|
};
|
|
@@ -275,6 +277,7 @@ interface StorablePaymentCompositionOption<I = CardMetadata | PayPalMetadata, C
|
|
|
275
277
|
installments?: PaymentInstallmentsConfig;
|
|
276
278
|
supportsBillingInfo?: boolean;
|
|
277
279
|
schema?: JSONSchemaType;
|
|
280
|
+
additionalConfig?: any;
|
|
278
281
|
};
|
|
279
282
|
paymentInstruments?: Array<StoredPaymentInstrument<I>>;
|
|
280
283
|
}
|
|
@@ -282,9 +285,21 @@ interface GooglePayConfig {
|
|
|
282
285
|
parameters: {
|
|
283
286
|
allowedAuthMethods: google.payments.api.CardAuthMethod[];
|
|
284
287
|
allowedCardNetworks: google.payments.api.CardNetwork[];
|
|
288
|
+
billingAddressParameters?: {
|
|
289
|
+
format?: string;
|
|
290
|
+
};
|
|
291
|
+
billingAddressRequired?: boolean;
|
|
285
292
|
};
|
|
286
293
|
tokenizationSpecification: google.payments.api.PaymentMethodTokenizationSpecification;
|
|
287
294
|
type: google.payments.api.PaymentMethodType;
|
|
295
|
+
apiVersion?: number;
|
|
296
|
+
apiVersionMinor?: number;
|
|
297
|
+
allowedPaymentMethods?: google.payments.api.PaymentMethodSpecification[];
|
|
298
|
+
emailRequired?: boolean;
|
|
299
|
+
shippingAddressRequired?: boolean;
|
|
300
|
+
shippingAddressParameters?: google.payments.api.ShippingAddressParameters;
|
|
301
|
+
merchantInfo?: google.payments.api.MerchantInfo;
|
|
302
|
+
existingPaymentMethodRequired?: boolean;
|
|
288
303
|
}
|
|
289
304
|
interface PayPalConfig {
|
|
290
305
|
clientId: string;
|
|
@@ -1215,6 +1230,7 @@ interface LoadingScreenStyles {
|
|
|
1215
1230
|
[StyleKeys.loader]?: Partial<CSSStyleDeclaration>;
|
|
1216
1231
|
}
|
|
1217
1232
|
|
|
1233
|
+
type GooglePayConfigInput = google.payments.api.IsReadyToPayPaymentMethodSpecification[] | GooglePayConfig;
|
|
1218
1234
|
interface GooglePayButtonOptions extends StoreInstrumentElementOptions {
|
|
1219
1235
|
environment?: PayrailsEnvironment;
|
|
1220
1236
|
merchantInfo?: google.payments.api.MerchantInfo;
|
|
@@ -1237,8 +1253,9 @@ declare class GooglePayButton extends PayrailsElementWithStoreInstrumentCheckbox
|
|
|
1237
1253
|
private static googleSDKClient;
|
|
1238
1254
|
private sdkLoadedCalled;
|
|
1239
1255
|
private buttonElement;
|
|
1256
|
+
private static getGooglePayConfigAsArray;
|
|
1240
1257
|
private static getSDKClient;
|
|
1241
|
-
static isGooglePayAvailable(allowedPaymentMethods:
|
|
1258
|
+
static isGooglePayAvailable(allowedPaymentMethods: GooglePayConfigInput, environment?: PayrailsEnvironment, merchantInfo?: google.payments.api.MerchantInfo): Promise<boolean>;
|
|
1242
1259
|
constructor(options: GooglePayButtonOptions);
|
|
1243
1260
|
private sdkLoaded;
|
|
1244
1261
|
private onLoadPaymentData;
|