Quick Start
1. Criar instância
use Erilshk\Sisp\Vinti4Net;
$sdk = new Vinti4Net(
posID: "1234",
posAuthCode: "SECRETO",
);
2. Preparar pagamento
// Os dados de Billing são obrigatórios, segundo a documentação da SISP, ela compõe o PurchaseRequest.
$billing = [
'email' => 'cliente@email.com',
'billAddrCountry' => '132',
'billAddrCity' => 'Cidade',
'billAddrLine1' => 'endereço',
'billAddrPostCode' => '7601',
];
$sdk->preparePurchase(1000, $billing);
echo $sdk->createPaymentForm("https://meusite.com/callback");
4. Processar callback
// na página de resposta de retorno:
$response = $sdk->processResponse($_POST);
if ($response->isSuccess()) {
// OK
}