• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

conedevelopment / bazar / 20694116184

04 Jan 2026 02:08PM UTC coverage: 68.615% (+4.5%) from 64.117%
20694116184

push

github

iamgergo
version

1679 of 2447 relevant lines covered (68.61%)

25.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/Gateway/ManualDriver.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Cone\Bazar\Gateway;
6

7
use Cone\Bazar\Models\Order;
8
use Cone\Bazar\Models\Transaction;
9
use Exception;
10
use Illuminate\Http\Request;
11

12
class ManualDriver extends Driver
13
{
14
    /**
15
     * The driver name.
16
     */
17
    protected string $name = 'manual';
18

19
    /**
20
     * Process the payment.
21
     */
22
    public function pay(Order $order, ?float $amount = null, array $attributes = []): Transaction
1✔
23
    {
24
        $transaction = parent::pay($order, $amount, $attributes);
1✔
25

26
        $transaction->markAsCompleted();
1✔
27

28
        return $transaction;
1✔
29
    }
30

31
    /**
32
     * Process the refund.
33
     */
34
    public function refund(Order $order, ?float $amount = null, array $attributes = []): Transaction
1✔
35
    {
36
        $transaction = parent::refund($order, $amount, $attributes);
1✔
37

38
        $transaction->markAsCompleted();
1✔
39

40
        return $transaction;
1✔
41
    }
42

43
    /**
44
     * Handle the notification request.
45
     */
46
    public function handleNotification(Request $request, Order $order): Response
×
47
    {
48
        throw new Exception('This payment gateway does not support payment notifications.');
×
49
    }
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc