Skip to content

mercadopago/card-payment-bricks-sample-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Card payment processing with Checkout Bricks

Português / Español

💻 Technologies

💡 Requirements

  • 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

⚙️ Installation

  1. Clone the project.
git clone https://github.com/mercadopago/card-payment-bricks-sample-python.git
  1. Go to the project's folder.
cd card-payment-bricks-sample-python

🌟 How to run it

  1. Run the following command to start the application:
pipenv run flask --debug run -h 0.0.0.0
  1. Remember to replace the values of YOUR_PUBLIC_KEY and YOUR_ACCESS_TOKEN on .env file with the corresponding credentials from your account.

  2. Navigate to http://127.0.0.1:5000 in your browser.

🧪 Testing

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.

🤝 Contributing

You can contribute to this project by reporting problems and bugs. Before opening an issue, make sure to read our code of conduct.

🔖 License

MIT License. Copyright (c) 2021 - Mercado Pago
For more information, see the LICENSE file.