Platform Settings

Configure payment gateway, platform fees, and SEO

Payment Gateway Configuration

@if(session('payment_success'))
{{ session('payment_success') }}
@endif
@error('bayarcash_portal') {{ $message }} @enderror
@error('bayarcash_pat') {{ $message }} @enderror
@error('bayarcash_secret') {{ $message }} @enderror

Use Sandbox for testing, Production for real transactions

@error('bayarcash_mode') {{ $message }} @enderror

Gateway Processing Fee

@error('payment_gateway_fee_type') {{ $message }} @enderror
@error('payment_gateway_fee_fixed') {{ $message }} @enderror
@error('payment_gateway_fee_percentage') {{ $message }} @enderror

Gateway Fee Preview (RM 100 booking)

@php $example = 100; $gwFixed = floatval($payment_gateway_fee_fixed); $gwPercentage = floatval($payment_gateway_fee_percentage); $gwFee = 0; if ($payment_gateway_fee_type === 'fixed') { $gwFee = $gwFixed; } elseif ($payment_gateway_fee_type === 'percentage') { $gwFee = ($example * $gwPercentage) / 100; } else { $gwFee = $gwFixed + (($example * $gwPercentage) / 100); } @endphp
Gateway Fee: RM {{ number_format($gwFee, 2) }}

Configuration Note

These settings replace .env file configuration. Get your credentials from BayarCash portal dashboard.

Platform Fee Configuration

@if(session('fee_success'))
{{ session('fee_success') }}
@endif
@error('platform_fee_type') {{ $message }} @enderror
@error('platform_fee_fixed') {{ $message }} @enderror
@error('platform_fee_percentage') {{ $message }} @enderror
@error('platform_fee_charged_to') {{ $message }} @enderror

Fee charged to hosts when they feature their listing

@error('featured_listing_fee') {{ $message }} @enderror

Fee Preview (Example: RM 100 booking)

@php $example = 100; $fixed = floatval($platform_fee_fixed); $percentage = floatval($platform_fee_percentage); $fee = 0; if ($platform_fee_type === 'fixed') { $fee = $fixed; } elseif ($platform_fee_type === 'percentage') { $fee = ($example * $percentage) / 100; } else { $fee = $fixed + (($example * $percentage) / 100); } @endphp
Booking Amount: RM {{ number_format($example, 2) }}
Platform Fee: RM {{ number_format($fee, 2) }}
{{ $platform_fee_charged_to === 'guest' ? 'Guest Pays:' : 'Host Receives:' }} RM {{ number_format($platform_fee_charged_to === 'guest' ? $example + $fee : $example - $fee, 2) }}

Webhook Configuration

@if(session('webhook_success'))
{{ session('webhook_success') }}
@endif

Enable to receive webhook notifications for form events

Enter the URL where you want to receive webhook notifications

@error('webhook_url') {{ $message }} @enderror

Used to verify webhook authenticity. Check X-Webhook-Signature header.

@error('webhook_secret_key') {{ $message }} @enderror

Webhook Information

Webhooks will send POST requests with JSON data including user details, booking details, and host information. Use the secret key to verify the webhook signature.

Receipt Customization

@if(session('receipt_success'))
{{ session('receipt_success') }}
@endif
@error('receipt_template') {{ $message }} @enderror

Defaults to site name if empty

@error('receipt_company_name') {{ $message }} @enderror
@error('receipt_company_address') {{ $message }} @enderror
@error('receipt_company_phone') {{ $message }} @enderror

Customer support email

@error('receipt_company_email') {{ $message }} @enderror
@error('receipt_website') {{ $message }} @enderror

Message displayed at bottom of receipt

@error('receipt_footer_text') {{ $message }} @enderror

Professional Receipts

Customize your booking receipts with your company information. Receipts use a new format with invoice numbers like 20251016-12345 (Date-5 digits) for easy tracking.

Platform Sustainability

Platform fees help cover operational costs including server maintenance, payment processing, customer support, and platform improvements.

  • Guest Fee: Added to the booking total - transparent to guests at checkout
  • Host Fee: Deducted from host earnings - host receives booking amount minus fee
  • Combined Fee: You can use both fixed and percentage fees together for flexible pricing