@payrails/web-sdk 5.14.0 → 5.15.0-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.14.0",
3
+ "version": "5.15.0-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
@@ -556,6 +556,7 @@ declare abstract class PayrailsElementWithStoreInstrumentCheckbox extends Payrai
556
556
 
557
557
  interface ApplePayButtonOptions extends StoreInstrumentElementOptions {
558
558
  clientDomain?: string;
559
+ showPaymentMethodLogo?: boolean;
559
560
  events?: PaymentEvents & {
560
561
  onApplePayAvailable?: () => void;
561
562
  };
@@ -802,6 +803,7 @@ interface GooglePayButtonOptions extends StoreInstrumentElementOptions {
802
803
  environment?: PayrailsEnvironment;
803
804
  merchantInfo?: google.payments.api.MerchantInfo;
804
805
  redirectFor3DS?: boolean;
806
+ showPaymentMethodLogo?: boolean;
805
807
  events?: PaymentEvents & UIEvents & {
806
808
  onGooglePayAvailable?: () => void;
807
809
  };
@@ -880,6 +882,9 @@ declare class GenericRedirectButton extends PayrailsElement {
880
882
 
881
883
  interface GenericRedirectDropinOptions {
882
884
  paymentMethod: StorablePaymentCompositionOption;
885
+ config?: {
886
+ showPaymentMethodLogo?: boolean;
887
+ };
883
888
  styles?: {
884
889
  element?: DropinElementStyles;
885
890
  button: ButtonOptions['styles'];
@@ -940,6 +945,7 @@ declare class PaypalButton extends PayrailsElementWithStoreInstrumentCheckbox {
940
945
  }
941
946
 
942
947
  interface PaypalDropinOptions extends PaypalButtonOptions {
948
+ showPaymentMethodLogo?: boolean;
943
949
  translations?: {
944
950
  labels?: {
945
951
  saveInstrument?: string;
@@ -988,9 +994,12 @@ declare class Dropin extends PayrailsElement {
988
994
  }
989
995
  interface StorablePaymentMethodConfiguration extends StoreInstrumentElementOptions {
990
996
  showStoredInstruments?: boolean;
997
+ showPaymentMethodLogo?: boolean;
991
998
  }
992
999
  interface DropinOptions {
993
1000
  paymentMethodsConfiguration?: {
1001
+ [key: string]: any;
1002
+ mercadoPago?: GenericRedirectDropinOptions['config'];
994
1003
  preselectFirstPaymentOption?: boolean;
995
1004
  cards?: {
996
1005
  showCardHolderName?: boolean;