mercadopago-pay
v1.4.41
Published
>
Downloads
67
Readme
payment
Install
npm install --save mercadopago-pay
Usage
Añadir el SDK de mercadopago en la etiqueta header de la app
<script src="https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js" />
import * as React from 'react'
import Payment from 'mercadopago-pay'
class Example extends React.Component {
handlePayment = (data) => {
// recive la data generada por el sdk de Mercadopago
}
render () {
return (
<Payment
kind="pse | creditCard"
callback={this.handlePayment}
/>
)
}
}
License
MIT © cfvargas