29 lines
1.1 KiB
PHP
29 lines
1.1 KiB
PHP
<?php
|
|
|
|
use Modules\Core\Payment\Pipelines\Cart\ApplyCashOnDeliveryFee;
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Lunar cart pipeline additions
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Appended to config('lunar.cart.pipelines.cart') after ApplyShipping so
|
|
| the cash-on-delivery fee is added to the shipping total before the
|
|
| final Calculate step sums everything up.
|
|
|
|
|
| This is the one thing left in this file — everything about WHICH
|
|
| payment methods exist (driver mapping, capture_mode, statuses) moved
|
|
| onto Modules\Core\Payment\Models\PaymentMethod's own row (see
|
|
| docs/payments.md): that's a per-instance, merchant decision, not a
|
|
| store-wide-singular setting, so it never belonged in config at all.
|
|
| This pipeline registration IS genuinely cross-cutting — every store
|
|
| using this driver gets the same cart-pipeline wiring, regardless of
|
|
| how many payment methods it configures.
|
|
|
|
|
*/
|
|
'cart_pipeline' => [
|
|
ApplyCashOnDeliveryFee::class,
|
|
],
|
|
];
|