PHP Classes

LibrePag: Generate LibrePag payment buttons and get results

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 92 All time: 9,918 This week: 455Up
Version License PHP version Categories
librepag 1.0BSD License5.0.0HTML, PHP 5, E-Commerce
Description 

Author

This package is specific mainly for applications used in Brazil Brazil .

This class can generate LibrePag payment buttons and get results.

It can generate HTML for a form with a button that leads the user to the LibrePag site page where he would make a payment for an order.

The class can also get the details of the results of the payment transaction when the user returns to the order site.

In Portuguese:

Por enquanto, as seguintes operações estão disponíveis:

- Gerar o formulário para criar uma transação
- Capturar transação

Picture of Julio Cezar Kronbauer
  Performance   Level  
Name: Julio Cezar Kronbauer <contact>
Classes: 11 packages by
Country: Brazil Brazil
Age: 42
All time rank: 2172145 in Brazil Brazil
Week rank: 215 Up19 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/LibrePag/LibrePag.Class.php';

$id_pedido = 412901;

$LibrePag_Form = $LibrePag->getForm(LIBREPAG_ESTABELECIMENTO_CODIGO_IDENTIFICACAO,
                                   
LIBREPAG_METODO_CARTAO_MASTERCARD,
                                   
LIBREPAG_OPERACAO_PAGAMENTO,
                                   
$id_pedido, 859.90, 6, 'Julio Cezar Kronbauer', '5453 0100 0006 6167', '648', '11', '2016',
                                   
'Julio Cezar Kronbauer', LIBREPAG_TIPO_PESSOA_FISICA,
                                   
'390.855.046-78', 'meuemail@meuprovedor.com.br', '88 8888-8888',
                                   
'Endereço do Cliente', '15321', NULL, 'Bairro do Endereço', 'Cidade do Endereço',
                                   
'UF', 'Brasil', '88888-888', 'https://www.seusite.com.br/finalizar-compra/pedido/' . $id_pedido, NULL, true);

echo
$LibrePag_Form['HTML'];

?>


  Files folder image Files (3)  
File Role Description
Plain text file LibrePag.Class.php Class The main file
Accessible without login Plain text file Transacao.php Example Exemplo de transação
Accessible without login Plain text file Captura.php Example Exemplo de captura de transação

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:92
This week:0
All time:9,918
This week:455Up