Try it as your customers see it
A preview of the banner, using GoPayLocal's built-in discount tiers. 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 priced by your campaignโs pricing mode and capped at its maximum discount. 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, Gumroad, Chargebee, Dodo, Polar, Whop, Creem or WooCommerce โ and reused on every later visit from that country.