PHP Classes

File: Transacao.php

Recommend this page to a friend!
  Classes of Julio Cezar Kronbauer  >  LibrePag  >  Transacao.php  >  Download  
File: Transacao.php
Role: Example script
Content type: text/plain
Description: Exemplo de transação
Class: LibrePag
Generate LibrePag payment buttons and get results
Author: By
Last change: Changed return value of GetForm, returns an array with the form ID and HTML instead of the form HTML only.
Date: 8 years ago
Size: 766 bytes
 

Contents

Class file image Download
<?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'];

?>