{{-- ── Yoco Payment Gateway ──────────────────────────────────────────────── --}}

Yoco Payment Gateway

API keys from your Yoco business dashboard. Use sk_test_ / pk_test_ for staging.

{{-- Public Key --}}

Used client-side (safe to expose)

{{-- Secret Key --}}

Keep secret — server-side only

Never expose this key in frontend code or version control.

{{-- ── Webhook URL ────────────────────────────────────────────────────────── --}}

Webhook Configuration

Configure this URL in your Yoco dashboard under Developers → Webhooks so Yoco can confirm payments server-to-server.

Copy into Yoco dashboard

@php $webhookUrl = config('app.url') . '/checkout/webhook/yoco'; @endphp {{ $webhookUrl }}

In Yoco, select events: payment.succeeded and checkout.complete.

{{-- ── Info box ──────────────────────────────────────────────────────────── --}}

The store uses Yoco's hosted checkout redirect flow — customers are taken to Yoco's secure page to pay and returned on success or failure. No Yoco JS SDK is required.