1. Go to this page and download the library: Download santosdave/pesawise-wrapper 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/ */
santosdave / pesawise-wrapper example snippets
use Santosdave\PesawiseWrapper\Facades\Pesawise;
// Or inject in your constructor
use Santosdave\PesawiseWrapper\Pesawise;
public function __construct(Pesawise $pesawise)
{
$this->pesawise = $pesawise;
}
use Santosdave\PesawiseWrapper\Pesawise;
class PaymentService
{
protected $pesawise;
public function __construct(Pesawise $pesawise)
{
$this->pesawise = $pesawise;
}
public function processPayment(array $paymentData)
{
return $this->pesawise->createDirectPayment($paymentData);
}
}