1. Go to this page and download the library: Download magus94/multivis-payment library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
magus94 / multivis-payment example snippets
Multivis\Multivis;
$clientId = 'YOUR_CLIENT_ID';
$clientSecret = 'YOUR_CLIENT_SECRET';
//Criando a instancia
$multiviz = new Multivis($clientId, $clientSecret, 'production');
// Para realizar a venda, passe os objetos criados anteriormente: Payment, Card e Seller
$response = $multiviz->paymentCard($payment, $cardInfo, $sellerInfo);
// O objeto de resposta conterá os dados de autorização da compra.
// Para cancelar uma venda, passe o ID da autorização, e o Valor a ser cancelado.
$cancel = $multiviz->cancelPayment('020000004906101633170000062686160000000000', 1000);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.