
Visa Checker Widget
Add a free visa requirements checker to your travel website. Help your visitors check visa requirements instantly.
Quick Integration
Copy-paste code. No API keys, no complex setup. Works on any website.
200+ Countries
Comprehensive visa data for passport holders worldwide.
Fully Responsive
Works on desktop, tablet, and mobile. Auto-adjusts height.
Earn Commission
Earn when visitors apply for visas through your widget.
Quick Start
Choose your platform and copy the code:
<!-- Visa Checker Widget by DoVisa -->
<div id="dovisa-visa-checker"></div>
<script src="https://dovisa.com/assets/widgets/visa-checker.js"></script>
<script>
DoVisaVisaChecker.init({
container: '#dovisa-visa-checker'
});
</script>Live Preview
This is exactly what will appear on your website:
Default light theme with DoVisa brand color
Configuration Options
Customize the widget to match your needs:
| Option | Type | Default | Description |
|---|---|---|---|
container | string | Element | required | CSS selector or DOM element for the container |
theme | string | "light" | "light" or "dark" color scheme |
primaryColor | string | "00D4AA" | Brand color in hex (without #) |
maxWidth | string | "500px" | Maximum width (e.g., "600px", "100%", "none") |
ref | string | "" | Your DoVisa affiliate code (5 alphanumeric chars) |
defaultFrom | string | "" | Preset passport country (ISO 2-letter code, e.g., "US") |
defaultTo | string | "" | Preset destination country (ISO 2-letter code, e.g., "TH") |
onReady | function | null | Callback when widget is fully loaded |
onResult | function | null | Callback when visa check completes with result data |
onError | function | null | Callback when an error occurs |
Advanced Usage
1 Preset Countries
Pre-fill the form for country-specific pages (e.g., "Germany to Thailand" visa guide):
// Perfect for country-specific visa guides
DoVisaVisaChecker.init({
container: '#visa-checker',
defaultFrom: 'DE', // Pre-select Germany as passport country
defaultTo: 'TH', // Pre-select Thailand as destination
theme: 'light'
});2 With Callbacks
DoVisaVisaChecker.init({
container: '#visa-checker',
onReady: function() {
console.log('Widget loaded!');
// Hide your custom loading spinner
},
onResult: function(data) {
console.log('Visa check complete:', data);
// data.hasVisa: boolean - user already has a valid visa
// data.visaFree: boolean - no visa required
// data.products: number - available visa products
},
onError: function(message) {
console.error('Widget error:', message);
// Handle errors gracefully
}
});3 Data Attributes (No JavaScript Required)
<!-- Auto-initializes without any JavaScript -->
<div data-dovisa-widget="visa-checker"
data-theme="light"
data-color="00D4AA"
data-from="US"
data-to="JP"
data-max-width="500px">
</div>
<script src="https://dovisa.com/assets/widgets/visa-checker.js"></script>4 Earn with Affiliate Tracking
Add your affiliate code using the ref parameter to earn commission when visitors apply for visas:
- Users check visa requirements on your site
- When they click "Apply with DoVisa", your
refcode is passed - An attribution cookie is set on their browser (90-day duration)
- If they purchase a visa service, you earn commission
DoVisaVisaChecker.init({
container: '#visa-checker',
ref: 'abc12' // Your 5-character affiliate code
});Don't have an affiliate code? Join our affiliate program to get started.
Frequently Asked Questions
Is the widget free to use?
Yes, the widget is completely free. We just ask that you keep the "Powered by DoVisa" attribution link visible. Contact us for white-label enterprise options.
How accurate is the visa data?
We maintain an up-to-date database of visa requirements for 200+ countries. Data is regularly verified against official government sources.
Can I pre-fill the countries?
Yes! Use the defaultFrom and defaultTo options to pre-select passport and destination countries. Great for country-specific pages.
Does it work on WordPress?
Yes! Add the code snippet to any WordPress page using a Custom HTML block, or use your theme's code injection feature.
Can I remove the DoVisa branding?
The attribution link is required for free usage. For white-label solutions without branding, please contact us about enterprise pricing.
Does it work on mobile devices?
Yes, the widget is fully responsive and works on all devices including smartphones and tablets.
How does the affiliate program work?
Add your affiliate code using the ref parameter. When visitors click through and purchase a visa service, you earn commission. Join our affiliate program to get started.
What happens when users click "Apply with DoVisa"?
Users are directed to our website with your affiliate code. If they complete a visa purchase, you earn commission (90-day cookie duration).
Platform-Specific Guides
How to add the widget on popular platforms:
WordPress
- Edit your page/post in WordPress
- Add a "Custom HTML" block
- Paste the widget code
- Save and preview
Wix
- Open Wix Editor
- Add "Embed Code" element
- Choose "Embed a widget"
- Paste the code and apply
Squarespace
- Edit your page
- Add a "Code" block
- Set display to "HTML"
- Paste code and save
Any HTML Website
- Open your HTML file
- Find where you want the widget
- Paste the code directly
- Upload and test
Need Help?
Our team is here to help you integrate the widget. Contact us for technical support or enterprise solutions.