PHP Classes

LibrePag: Generate LibrePag payment buttons and get results

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 91 All time: 9,893 This week: 284Up
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: 2171144 in Brazil Brazil
Week rank: 312 Up26 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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:91
This week:0
All time:9,893
This week:284Up