# Inbank Car Loan Calculator for E-shops
Documentation version 1.03, 20.11.2025
Here at Inbank we strive to help our partners sell more by simplifying purchases and making financing more accessible to customers. For this reason, we have built a plug-and-play calculator solution for our merchants. Just pick the calculator format suitable to your website, follow the simple steps below and start displaying monthly payments to your customers. This added feature will boost your conversion and sales.
For questions regarding the Inbank Car Loan calculator, contact us at:
- Estonia - integration@inbank.ee
- Poland - integration@inbank.pl
- Latvia - integration@inbank.lv
- Czechia - integration@inbank.cz
Note that you need to contact your Inbank representative for the calculator to appear on the pages of your e-shop. The domain, where the calculator is used, needs to be whitelisted by Inbank.
# Adding the Calculator to a Page
You can add the calculator to any webpage by simply using an iFrame. The website platform of your site defines how the iFrame can be published to all product pages (or checkout page if needed).
You can easily construct the calculator code using Inbank's iFrame code generator:
- In Estonia - https://epos.inbank.ee/et/calculator-iframe-generator
- In Poland - https://epos.inbank.pl/pl/calculator-iframe-generator
- In Latvia - https://epos.inbank.lv/lv/calculator-iframe-generator
- In Czechia- https://epos.inbank.cz/cs/calculator-iframe-generator
Example of the iFrame calculator configuration:
```
```
Note that you need to contact your Inbank representative for the calculator to appear on the pages of your e-shop. The domain, where the calculator is used, needs to be whitelisted by Inbank.
Note that all calculators have a mobile view which will be applied if the calculator is viewed from a mobile device. The precise appearance of the calculator mobile views depends heavily on the layout of pages.
For example, the dimensions of 400(width)x600(height) will be equally suitable for both mobile and desktop views, for a calculator that has three sliders and does not include the representative sample nor the `Apply` button. If the calculator would have the `Apply` button, for example, the dimensions would need to be adjusted.
While some dimensions might be suitable for the desktop view, they might not work too well on mobile. In such cases, the implementation of two different dimensions for the two views is needed.
For best results, the container holding the iFrame has to be responsive. Based on that the partner can then change the width and height.
Note that in order to use the Inbank calculator, your site should use the following Response Headers values: `X-Frame-Options: SAMEORIGIN` (more information here) and `Referrer-Policy: origin` (more information here).
# Configuring the Calculator
There are multiple parameters that can be configured, so that the calculator looks and works as you expect it to. Mandatory configuration parameters are marked with *.
|Parameter|Description|
| :- | :- |
|Required parameters|
|height and width|The dimensions of the calculator on a page. The height and width are editable and can be suited to your needs.
Size examples can be found in the [Inbank Car Loan Calculator Views](#calculatorViews) section. For best results, the container holding the iFrame has to be responsive. Based on that the partner can then change the width and height.|
|URL\*|The URL to which calculation requests are made. The correct URL path ensures that the calculator reflects the data for the correct country and payment product.
The demo URL which can be used for testing purposes is:
Default color combinations for backgrounds purple, grey and white in text template with representative sample. Dimensions h=195, w=350.
Default color combinations for backgrounds purple, grey and white in text template without the Inbank logo. Dimensions h=100, w=240.
Color customization options with grey background and template with editable amount. The same customizations are also available for other background colors and uneditable amount template. There is also the option of not displaying the Inbank logo as well. Dimensions h=570, w=360.
Note that for calculations used in Latvia and other cases when there is a need to show the representative sample, example dimensions for a calculator that has two sliders and an `Apply` button are:
- w=400, h=660 for vertical layout
- w=360, h=195 for text calculator template
# Including Product Data into the Calculator Configuration
In the iFrame example [provided above](#addCalculator), all parameters are set to a static value. However, it is expected that the vehicle price is taken from the product page. For example, in WordPress with the WooCommerce e-commerce plugin the price can be extracted like this:
- Have the product defined as `$product` in the .php file in which you want to add the calculator.
- When assembling the iFrame URL, replace the amount value with `get_price(); ?>`.
```
global $product;
```
Similarly, the vehicle brand, model and image link can be automatically inserted from the product page:
- To automatically insert the vehicle brand, set the make parameter to `get_attribute( 'make' ); ?>`
- To automatically insert the vehicle model, set the model parameter to `get_attribute( 'model' ); ?>`
- To automatically insert the vehicle brand, set the image_url parameter to `get_attribute( 'imageURL' ); ?>`
```
global $product;
```
Please note, the code samples above are examples and the implementation details may differ based on the setup of your site.
# Responsive Calculator Implementation
WIDTH:
For responsiveness you need to take into account different screen sizes or set the iFrame width in percentages or 'auto', depending on how your website is built (for example, width="auto" OR width="100%"). This will then set the iFrame width depending on the parent element. If the parent element is 500px wide then the calculator maximum width can also be maximum 500px.
Common breakpoints for widths of devices:
- 320px — 480px: Mobile devices
- 481px — 768px: iPads, Tablets
- 769px — 1024px: Small screens, laptops
- 1025px — 1200px: Desktops, large screens
- 1201px and more — Extra large screens, TV
HEIGHT:
On the other hand, you need to set the height depending on the width of the calculator, for example, the more the calculator shrinks (gets smaller in width) the more height it needs. This can be done with showing different blocks via:
- Bootstrap: Grid examples (d-block, d-md-block, d-lg-block, d-xl-block, d-xl-none, d-lg-none, d-md-none, d-none)
- React Material UI - https://mui.com/system/display/#hiding-elements
- Pure CSS - https://www.freecodecamp.org/news/css-media-queries-breakpoints-media-types-standard-resolutions-and-more/
With PURE CSS you need to define all the media types and sizes and inside them you either display a block or you do not display a block.
You can find two basic calculator implementation examples below (based on Bootstrap and React Material UI).
## Bootstrap Example
Insert code below here to test it out and understand what it does and how it's working - https://www.w3schools.com/bootstrap4/tryit.asp?filename=trybs_grid_examples1&stacked=h
If you want more precise elements you can also make more divs with different blocks to show and not to show and set the height in each iFrame.
```
Use the .col class on a specified number of elements and Bootstrap will recognize how many elements there are (and create equal-width columns). In the example below, we use two col elements, which gets a width of 33.33% and 66.66%
BIG CALCULATOR
SMALL CALCULATOR
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularized in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularized in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularized in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
BIG CALCULATOR
SMALL CALCULATOR
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularized in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum