X
DocsGoPay

GoPay

Integrate GoPay payments with PayKit.

PayKit provides seamless GoPay integration with a unified API that works across all payment providers.

Quick Start

Install the GoPay provider:


Setup

Method 1: Environment Variables


Method 2: Direct Configuration


Basic Usage


Next.js catch‑all route. This forwards calls to the generated handlers.


Webhook Setup

Configure your webhook URL in the GoPay dashboard to point to your webhook endpoint. GoPay will send GET requests with payment IDs as query parameters.


Webhook route. This validates and dispatches events.


Environment Variables


💡 When using environment variables with createGopay(), make sure to set debug: true in your provider configuration (see Method 1 above) to receive helpful logs about recommended provider_metadata fields.

Provider Metadata

GoPay supports additional configuration through provider_metadata:


Example checkout


Support