This file contains 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
<?php | |
function microtime_float() | |
{ | |
list($usec, $sec) = explode(" ", microtime()); | |
return ((float)$usec + (float)$sec); | |
} | |
$time_start = microtime_float(); | |
$request = array( | |
'Credentials' => array( |
This file contains 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
<?php | |
function microtime_float() | |
{ | |
list($usec, $sec) = explode(" ", microtime()); | |
return ((float)$usec + (float)$sec); | |
} | |
$time_start = microtime_float(); | |
$request = array( | |
'Credentials' => array( |
This file contains 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
<Calculate> | |
<Credentials> | |
<Username>username</Username> | |
<Password>password</Password> | |
</Credentials> | |
<CustomerParameters> | |
<AnnualMileage>10000</AnnualMileage> | |
<MaximumTerm>36</MaximumTerm> | |
<TotalDeposit>1000</TotalDeposit> | |
<DepositType>Amount</DepositType> |
This file contains 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
<script type="text/javascript"> | |
var request = { | |
Credentials: { | |
Username: "USERNAME", | |
Password: "PASSWORD", | |
}, | |
Customer: { | |
Reference: "SESSIONID" | |
}, | |
Parameters: { |
This file contains 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({ | |
onUserEvent: function (event, data) { | |
console.info('Track: ' + event, data); | |
//= Track your own plugin events here. | |
} | |
}); |
This file contains 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
<script type="text/javascript" src="https://services.codeweavers.net/v2/script/FinancePlugin?key=YOUR_API_KEY_HERE&dealerKey=YOUR_DEALER_KEY"></script> |
This file contains 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
[ | |
{ | |
"Key": "HP", | |
"Notifications": { | |
"Public": [] | |
}, | |
"Quote": { | |
"AllInclusiveRegularPayment": 682.84, | |
"CashPrice": 22948, | |
"TotalPrice": 22948, |
This file contains 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({ | |
onSuccessfulCalculation: function (calculations) { | |
//= consume calculation responses. | |
}, | |
}); |
This file contains 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
var request = { | |
Credentials: { }, | |
Customer: { }, | |
Parameters: { }, | |
VehicleRequests: [{ }] | |
}; |
This file contains 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
specificProductType: 'HP', |
NewerOlder