Hello,
I am using php not laravel and I have did composer and written all the required code in your documentation. But the problem is I am getting an Uncaught Error: Class “Paypack\Paypack” not found. Here is the entire code:
<?php use Paypack\Paypack; $paypack = new Paypack(); $paypack->config([ 'client_id' => ' CLIENT ID', 'client_secret' => 'CLIENT SECRET', ]); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $phone_number = $_POST['phone-number']; $amount = $_POST['amount']; $cashin = $paypack->Cashin([ 'phone-number' => $phone_number, 'amount' => $amount, ]); // Handle the result of the payment print_r($cashin); } ?>