- Python3 install on your computer(follow the download instructions here).
- Read our instructions on how to create an application at the Mercado Pago Developer Panel in order to acquire your public key and access token. They will grant you access to Mercado Pago's public APIs.
- pipenv install on yout computer(follow the download instructions here).
- mercadopago library install on your computer
pipenv install mercadopago
- Clone the project.
git clone https://github.com/mercadopago/card-payment-bricks-sample-python.git
- Go to the project's folder.
cd card-payment-bricks-sample-python
- Run the following command to start the application:
pipenv run flask --debug run -h 0.0.0.0
-
Remember to replace the values of
YOUR_PUBLIC_KEY
andYOUR_ACCESS_TOKEN
on.env
file with the corresponding credentials from your account. -
Navigate to http://127.0.0.1:5000 in your browser.
On our testing instructions you'll find credit cards that can be used along with this sample and a guide on how to create test users.
You can contribute to this project by reporting problems and bugs. Before opening an issue, make sure to read our code of conduct.
MIT License. Copyright (c) 2021 - Mercado Pago
For more information, see the LICENSE file.