Socket
Socket
Sign inDemoInstall

react-sdk-mercadopago

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

lib/protocols/cause.d.ts

31

lib/index.d.ts

@@ -0,1 +1,2 @@

import { Mercadopago } from './protocols';
declare global {

@@ -6,34 +7,4 @@ interface Window {

}
declare type Mercadopago = {
deviceProfileId: string;
key: string;
referer: string;
tokenId: string;
version: string;
sessionId: null;
initialized: boolean;
initializedInsights: boolean;
AJAX: (t: any) => void;
clearSession: () => void;
createDeviceProvider: (n: Function) => void;
createToken: (e: any, t: any) => void;
getAllPaymentMethods: (t: any) => any;
getIdentificationTypes: (t: any) => any;
getInstallments: (t: any, r: any) => any;
getIssuers: () => any;
getPaymentMethod: (t: any, a: Function) => any;
getPaymentMethods: () => any;
initMercadopago: () => void;
setPaymentMethods: (e: any) => void;
setPublishableKey: (key: string) => void;
validateBinPattern: (e: any, t: any) => boolean;
validateCardNumber: (e: any, t: any, n: Function) => void;
validateCardholderName: (e: any) => boolean;
validateExpiryDate: (e: any, t: any) => boolean;
validateIdentification: (e: any, t: any) => boolean;
validateLuhn: (e: any) => boolean;
validateSecurityCode: (e: any, t: any, n: Function) => any;
};
declare const useMercadopago: (publicKey: string) => Mercadopago | undefined;
export { useMercadopago };
//# sourceMappingURL=index.d.ts.map
{
"name": "react-sdk-mercadopago",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

import { useEffect, useState } from 'react'
import { Mercadopago } from './protocols'
declare global {

@@ -9,34 +11,2 @@ interface Window {

type Mercadopago = {
deviceProfileId: string
key: string
referer: string
tokenId: string
version: string
sessionId: null
initialized: boolean
initializedInsights: boolean
AJAX: (t: any) => void
clearSession: () => void
createDeviceProvider: (n: Function) => void
createToken: (e: any, t: any) => void
getAllPaymentMethods: (t: any) => any
getIdentificationTypes: (t: any) => any
getInstallments: (t: any, r: any) => any
getIssuers: () => any
getPaymentMethod: (t: any, a: Function) => any
getPaymentMethods: () => any
initMercadopago: () => void
setPaymentMethods: (e: any) => void
setPublishableKey: (key: string) => void
validateBinPattern: (e: any, t: any) => boolean
validateCardNumber: (e: any, t: any, n: Function) => void
validateCardholderName: (e: any) => boolean
validateExpiryDate: (e: any, t: any) => boolean
validateIdentification: (e: any, t: any) => boolean
validateLuhn: (e: any) => boolean
validateSecurityCode: (e: any, t: any, n: Function) => any
}
const useMercadopago = (publicKey: string) => {

@@ -43,0 +13,0 @@ const [mercadopago, setMercadopago] = useState<Mercadopago>()

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc