Calculator iFrame
An iframe (inline frame) is an HTML element that allows you to embed another website or application within your webpage. This document provides guidance on integrating an iframe provided by Bumper, ensuring proper security and compliance.
Implementation
1. Adding the iFrame
To add an iframe to your webpage, follow these steps:
Open your HTML file in a text editor or an integrated development environment (IDE).
Locate the section of your webpage where you want the iframe to appear.
Copy and paste the following iframe code inside the
<body>
tag:
Example Code:
The above is example code and should not be used in a live environment. Please contact Bumper for the correct iFrame HTML specific to your integration.
Save your HTML file and open it in a web browser to confirm that the iframe loads correctly.
2. Content Security Policy (CSP)
To allow embedding of the Bumper iframe, update your site's CSP settings to permit the Bumper domain.
Example CSP Header:
If using a meta
tag in HTML:
BUMPER Parameters
defaultAmount
Sets the default transaction amount for the calculator.
firstRepaymentAvailable
Indicates if the first repayment option is available.
products
Specifies the products included in the calculation.
deposit
: Whether a deposit is required (true/false
).deposit_percentage
: Percentage of deposit required (if any).id
: Unique identifier for the product.instalments
: Number of instalments for repayment.max
: Maximum amount for the product.min
: Minimum amount for the product.
amountPlacement
Defines the placement of the amount, options are right or left
supplier
Identifies the supplier, typically set to Bumper
. This parameters also control the theme shown.
BUMPER will provide these fields fully configured; the information above is for reference only.
Last updated