This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://services.codeweavers.net/v2/script/FinancePlugin?key=YOUR_API_KEY_HERE"></script> | |
<script type='text/javascript'> | |
function loadPlugin() { | |
codeweavers.main({ | |
pluginContentDivId: 'PLUGIN_DIV_ID', | |
vehicle: { | |
type: 'car', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
registration: { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
registration: { | |
year: 2002, | |
plate: '51' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vehicle: { | |
stockId: "STOCK1234" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vehicle: { | |
type: 'car', | |
identifier: '57294', | |
identifierType: 'CAPSHORTCODE', | |
isNew: false, | |
cashPrice: '9695', | |
imageUrl: 'www.MyUrl.co.uk/Image/car.jpg', | |
linkBackUrl: 'www.MyUrl.co.uk/car', | |
mileage: '12123', | |
registration: { }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
registration: { | |
date: '2014-01-01', | |
number: 'BT02BCY' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
registration: { | |
date: '2013-02-07' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
options: { | |
dontCalculateOnLoad: false, | |
disableAutomaticRecalculation: false, | |
recalculationFadeSpeed: 100, | |
recalculationFadeAmount: 100 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
codeweavers.main({ | |
pluginContentDivId: 'PLUGIN_DIV_ID', | |
vehicle: { }, | |
dealer: 'Codeweavers Associated Plugin Dealer', | |
emailFunction: function (emailer) { }, | |
defaultParameters: { }, | |
customerReference: 'customerReference', | |
options: { }, | |
onSuccessfulCalculation: function (calculations) { }, | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emailFunction: function (emailer) { | |
emailer.send({ }); // Required - This will send the email. | |
} |