PHP code example of damianjozwiak / laravel-przelewy24
1. Go to this page and download the library: Download damianjozwiak/laravel-przelewy24 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/ */
damianjozwiak / laravel-przelewy24 example snippets
$payment_verify = app()->make(\Damianjozwiak\Transfers24\Requests\Transfers24::class);
$payment_response = $payment_verify->receive($request);
if ($payment_response->isSuccess()) {
$payment = Payment::where('session_id',$payment_response->getSessionId())->firstOrFail();
// process order here after making sure it was real payment
}
echo "OK";
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.