mercadopago / pix-payment-sample-php

MIT License
2 stars 2 forks source link

Pix payment processing with Checkout API

Português / Español

:warning: Attention: Pix is a payment method only available in Brazil

:computer: Technologies

💡 Requirements

:gear: Installation

  1. Clone the project.

    git clone https://github.com/mercadopago/pix-payment-sample-php.git
  2. Go to the server folder.

    cd pix-payment-sample-php/server
  3. Install the required dependencies using Composer.

    composer install

🌟 How to run it

  1. Go to the server folder.

    cd pix-payment-sample-php/server
  2. Run the following command to start the application:

    MERCADO_PAGO_SAMPLE_ACCESS_TOKEN=YOUR_ACCESS_TOKEN php -S localhost:8080 server.php
  3. Remember to replace the value of YOUR_ACCESS_TOKEN with the corresponding credential from your account.

  4. Navigate to http://localhost:8080 in your browser.

:test_tube: Testing

:handshake: Contributing

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

:bookmark: License

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