@php $reqHost = strtolower(trim((string)(request()->getHost() ?: ($_SERVER['HTTP_HOST'] ?? '')))); $reqHost = preg_replace('/:\d+$/', '', $reqHost); $reqHost = preg_replace('/^www\./i', '', $reqHost); $cleanAgencyHost = preg_replace('/^(launchshop|checkout|app|www|websitebuilder|website-builder|whatsappbulk|whatsapp-bulk|whatsapp|wa|ecombuilder|ecom-builder)\./i', '', $reqHost); if ($cleanAgencyHost === 'in' || $cleanAgencyHost === 'com' || str_ends_with($reqHost, 'launchshop.in') || in_array($reqHost, ['launchshop.in', 'www.launchshop.in'])) { $cleanAgencyHost = 'launchshop.in'; } $scheme = (request()->secure() || str_contains(request()->fullUrl(), 'https://') || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')) ? 'https://' : 'http://'; $prevUrl = url()->previous(); $isWb = session()->has('wb_checkout_req') || request('product_type') == 'website_builder' || request('is_website_builder'); if (empty($prevUrl) || $prevUrl === url()->current() || str_contains($prevUrl, 'checkout.')) { if (!empty($cleanAgencyHost) && $cleanAgencyHost !== 'localhost' && $cleanAgencyHost !== '127.0.0.1') { $prevUrl = $isWb ? "{$scheme}websitebuilder.{$cleanAgencyHost}/website-builder/checkout" : "{$scheme}ecombuilder.{$cleanAgencyHost}/registration/final-step"; } else { $prevUrl = $isWb ? route('website-builder.checkout') : url('/'); } } @endphp Secure Checkout • Launching Your Live Store

Initializing Secure Gateway

Opening payment window. Please complete payment to automatically launch your live website.

Connecting to payment server... 35%
256-Bit SSL Encrypted • Automated Instant Setup
Cancel and Return to Checkout
@csrf {{-- Website Builder Checkout session payload backup --}} @if(session()->has('wb_checkout_req')) @foreach(session('wb_checkout_req') as $wbKey => $wbVal) @if(is_scalar($wbVal)) @endif @endforeach @endif {{-- LaunchShop Membership Checkout session payload backup --}} @if(session()->has('request')) @foreach(session('request') as $lsKey => $lsVal) @if(is_scalar($lsVal)) @endif @endforeach @endif @if(session()->has('wb_checkout_req') || request('product_type') == 'website_builder' || request('is_website_builder')) @endif