@payrails/web-sdk 5.28.0 → 5.28.1
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 +8 -3
- package/payrails.js +4 -4
package/package.json
CHANGED
package/payrails.d.ts
CHANGED
|
@@ -518,6 +518,7 @@ interface Mountable {
|
|
|
518
518
|
}
|
|
519
519
|
interface ElementOptions {
|
|
520
520
|
id?: string;
|
|
521
|
+
dataTestId?: string;
|
|
521
522
|
className?: string | string[];
|
|
522
523
|
styles?: Partial<CSSStyleDeclaration>;
|
|
523
524
|
}
|
|
@@ -525,8 +526,9 @@ declare class PayrailsElement implements Mountable {
|
|
|
525
526
|
protected element: HTMLElement;
|
|
526
527
|
protected subElements: Array<Mountable>;
|
|
527
528
|
readonly id: string | undefined;
|
|
529
|
+
readonly dataTestId: string | undefined;
|
|
528
530
|
protected eventBus: _payrails_iframe_event_bus.IframeEventBus;
|
|
529
|
-
constructor(elementType: string, { id, className }?: ElementOptions);
|
|
531
|
+
constructor(elementType: string, { id, className, dataTestId }?: ElementOptions);
|
|
530
532
|
get parentElement(): HTMLElement | null;
|
|
531
533
|
get selector(): string;
|
|
532
534
|
mount(location: string): void;
|
|
@@ -677,6 +679,7 @@ declare const regexes: {
|
|
|
677
679
|
hipercard: RegExp;
|
|
678
680
|
unionpay: RegExp;
|
|
679
681
|
maestro: RegExp;
|
|
682
|
+
elo: RegExp;
|
|
680
683
|
};
|
|
681
684
|
type CardNetwork = keyof typeof regexes;
|
|
682
685
|
|
|
@@ -833,7 +836,7 @@ declare class CardForm extends PayrailsElementWithStoreInstrumentCheckbox {
|
|
|
833
836
|
errors: string;
|
|
834
837
|
}>;
|
|
835
838
|
get isValid(): boolean;
|
|
836
|
-
get cardNetwork(): "" | "visa" | "mastercard" | "amex" | "diners" | "discover" | "jcb" | "hipercard" | "unionpay" | "maestro";
|
|
839
|
+
get cardNetwork(): "" | "visa" | "mastercard" | "amex" | "diners" | "discover" | "jcb" | "hipercard" | "unionpay" | "maestro" | "elo";
|
|
837
840
|
onChange(): void;
|
|
838
841
|
private updateInstallments;
|
|
839
842
|
private reset;
|
|
@@ -1010,9 +1013,10 @@ interface GooglePayButtonOptions extends StoreInstrumentElementOptions {
|
|
|
1010
1013
|
}
|
|
1011
1014
|
declare class GooglePayButton extends PayrailsElementWithStoreInstrumentCheckbox {
|
|
1012
1015
|
protected options: GooglePayButtonOptions;
|
|
1013
|
-
private static instance;
|
|
1014
1016
|
private readonly paymentExecutor;
|
|
1015
1017
|
private static googleSDKClient;
|
|
1018
|
+
private sdkLoadedCalled;
|
|
1019
|
+
private buttonElement;
|
|
1016
1020
|
private static getSDKClient;
|
|
1017
1021
|
static isGooglePayAvailable(allowedPaymentMethods: google.payments.api.IsReadyToPayPaymentMethodSpecification[], environment?: PayrailsEnvironment, merchantInfo?: google.payments.api.MerchantInfo): Promise<boolean>;
|
|
1018
1022
|
constructor(options: GooglePayButtonOptions);
|
|
@@ -1228,6 +1232,7 @@ interface DropinOptions {
|
|
|
1228
1232
|
[key: string]: any;
|
|
1229
1233
|
mercadoPago?: GenericRedirectDropinOptions['config'];
|
|
1230
1234
|
preselectFirstPaymentOption?: boolean;
|
|
1235
|
+
showPaymentMethodLogo?: boolean;
|
|
1231
1236
|
cards?: {
|
|
1232
1237
|
showCardHolderName?: boolean;
|
|
1233
1238
|
showExistingCards?: boolean;
|