PHP code example of lee-to / laravel-cashbox
1. Go to this page and download the library: Download lee-to/laravel-cashbox 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/ */
lee-to / laravel-cashbox example snippets
app("payment")->setPaymentDescription("Premium");
app("payment")->setReturnUrl(route("home"));
app("payment")->setAmount(100);
app("payment")->setParams([
"user_id" => auth()->id(),
]);
return redirect(app("payment")->createPayment());
return response()->json(app("payment")->capturePayment(function ($paymentParams, $paymentToken, $bankCard) {
}));