@extends('layouts.app') @section('content')

Courier Settings

Configure your courier account details and shipping settings

@php $activeCourier = request()->get('set', 'poslaju'); @endphp @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if($activeCourier === 'poslaju')
@csrf @method('PUT')

API Credentials (OAuth 2.0)

Enter your Pos Laju OAuth 2.0 credentials. Access tokens will be automatically managed.

Your Pos Laju App Code

Your Pos Laju Secret Code

OAuth 2.0 Client ID (UUID format)

OAuth 2.0 Client Secret (UUID format)

@if($settings && $settings->hasValidToken())
โœ“ OAuth Token Active (Expires: {{ $settings->token_expires_at->diffForHumans() }})
@elseif($settings && $settings->hasOAuthCredentials())
Token will be generated automatically when you generate your first AWB
@endif

Account Information

Registered Pos Malaysia account number (active account)

Standard Product code according to Pos Malaysia catalog

Shipping Configuration

Configure default shipping settings for AWB generation.

Optional: Leave empty to let Pos Laju auto-assign. Get valid codes from SendParcel Portal.

Item type code (0=Document, 1=Merchandise, 2=Parcel)

Default value is "Standard"

Number of days the order remains valid (Min: 7, Max: 30)

Sender Information

Default Shipping Settings

Branding (AWB Labels)

Upload logos to display on AWB shipping labels. Recommended size: 200x60px (PNG with transparent background)

@if($settings && $settings->poslaju_logo_path)
Courier Logo
@endif

Upload Pos Laju or other courier logo

@if($settings && $settings->company_logo_path)
Company Logo
@endif

Upload your company logo

Options

is_active ?? true) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
test_mode ?? false) ? 'checked' : '' }} class="h-4 w-4 text-yellow-600 focus:ring-yellow-500 border-gray-300 rounded">

When enabled, AWB generation will create test tracking numbers like TEST251023000001MY without calling Pos Laju API

hide_product_names ?? false) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">

When enabled, AWB labels will display SKU codes instead of full product names to prevent product information from being visible during shipping

Webhook Configuration (Auto Order Completion)

Use these details to configure your Pos Laju webhook at SendParcel Portal

โ˜‘ Checked
None
QueryString
โ˜ Unchecked

โœ… Webhook Benefits:

  • โ€ข Auto-complete orders when Pos Laju delivers to customers
  • โ€ข Real-time tracking updates for all shipments
  • โ€ข Auto-sync to WooCommerce when order is completed
  • โ€ข Complete audit trail of all tracking events
@if(str_contains(url('/'), 'localhost') || str_contains(url('/'), '.test') || str_contains(url('/'), '127.0.0.1'))
Local Environment Detected: This webhook URL won't work on local development. Use your production domain (https://yourdomain.com/api/poslaju/webhook) when deploying to live server.
@endif
Cancel
@endif @if($activeCourier === 'ninjavan')

NinjaVan Integration

NinjaVan courier integration is coming soon! This will allow you to:

  • Generate NinjaVan AWB tracking numbers
  • Real-time shipment tracking
  • Auto-complete orders on delivery
  • Print shipping labels and AWB

Stay tuned! We're working hard to bring NinjaVan integration to your store.

@endif @if($activeCourier === 'jnt')

J&T Express Integration

J&T Express courier integration is coming soon! This will allow you to:

  • Generate J&T Express AWB tracking numbers
  • Real-time shipment tracking
  • Auto-complete orders on delivery
  • Print shipping labels and AWB

Stay tuned! We're working hard to bring J&T Express integration to your store.

@endif @if($activeCourier === 'easyparcel')

EasyParcel Integration

EasyParcel multi-courier integration is coming soon! This will allow you to:

  • Access multiple couriers through one platform
  • Compare shipping rates instantly
  • Generate AWB for multiple courier services
  • Track all shipments in one place

Stay tuned! We're working hard to bring EasyParcel integration to your store.

@endif
@endsection