-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from icaldana/release/0.0.20
Release 0.0.20
- Loading branch information
Showing
46 changed files
with
197 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
repos: | ||
- repo: https://github.com/mercadolibre/fury_websec-git-hooks | ||
rev: v1.0.5 | ||
- repo: https://github.com/melisource/fury_websec-git-hooks | ||
rev: v2.0.0 | ||
hooks: | ||
- id: pre_commit_hook | ||
stages: [commit] | ||
- id: post_commit_hook | ||
stages: [post-commit] | ||
- repo: https://github.com/mercadolibre/fury_datasec-git-hooks | ||
rev: 1.0.1 | ||
- repo: https://github.com/melisource/fury_datasec-git-hooks | ||
rev: 1.2.0 | ||
hooks: | ||
- id: pre_commit_hook | ||
stages: [commit] | ||
verbose: true | ||
- id: post_commit_hook | ||
stages: [post-commit] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import Card from '../../../src/bricks/cardPayment'; | ||
|
||
import initMercadoPago from '../../../src/mercadoPago/initMercadoPago'; | ||
import { PUBLIC_KEY } from '../../constants'; | ||
|
||
initMercadoPago(PUBLIC_KEY, { locale: 'pt-BR' }); | ||
|
||
const App = () => { | ||
return ( | ||
<Card | ||
initialization={{ amount: 100 }} | ||
id="custom-container-id" | ||
onSubmit={async (param) => { | ||
console.log(param); | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
import React from 'react'; | ||
import Wallet from '../../../src/bricks/wallet'; | ||
import { PUBLIC_KEY } from '../../constants'; | ||
|
||
import initMercadoPago from '../../../src/mercadoPago/initMercadoPago'; | ||
|
||
initMercadoPago('TEST-f4563544-ce69-40c3-b88e-6e7d1bd93a83'); | ||
initMercadoPago(PUBLIC_KEY); | ||
|
||
// Chech the API reference for more details about how to create the preferenceId | ||
// https://www.mercadopago.com.br/developers/en/reference/preferences/_checkout_preferences/post | ||
|
||
const ExampleWalletBrickMarketplace = () => { | ||
return <Wallet initialization={{ preferenceId: '207446753-ea3adb2e-a4f2-41dd-a656-11cb01b8772c', marketplace: true }} />; | ||
return ( | ||
<Wallet | ||
initialization={{ | ||
preferenceId: '<PREFERENCE_ID>', | ||
marketplace: true, | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default ExampleWalletBrickMarketplace; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import Wallet from '../../../src/bricks/wallet'; | ||
import { PUBLIC_KEY } from '../../constants'; | ||
|
||
import initMercadoPago from '../../../src/mercadoPago/initMercadoPago'; | ||
|
||
initMercadoPago(PUBLIC_KEY); | ||
|
||
const ExampleSimpleWalletBrick = () => { | ||
return ( | ||
<Wallet initialization={{ preferenceId: 'YOUR_PREFERENCE_ID' }} id="custom-container-id" /> | ||
); | ||
}; | ||
|
||
export default ExampleSimpleWalletBrick; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const PUBLIC_KEY = '<YOUR_PUBLIC_KEY>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.