Try it as your customers see it
This is the live banner, running the discount tiers every new account starts with. Pick a country and the price changes with it.
Visitor country
Abuse check
Max discount
A real campaign setting โ every tier is capped at this number.
Pricing
One plan. Everything included.
Your product
Code PPP-IN65-K7QX takes 65% off at checkout.
Banner shown โ India, 65% off
One code per country, created once and reused for every visitor from India. The random suffix stops anyone guessing another countryโs code.
GET /v1/banner/config โ { "show": true, "country": "IN", "discount": 65, "code": "PPP-IN65-K7QX" }Message, colors and position are campaign settings. The โPowered by GoPayLocalโ link only appears on the Free plan.
<!-- Add to your website's <head> or before </body> -->
<script src="https://api.gopaylocal.com/v1/banner/script.js?key=YOUR_PUBLIC_KEY" async></script>That is the entire integration. Everything above is decided at the edge, per visitor.
How this works in production
Three moving parts, none of them yours to run.
Edge geo-detection
The script loads from the Cloudflare edge and reads the visitor country from the request. No IP database to maintain, no extra round trip to your server.
Your rules decide
The country is matched against the parity groups and caps set in your dashboard. VPN and datacenter traffic is filtered out before a discount is offered.
Codes created for you
The coupon is created in your payment provider โ Stripe, Paddle, LemonSqueezy, Gumroad, Chargebee, Dodo, Polar or Whop โ and reused on every later visit from that country.