1. Go to this page and download the library: Download qattapay/laravel 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/ */
// List all orders
QattaPay::orders()->list();
// Get detail (ulfilling
QattaPay::orders()->fulfill($orderId);
// fulfilling → delivered
QattaPay::orders()->deliver($orderId);
// Refund every captured contribution (blocked once the order is in a payout)
QattaPay::orders()->refund($orderId, ['reason' => 'Out of stock']);
// Refund a single contributor
QattaPay::orders()->refundContribution($orderId, $contributionId, [
'reason' => 'Contributor requested to back out',
]);