PHP code example of chrisidakwo / laravel-flutterwave
1. Go to this page and download the library: Download chrisidakwo/laravel-flutterwave 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/ */
chrisidakwo / laravel-flutterwave example snippets
// To generate a payment link
Rave::standardPayment($data);
// To verify a transaction
$transaction = Rave::verifyTransaction($transactionId);
// To refund a transaction
$refund = Rave::refundTransaction($transactionId, $amount);