@payrails/web-sdk 5.31.1-RC.0 → 5.31.2-RC.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payrails/web-sdk",
3
- "version": "5.31.1-RC.0",
3
+ "version": "5.31.2-RC.0",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
package/payrails.d.ts CHANGED
@@ -912,6 +912,7 @@ declare class PayrailsCollectContainer implements Mountable {
912
912
  private element;
913
913
  private readonly cardTableName;
914
914
  private readonly containerType;
915
+ private manualErrorElements;
915
916
  constructor(__client: Skyflow, options: CollectContainerOptions);
916
917
  static init(vaultClient: Skyflow, options: CollectContainerOptions): PayrailsCollectContainer;
917
918
  createCollectElement(options: CollectElementOptions): PayrailsSecureField;
@@ -976,7 +977,7 @@ declare const regexes: {
976
977
  visa: RegExp;
977
978
  mastercard: RegExp;
978
979
  amex: RegExp;
979
- diners: RegExp;
980
+ diners_club: RegExp;
980
981
  discover: RegExp;
981
982
  jcb: RegExp;
982
983
  hipercard: RegExp;
@@ -1148,7 +1149,7 @@ declare class CardForm extends PayrailsElementWithStoreInstrumentCheckbox {
1148
1149
  errors: string;
1149
1150
  }>;
1150
1151
  get isValid(): boolean;
1151
- get cardNetwork(): "" | "visa" | "mastercard" | "amex" | "diners" | "discover" | "jcb" | "hipercard" | "unionpay" | "maestro" | "elo";
1152
+ get cardNetwork(): "" | "visa" | "mastercard" | "amex" | "diners_club" | "discover" | "jcb" | "hipercard" | "unionpay" | "maestro" | "elo";
1152
1153
  onChange(): void;
1153
1154
  private updateInstallments;
1154
1155
  private reset;
@@ -1310,7 +1311,6 @@ declare enum AuthorizationFailureReasons {
1310
1311
  VALIDATION_FAILED = "VALIDATION_FAILED",
1311
1312
  AUTHORIZATION_ERROR = "AUTHORIZATION_ERROR",
1312
1313
  AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR",
1313
- FRAUD_RISK_DECLINED = "FRAUD_RISK_DECLINED",
1314
1314
  UNKNOWN_ERROR = "UNKNOWN_ERROR",
1315
1315
  USER_CANCELLED = "USER_CANCELLED"
1316
1316
  }
@@ -1423,6 +1423,7 @@ interface GenericRedirectButtonOptions {
1423
1423
  };
1424
1424
  events?: PaymentEvents;
1425
1425
  paymentMethod: BasePaymentMethodConfig;
1426
+ openInNewTab?: boolean;
1426
1427
  }
1427
1428
  declare class GenericRedirectButton extends PayrailsElement {
1428
1429
  protected options: GenericRedirectButtonOptions;
@@ -1453,6 +1454,7 @@ interface GenericRedirectDropinOptions {
1453
1454
  paymentMethod: StorablePaymentCompositionOption;
1454
1455
  config?: {
1455
1456
  showPaymentMethodLogo?: boolean;
1457
+ openInNewTab?: boolean;
1456
1458
  };
1457
1459
  styles?: {
1458
1460
  element?: DropinElementStyles;