Git Product home page Git Product logo

card-payment-bricks-sample-php's Introduction

Card payment processing with Checkout Bricks

Português / Español

💻 Technologies

  • PHP 7.3.29
  • Slim Framework v4
  • Composer (dependency manager)

💡 Requirements

  • PHP 7.2.5 or higher (you can download PHP here).
  • Composer (dependency manager).
  • 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.

⚙️ Installation

  1. Clone the project.
git clone https://github.com/mercadopago/card-payment-bricks-sample-php.git
  1. Go to the server folder.
cd card-payment-bricks-sample-php/server
  1. Install the required dependencies using Composer.
composer install

🌟 How to run it

  1. Go to the server folder.
cd card-payment-bricks-sample-php/server
  1. Run the following command to start the application:
MERCADO_PAGO_SAMPLE_PUBLIC_KEY=YOUR_PUBLIC_KEY MERCADO_PAGO_SAMPLE_ACCESS_TOKEN=YOUR_ACCESS_TOKEN php -S localhost:8080 server.php
  1. Remember to replace the values of YOUR_PUBLIC_KEY and YOUR_ACCESS_TOKEN with the corresponding credentials from your account.

  2. Navigate to http://localhost:8080 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.

card-payment-bricks-sample-php's People

Contributors

mercadopagodevelopers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.