- Implement OfferOptionAdminTest to validate offer option management, including price display, activation, and cancellation. - Create OrganizationPurchaseTest to ensure correct handling of organization purchases, including access control and order processing. - Add ShopProductPageTest to verify shop product listings, search functionality, and product page details. - Introduce BuildsShop trait for seeding test data related to shop functionality. - Implement MoneyTest to validate money parsing and formatting, ensuring correct handling of euro amounts.
17 lines
508 B
PHP
17 lines
508 B
PHP
<?php
|
|
|
|
namespace App\Domain\Commerce;
|
|
|
|
/**
|
|
* Etappe 1 verwendet ausschließlich Testzahlung und erteilt keine Produktivfreigabe. Der Shop (Warenkorb, Kasse,
|
|
* Kopflink) ist deshalb nur aktiv, wenn die Umgebung nicht Produktion ist und der Zahlungstreiber „test“ gilt.
|
|
* Dieselbe Bedingung gilt für die Testzahlung der Bestellseite.
|
|
*/
|
|
final class Shop
|
|
{
|
|
public static function enabled(): bool
|
|
{
|
|
return ! app()->isProduction() && config('services.payment.driver') === 'test';
|
|
}
|
|
}
|