← {{ __('Back to integrations') }}
{{ __('Add integration') }} {{ __('Credentials are encrypted at rest. We will run a quick connection test before marking the integration as configured.') }}
{{-- Provider picker --}}
{{ __('Provider') }}
{{-- Helm (account-level) --}} {{-- Shopify (store-level) --}} {{-- Royal Mail Click & Drop (account-level) --}} {{-- ReturnGo — retired in favour of direct Royal Mail Click & Drop. The picker disables the option, but defensively `refuseReturnGoCreate` in the component also refuses a forged payload. --}} {{-- Custom (disabled / coming soon) --}}
@error('provider')
{{ $message }}
@enderror
{{-- Provider-specific form --}} @if ($provider === 'helm')
{{ __('Helm credentials') }} {{ __('Helm authenticates with email + password. We never store the temporary login token Helm returns. The integration name is derived from the API hostname.') }}
@if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif
@endif @if ($provider === 'shopify')
{{ __('Shopify credentials') }} {{ __('Use a Shopify Admin API access token from a private/custom app. The token is encrypted at rest and never returned to the browser. The integration name is derived from the selected store.') }}
{{ __('Choose a store…') }} @foreach ($this->shopifyEligibleStores as $store) {{ $store->name }} @endforeach
@if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif
@endif @if ($provider === 'returngo')
{{ __('ReturnGo credentials') }} {{ __('ReturnGo issues return shipping labels for the macro library. Store-level — one per store, and the store must already have a configured Shopify integration. The API key is encrypted at rest.') }}
@if ($this->returngoBlockedByMissingShopify)
{{ __('No store in your workspace has a configured Shopify integration yet. Connect Shopify for the store you want to use ReturnGo with, then come back here.') }}
@else {{ __('Choose a store…') }} @foreach ($this->returngoEligibleStores as $store) {{ $store->name }} @endforeach

{{ __('Only stores with a configured Shopify integration appear here. ReturnGo uses your Shopify shop domain to identify the store.') }}

@endif
@if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif
@endif @if ($provider === 'royal_mail_click_and_drop')
{{ __('Royal Mail Click & Drop credentials') }} {{ __('Generate the API key inside your Click & Drop account → Settings → Integrations → API. The key inherits your OBA postage contract — no separate OBA / PLA number is needed. Stored encrypted at rest.') }}
{{ __('Return warehouse address') }} {{ __("This is where Royal Mail sends the parcel back to. Address line 1, postcode, and country code are required — Royal Mail's API refuses without all three.") }}
@if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif
@endif @if ($provider !== '')
{{ __('Save and test connection') }}
@endif