# GoPayLocal > GoPayLocal adds purchasing power parity (PPP) discounts to a website. A banner script, or the React or JavaScript SDK, asks the GoPayLocal API about the current visitor; the API reads the visitor's country at the Cloudflare edge and answers with a discount percentage and a coupon code that GoPayLocal created in the merchant's payment provider. Every page on this site has a Markdown version at the page path plus `.md`, for example https://docs.gopaylocal.com/banner/installation.md. The links below point to those Markdown files. - Adding GoPayLocal to a codebase: read the [reference card](https://docs.gopaylocal.com/ai/reference-card.md) first, then follow the [integration prompt](https://docs.gopaylocal.com/ai/integration-prompt.md). The reference card is checked against the source code; if another page disagrees with it, trust the reference card. - What to ask the human for: a public API key from the GoPayLocal dashboard (it starts with `gpl_pk_`) and which payment provider they sell through. Products, campaigns, discount levels, coupon codes and A/B tests are configured in the dashboard, not in code. - Everything in one file: [llms-full.txt](https://docs.gopaylocal.com/llms-full.txt). Integration essentials only: [llms-small.txt](https://docs.gopaylocal.com/llms-small.txt). ## Getting Started - [Introduction](https://docs.gopaylocal.com/getting-started/introduction.md): What is GoPayLocal and why PPP matters for your global SaaS business. - [Quickstart](https://docs.gopaylocal.com/getting-started/quickstart.md): Add PPP discounts to your site in under 5 minutes. - [How It Works](https://docs.gopaylocal.com/getting-started/how-it-works.md): Technical overview of GoPayLocal's architecture and request flow. - [Key Concepts](https://docs.gopaylocal.com/getting-started/concepts.md): Core concepts in GoPayLocal — PPP, pricing modes, parity tiers, discount delivery, products, campaigns and API keys. ## AI agents - [Use GoPayLocal with AI agents](https://docs.gopaylocal.com/ai/overview.md): Point Claude Code, Cursor, Codex or another coding agent at these docs — llms.txt, per-page Markdown — and know what the agent needs from you to finish a GoPayLocal integration. - [Integration prompt](https://docs.gopaylocal.com/ai/integration-prompt.md): A copy-paste prompt that makes a coding agent integrate GoPayLocal into an existing codebase end to end, reading these docs as Markdown instead of relying on memory. - [For agents: reference card](https://docs.gopaylocal.com/ai/reference-card.md): Dense, source-checked facts for coding agents integrating GoPayLocal — the public endpoints, SDK entry points, banner script URL, template tokens, A/B tests and common mistakes. ## Banner Script - [Banner Script Installation](https://docs.gopaylocal.com/banner/installation.md): Install the GoPayLocal banner script on your site with a single script tag. - [Banner Customization](https://docs.gopaylocal.com/banner/customization.md): Edit the GoPayLocal banner design in the dashboard, use its message placeholders, and override it from the JavaScript and React SDKs. - [Banner Positioning](https://docs.gopaylocal.com/banner/positioning.md): Choose where the GoPayLocal PPP banner appears on your site. - [Banner Events & Analytics](https://docs.gopaylocal.com/banner/events.md): How GoPayLocal counts impressions, which events the banner reports, and what is stored. ## React SDK - [React SDK Installation](https://docs.gopaylocal.com/react/installation.md): Install and set up the GoPayLocal React SDK in your React or Next.js app. - [GoPayLocalProvider](https://docs.gopaylocal.com/react/provider.md): Reference for the GoPayLocalProvider component — the root of every GoPayLocal React integration. - [React Hooks](https://docs.gopaylocal.com/react/hooks.md): API reference for usePPP() and usePrice() hooks in the GoPayLocal React SDK. - [React Components](https://docs.gopaylocal.com/react/components.md): Reference for all GoPayLocal React SDK components — PPPBanner, PPPPrice, PPPPriceFormatted, and more. - [Pricing Table Component](https://docs.gopaylocal.com/react/pricing-table.md): Drop-in PPP-aware pricing table that applies each visitor's discount to every plan. ## JavaScript SDK - [JavaScript SDK Installation](https://docs.gopaylocal.com/js/installation.md): Install the GoPayLocal JavaScript SDK for vanilla JS, Vue, Svelte, and other frameworks. - [GoPayLocal Client](https://docs.gopaylocal.com/js/client.md): Full API reference for the GoPayLocal JavaScript SDK client class. - [Data Attributes](https://docs.gopaylocal.com/js/data-attributes.md): Update pricing on your page with zero custom JavaScript using GoPayLocal data attributes. - [JavaScript SDK Banner](https://docs.gopaylocal.com/js/banner.md): Programmatically show and control the PPP discount banner with the JavaScript SDK. ## Integrations - [Integrations Overview](https://docs.gopaylocal.com/integrations/overview.md): The nine payment providers GoPayLocal creates PPP discount codes in, and how connecting one works. - [Dodo Payments](https://docs.gopaylocal.com/integrations/dodo-payments.md): Connect Dodo Payments so GoPayLocal creates PPP discount codes in your Dodo account, or sets each country's price on your Dodo product, and counts redemptions. - [Stripe](https://docs.gopaylocal.com/integrations/stripe.md): Integrate GoPayLocal with Stripe for automatic PPP discount coupons, including Stripe Managed Payments. - [Paddle](https://docs.gopaylocal.com/integrations/paddle.md): Integrate GoPayLocal with Paddle Billing for automatic PPP discount codes. - [Gumroad](https://docs.gopaylocal.com/integrations/gumroad.md): Integrate GoPayLocal with Gumroad for PPP offer codes. - [Chargebee](https://docs.gopaylocal.com/integrations/chargebee.md): Connect Chargebee so GoPayLocal creates PPP coupons on your Chargebee site and counts their redemptions. - [Whop](https://docs.gopaylocal.com/integrations/whop.md): Connect Whop so GoPayLocal creates PPP promo codes in your Whop account and counts their redemptions. - [Polar](https://docs.gopaylocal.com/integrations/polar.md): Connect Polar so GoPayLocal creates PPP discounts in your Polar organization and counts their redemptions. - [Creem](https://docs.gopaylocal.com/integrations/creem.md): Connect GoPayLocal to a Creem store for PPP discount codes and redemption tracking. - [WooCommerce](https://docs.gopaylocal.com/integrations/woocommerce.md): Connect GoPayLocal to your WooCommerce store for PPP coupons and redemption tracking. ## Dashboard - [Products](https://docs.gopaylocal.com/dashboard/products.md): Creating and importing products in the GoPayLocal dashboard. - [Campaigns](https://docs.gopaylocal.com/dashboard/campaigns.md): Configuring PPP discount campaigns in the GoPayLocal dashboard. - [Parity Groups](https://docs.gopaylocal.com/dashboard/parity-groups.md): How parity tiers group countries, what the default tiers are, and the PPP factors behind PPP Factor pricing. - [Analytics](https://docs.gopaylocal.com/dashboard/analytics.md): What the GoPayLocal dashboard's Overview page shows, where the numbers come from and how far back they go. - [API Keys](https://docs.gopaylocal.com/dashboard/api-keys.md): Creating and revoking API keys in the GoPayLocal dashboard. - [Team Management](https://docs.gopaylocal.com/dashboard/team.md): Roles, permissions, product access and invitations in a GoPayLocal workspace. - [Billing](https://docs.gopaylocal.com/dashboard/billing.md): GoPayLocal's plans, what counts as an API call, and managing a subscription. ## API Reference - [Authentication](https://docs.gopaylocal.com/api/authentication.md): Public keys for the banner, secret keys for the management API, and the dashboard session. - [Products API](https://docs.gopaylocal.com/api/products.md): API reference for listing, creating, editing and deleting products. - [Campaigns API](https://docs.gopaylocal.com/api/campaigns.md): API reference for creating and managing campaigns. - [Holiday Deals API](https://docs.gopaylocal.com/api/deals.md): API reference for a campaign's holiday deals. - [Experiments API](https://docs.gopaylocal.com/api/experiments.md): API reference for A/B tests (experiments) between two campaigns. - [Parity Groups API](https://docs.gopaylocal.com/api/parity-groups.md): API reference for listing, creating, editing and deleting parity groups and their countries. - [Banner API](https://docs.gopaylocal.com/api/banner.md): API reference for the public banner endpoints. - [Analytics API](https://docs.gopaylocal.com/api/analytics.md): API reference for the analytics endpoints, reading aggregated banner analytics and ingesting banner events. - [Integrations API](https://docs.gopaylocal.com/api/integrations.md): API reference for connecting and managing payment provider integrations. - [API Keys API](https://docs.gopaylocal.com/api/api-keys.md): API reference for listing, creating and revoking API keys. - [Webhooks](https://docs.gopaylocal.com/api/webhooks.md): How GoPayLocal receives and verifies payment provider webhooks to count redemptions. ## Guides - [Pricing Modes](https://docs.gopaylocal.com/guides/pricing-modes.md): How GoPayLocal's three pricing modes calculate each country's discount — PPP Factor, Group and Custom. - [Charm Pricing](https://docs.gopaylocal.com/guides/charm-pricing.md): How GoPayLocal rounds converted local prices to natural price points without ever understating them. - [VPN Detection](https://docs.gopaylocal.com/guides/vpn-detection.md): How GoPayLocal spots VPN, datacenter and Tor traffic, what it misses, where the data comes from, and how self-hosters load it. - [A/B Testing](https://docs.gopaylocal.com/guides/ab-testing.md): Split a product's visitors between two campaigns and compare discount levels. - [Holiday Deals](https://docs.gopaylocal.com/guides/holiday-deals.md): Run a sale with a first and a last day. Each visitor is offered the larger of the deal and their country's discount. - [Multi-Currency Display](https://docs.gopaylocal.com/guides/multi-currency.md): Show visitors the discounted price in their own currency, converted at the day's rate. - [Auto-Apply Discounts](https://docs.gopaylocal.com/guides/auto-apply.md): Apply the visitor's PPP code in your own checkout, so they don't have to copy and paste it. - [Moving from Lemon Squeezy](https://docs.gopaylocal.com/guides/moving-from-lemon-squeezy.md): Lemon Squeezy stops processing payments on March 31, 2027. How to keep your PPP discounts working on Stripe. ## Platform Guides - [Next.js](https://docs.gopaylocal.com/platforms/nextjs.md): Integrate GoPayLocal with Next.js — App Router and Pages Router. - [Remix](https://docs.gopaylocal.com/platforms/remix.md): Integrate GoPayLocal with Remix. - [Astro](https://docs.gopaylocal.com/platforms/astro.md): Integrate GoPayLocal with Astro sites. - [WordPress](https://docs.gopaylocal.com/platforms/wordpress.md): Add GoPayLocal PPP discounts to your WordPress site. - [Shopify](https://docs.gopaylocal.com/platforms/shopify.md): Add GoPayLocal PPP discounts to your Shopify store. - [Webflow](https://docs.gopaylocal.com/platforms/webflow.md): Add GoPayLocal PPP discounts to your Webflow site. - [Framer](https://docs.gopaylocal.com/platforms/framer.md): Add GoPayLocal PPP discounts to your Framer site. - [Carrd](https://docs.gopaylocal.com/platforms/carrd.md): Add GoPayLocal PPP discounts to your Carrd site. ## Self-hosting - [Self-hosting overview](https://docs.gopaylocal.com/self-hosting.md): Run GoPayLocal on your own Cloudflare account and Postgres database. What you deploy, what you need, which Cloudflare plan, and the order of the setup steps. - [Database and migrations](https://docs.gopaylocal.com/self-hosting/database.md): Create the Postgres database for a self-hosted GoPayLocal, apply the schema with drizzle-kit, and understand how the Worker and the scripts connect to it. - [Cloudflare setup](https://docs.gopaylocal.com/self-hosting/cloudflare.md): Create the Cloudflare resources for a self-hosted GoPayLocal, write wrangler.toml from the example, set secrets, and deploy the API, the dashboard and the admin app. - [OAuth setup](https://docs.gopaylocal.com/self-hosting/oauth.md): Create the Google or GitHub OAuth app that people use to sign in to a self-hosted GoPayLocal, and why OAuth is required. - [First admin user](https://docs.gopaylocal.com/self-hosting/first-admin.md): Give yourself the platform admin role on a self-hosted GoPayLocal, with ADMIN_EMAILS and sync-admins.js or with one SQL statement. - [Configuration reference](https://docs.gopaylocal.com/self-hosting/configuration.md): Every binding, variable and secret a self-hosted GoPayLocal reads, whether it is required, and what happens without it. - [Upgrading](https://docs.gopaylocal.com/self-hosting/upgrading.md): Update a self-hosted GoPayLocal to a newer version, apply new database migrations, pick up new configuration, and roll back if needed. - [Differences from hosted](https://docs.gopaylocal.com/self-hosting/hosted-differences.md): What changes when GoPayLocal runs in self-hosted mode compared with the hosted service at gopaylocal.com - limits, branding, billing, email and operations. ## Optional - [GoPayLocal Documentation](https://docs.gopaylocal.com/index.md): PPP discounts that just work. Documentation for integrating GoPayLocal into your app. - [Complete documentation](https://docs.gopaylocal.com/llms-full.txt): every page above in a single Markdown file - [Source code](https://github.com/RayLabsHQ/gopaylocal): the GoPayLocal monorepo (API, banner script, SDKs, dashboard)