Fix PayPal billing flow and mobile admin UX
This commit is contained in:
@@ -4,7 +4,6 @@ namespace App\Services\Coupons;
|
||||
|
||||
use App\Enums\CouponStatus;
|
||||
use App\Enums\CouponType;
|
||||
use App\Models\CheckoutSession;
|
||||
use App\Models\Coupon;
|
||||
use App\Models\CouponRedemption;
|
||||
use App\Models\Package;
|
||||
@@ -36,12 +35,6 @@ class CouponService
|
||||
|
||||
public function ensureCouponCanBeApplied(Coupon $coupon, Package $package, ?Tenant $tenant = null, ?string $provider = null): void
|
||||
{
|
||||
if ($provider !== CheckoutSession::PROVIDER_PAYPAL && ! $coupon->lemonsqueezy_discount_id) {
|
||||
throw ValidationException::withMessages([
|
||||
'code' => __('marketing.coupon.errors.not_synced'),
|
||||
]);
|
||||
}
|
||||
|
||||
if (! $coupon->enabled_for_checkout) {
|
||||
throw ValidationException::withMessages([
|
||||
'code' => __('marketing.coupon.errors.disabled'),
|
||||
|
||||
Reference in New Issue
Block a user