Skip to content

Quickstart

Add PPP discounts to your site in under 5 minutes.

Get up and running with GoPayLocal in three steps.

  1. Sign up for free

    Create your account at app.gopaylocal.com. No credit card required — the free tier lets you try every feature on 1 product with 10K API hits/month.

  2. Add the banner script

    Copy your public API key from the dashboard and add the script tag to your site:

    <!-- Add before </body> -->
    <script
    src="https://api.gopaylocal.com/v1/banner/script.js?key=gpl_pk_live_abc123"
    async
    ></script>

    Replace gpl_pk_live_abc123 with your actual public API key from the dashboard.

  3. Configure discounts in the dashboard

    Go to your Dashboard and:

    • Create a Product with your product name and base price
    • Create a Campaign and choose a pricing mode
    • Connect a Payment Integration (Stripe, Paddle, etc.) for automatic coupon creation
    • Customize your Banner appearance

That’s it. Visitors from countries with lower purchasing power will now see a personalized discount banner.

When a visitor loads your page:

  1. The script detects their country via Cloudflare’s edge (zero latency, no external API call)
  2. It looks up the appropriate PPP discount from edge cache (< 10ms)
  3. It checks for VPN/proxy usage
  4. A customizable banner appears showing the discount and coupon code
  5. Analytics are tracked via sendBeacon

The banner script is the simplest integration. For deeper control over pricing display, consider:

You can test PPP behavior without deploying by using browser dev tools to set a different country. GoPayLocal reads the CF-IPCountry header set by Cloudflare. In development, you can override the country by adding a query parameter:

http://localhost:3000?gpl_country=IN