@extends('b2c.layouts.app') @section('title', 'API Credentials') @section('content')

API Credentials

Sell our packages from your own website. Build against the sandbox, then switch to live.
Read the API docs
@if($newCredentials)
New {{ $newCredentials['environment'] }} credentials. Copy them now; they will not be shown again.
@foreach(['client_id' => 'Client ID', 'client_secret' => 'Client secret', 'api_key' => 'API key'] as $key => $label)
{{ $newCredentials[$key] }}
@endforeach
Store the secret and API key on your server only (environment variables or a secrets manager). Never put them in browser JavaScript or a mobile app.
@endif
@foreach(['sandbox' => 'Sandbox (demo)', 'live' => 'Live'] as $env => $title) @php $client = $clients[$env]; $available = $env === 'sandbox' ? $partner->sandboxApiAvailable() : $partner->liveApiAvailable(); @endphp
@if($env === 'sandbox')@else@endif {{ $title }} {{ $available ? 'Enabled' : ($env === 'live' ? 'Awaiting approval' : 'Disabled') }}

@if($env === 'sandbox') Real catalogue and prices, simulated bookings. Nothing is charged, no seats are held, and vouchers are marked TEST. Safe for development and QA. @else Real bookings. Every confirmed sale is charged to your wallet and sent to our operations team. @endif

{{ $baseUrls[$env] }}
{{ $client->client_id }}
Secret & API key: @if($issued[$env]) issued {{ $client->secret_rotated_at?->diffForHumans() }} · key {{ $client->api_key_prefix }}_… @else not generated yet @endif
@if($available)
@csrf
@elseif($env === 'live')
Live access is switched on by our team after your sandbox integration is reviewed and your account is active. Contact your account manager when you are ready.
@endif
@csrf @method('PUT')
@if($client->webhook_secret)
{{ $client->webhook_secret }}
@endif
@endforeach
@endsection