@extends('backEnd.layouts.master') @section('title', 'Integrations & Services') @section('content')

Integrations & Services

Courier, payment, email, fraud check. Ad pixels/analytics → Ad Management. SMS → SMS Gateway.
{{-- Left sub-navigation (exactly like reference site) --}} {{-- Main Content --}}
{{-- COURIER SETTINGS --}} @if(in_array($tab, ['courier', 'courier_manual'], true)) @push('styles') @endpush
{{-- Steadfast --}} @php $steadfast = $couriers->get('steadfast'); @endphp
Steadfast Courier
Fast and reliable delivery service
status ? 'checked' : '' }} onchange="document.getElementById('steadfastStatus').value = this.checked ? '1' : '0'">
@csrf
@if($steadfast?->logo)
Steadfast logo
@else Default official logo use hobe. Custom upload korle packing label e eta dekhabe. @endif
Official API: portal.packzy.com/api/v1 (docs)
Steadfast portal-এ same token Auth Token (Bearer) হিসেবে দিন
Copy this URL and configure it in your Steadfast merchant dashboard
Fraud Check Portal Credentials
For steadfast.com.bd login to check customer fraud history
Your Steadfast portal login email
Your Steadfast portal login password
{{-- Pathao --}} @php $pathao = $couriers->get('pathao'); @endphp
Pathao Courier
Express delivery service
status ? 'checked' : '' }}>
@csrf
@if($pathao?->logo)
Pathao logo
@else Default official logo use hobe. Custom upload korle packing label e eta dekhabe. @endif
Live: api-hermes.pathao.com | Sandbox: courier-api-sandbox.pathao.com
OAuth token + Fraud check — দুটোতেই same login
Pathao Developer API → Webhook Secret (X-Pathao-Signature HMAC)
Copy this URL and configure it in your Pathao merchant dashboard
{{-- RedX --}} @php $redx = $couriers->get('redx'); @endphp
RedX Courier
OpenAPI parcel booking + webhook status updates
status ? 'checked' : '' }}>
@csrf
@if($redx?->logo)
RedX logo
@else Default official RedX logo use hobe. Custom upload optional. @endif
Live: openapi.redx.com.bd | Sandbox: sandbox.redx.com.bd (auto /v1.0.0-beta append)
RedX merchant panel থেকে pickup store ID — empty হলে প্রথম store auto use হবে
RedX Developer API → API-ACCESS-TOKEN (Bearer JWT)
RedX callback URL-এ query param: ?token=YOUR_TOKEN
@php $redxWebhookUrl = route('webhook.redx'); if ($redx?->webhook_token) { $redxWebhookUrl .= '?token=' . urlencode($redx->webhook_token); } @endphp
RedX merchant dashboard-এ এই URL configure করুন (token সহ)
Fraud Check Login
RedX merchant app login (API JWT token নয়) — customer delivery history check
RedX app-এ যে phone দিয়ে login করেন (01XXXXXXXXX). API Access Token (JWT) নয়OpenAPI booking-এর token আলাদা।
{{-- CarryBee --}} @php $carrybee = $couriers->get('carrybee'); @endphp
CarryBee Courier
API v2 parcel booking + webhook auto status sync
status ? 'checked' : '' }}>
@csrf
@if($carrybee?->logo)
CarryBee logo
@else Default CarryBee logo use hobe. Custom upload optional. @endif
Live: developers.carrybee.com | Sandbox: stage-sandbox.carrybee.com
Empty হলে প্রথম store auto use হবে
CarryBee dashboard-এ header: X-Carrybee-Webhook-Signature
CarryBee merchant panel-এ এই URL configure করুন — status auto sync হবে
Fraud Check Login
CarryBee merchant app login (API credentials নয়) — customer delivery history
{{-- Manual Courier --}} @php $manual = $couriers->get('manual'); @endphp
Manual Courier Booking
Settings-এ add করা courier name গুলো Booking page-এ দেখাবে
status ?? true) ? 'checked' : '' }}>
@csrf
@forelse($manualCouriers as $i => $mc)
status ? 'checked' : '' }}>
@if($mc->logo) @else Label e logo (optional) @endif
@empty
@endforelse

Manual ON + উপরে courier name add করলে Booking page-এ শুধু সেই name গুলো button হিসেবে দেখাবে। Settings-এ না থাকলে Booking page-এ manual option আসবে না।

{{-- PAYMENT SETTINGS --}} @elseif($tab === 'payment')
Payment Settings
Checkout sync: bKash/SSL active থাকলে COD auto hide। COD toggle: Website Settings → General. Advance payment product থাকলে online payment বাধ্যতামূলক।
@csrf @foreach([['bkash','bKash','#E2136E'],['nagad','Nagad','#F7941D'],['sslcommerz','SSLCommerz','#0b3b6f']] as [$type,$name,$color]) @php $gw = $gateways->get($type); @endphp
{{ $name }}
status ? 'checked' : '' }}>
@if($type === 'bkash')
bKash Tokenized Checkout credentials (Developer Portal থেকে নিন): App Key, App Secret, Username, Password. Sandbox test করতে Sandbox ON রাখুন।
@elseif($type === 'sslcommerz')
SSLCommerz: Store ID + Store Password দিন। Sandbox ON = test mode। IPN URL: {{ \App\Support\AppUrl::shopRoute('frontend.sslcommerz.ipn') }}
@endif
@if($type === 'bkash')
@elseif($type === 'nagad')
@endif
is_sandbox ? 'checked' : '' }}>
@endforeach @php $manualAccounts = $manualAccounts ?? \App\Services\ManualPaymentService::accounts(); @endphp
Manual Advance Payment Accounts

Advance payment এর জন্য customer এই number/account এ টাকা পাঠাবে — screenshot upload করে order দিবে; admin verify করবে।

@foreach($manualAccounts as $key => $account)
{{ $account['label'] ?? ucfirst($key) }}
@if($key === 'bank')
@endif
@endforeach
{{-- EMAIL / SMTP --}} @elseif($tab === 'mail')
Email / SMTP Settings

Configure outgoing email for order notifications, password reset, and admin alerts. Leave password blank to keep the current one. Use Send Test Email after saving.

@csrf
Customer email দিলে order placed-এ confirmation পাঠাবে। Email না দিলে skip হবে।
Used by Send Test Email only.
{{-- FRAUD CHECK --}} @elseif($tab === 'fraud') @push('styles') @endpush
Fraud Check Settings
@php $sf = $couriers->get('steadfast'); $pa = $couriers->get('pathao'); $rx = $couriers->get('redx'); $cb = $couriers->get('carrybee'); $fraudConfigured = app(\App\Services\CourierFraudCheckService::class)->configuredCouriers(); @endphp
Steadfast, Pathao, RedX ও CarryBee login save করুন — Order list Fraud check same credentials use করবে।
Steadfast: {{ $fraudConfigured['steadfast'] ? 'Ready' : 'Not set' }} Pathao: {{ $fraudConfigured['pathao'] ? 'Ready' : 'Not set' }} RedX: {{ ($fraudConfigured['redx'] ?? false) ? 'Ready' : 'Not set' }} CarryBee: {{ ($fraudConfigured['carrybee'] ?? false) ? 'Ready' : 'Not set' }}
{{-- Test first — no scroll needed on mobile --}}
Test Fraud Check
যেকোনো customer phone দিয়ে আগে test করুন — login ঠিক আছে কিনা দেখুন
@csrf
Steadfast Portal Login
steadfast.com.bd login email
@if($fraudConfigured['steadfast']) ✓ Login saved @else Email + Password দিয়ে save করুন @endif
Pathao Merchant Login
@if($fraudConfigured['pathao']) ✓ Login saved @else Username + Password দিয়ে save করুন @endif
RedX Merchant Login
RedX app login phone — OpenAPI JWT আলাদা field-এ।
@if($fraudConfigured['redx'] ?? false) ✓ Login saved @else Phone + Password দিয়ে save করুন @endif
CarryBee Merchant Login
CarryBee app login phone — API Client ID/Secret আলাদা।
@if($fraudConfigured['carrybee'] ?? false) ✓ Login saved @else Phone + Password দিয়ে save করুন @endif
@push('scripts') @endpush {{-- FACEBOOK APP ID --}} @elseif($tab === 'pixel')
Facebook APP ID
@csrf
Used for Facebook Login and Social sharing. Pixel & CAPI → Ad Management
@endif
@endsection @push('scripts') @endpush