Open UBT-FJ opened 9 months ago
anybody? I also tried in stripe but cant get it to work!
Hi, can i see your pricing definition?
I tried also the step size but it didnt work!
I think the unit price is associated to the flat fee. If you add a flat fee of test, the unit price might return the flat fee
but I want to use the Enrgy, isnt that possible?
What I am telling you is, the first row of the stripe invoice is exclusively for the flat fee on your Price dimension.
If you want to have the energy price, you can change the code to put it in the first line
What I am telling you is, the first row of the stripe invoice is exclusively for the flat fee on your Price dimension.
If you want to have the energy price, you can change the code to put it in the first line
Do you happen to know where should I change it? :(
What I am telling you is, the first row of the stripe invoice is exclusively for the flat fee on your Price dimension.
If you want to have the energy price, you can change the code to put it in the first line
I have just tested with the flat fee and it doesnt show either!
Did you figured it out, or are you confronting the same issue?
Did you figured it out, or are you confronting the same issue?
Hello @Zakichanu , thanks for getting back to this thread.
I read and followed a lot of code to found out that the unitPrice
doesnt get with the other values in one of the functions!
Instead I ended up getting that value from the Transactions class.
In StripeBillingIntegration.ts
, in this function buildLineItemDescription4PricedDimension()
there is also this const unitPrice = Utils.createDecimal(pricedData.unitPrice).toNumber().toLocaleString(userLocale);
which returns 0!
So I had to make it like this const unitPrice = transaction.pricingModel.pricingDefinitions[0].dimensions.energy.pricedData.unitPrice;
to get something like what you can see in the screenshot.
If you know a better way please let me know.
Hi @UBT-FJ,
That's a great way to modify this in my opinion. I never use this part in my case so I don't know if there is a better way for this.
I think we can close this issue then
Hello, been testing the system and set the pricing in Integration Settings>Pricing Dimesions>Energy as per kWh, and the calcs are correct but the unit price is not showing in the invoice!
This was done with the ev-simulator.