Edit javascript code - how get product price | Magento 2

Job ID: 32238498

Budget: $50 – $0 USD

Hi all,

We have Magento 2 store. We need take product price for our partial payment calculator.
We have this code:

<p><span id="installment-mini"></span></p>
<script type="text/javascript">
var value = 1234.56;
var options = {
creditAmount: value,    // amount in PLN
posId: '67328',         // point of sale identifier
key: 'zQ',              // first two characters of API key
showLongDescription: true
};

 OpenPayU.Installments.miniInstallment('#installment-mini', options)
.then(function(result) {
// This fragment of code will be executed after widget is shown
// parameter ‘result’ contains additional functions
})
.catch(function(e) {
console.error(e.toString()); // This snippet writes config errors
// to developer’s console
});
</script>


As you see, we have a sample VAR: var value = 1234.56;
We need get product price instead sample value.

Please estimate how many time and price you need to change this code to our store.

PS. We need a stable cooperative with you. We need more tasks.
Related categories: PHP JavaScript Magento HTML jQuery / Prototype