Simple calculation going wrong

In Stripe Payment Intent the amount is without decimal, so to get it with decimal I divide it by 100 (Tools, set variable)
But for some reason:

  • the input is 10x the Stripe value
  • the output is identical to the input, so no dividing by 100 is done

I’m lost. Has anyone a clue?

There is a space between the amount and the divide symbol. Remove this space and try again.

I hope by doing this, your issue will be resolved.

Thanks @RBalani , that was it. Devil is in the details…

2 Likes

Related to this, I’m also having difficulties with updating custom variables at organizational level.
The documentation says to use the Update a Custom Variable module, but that seems outdated, can’t find that module. So I’m using Set a Variable. I’m using the exact name as it’s defined, it increments by 1 but it doesn’t update.

What am I doing wrong this time?

Could you please explain what you’re trying to achieve with the increment?

If you want to generate a new number each time the scenario runs — for example, a unique number like 1001, 1002, 1003, and so on — you can use an increment module to achieve that.

Instead of plus 1 map increment module.

I keep 2 - and in future probably more - transaction numbers, one for each platform. So it makes sense to me to define them at the level of the organization.
I saw the increment module, but I don’t understand how to refer to it, nor how to maintain several of them in parallel. I found the documentation on this very limited.

Perhaps this is the way to go, but I don’t understand it.
I also don’t understand why the way I tried it won’t work.
Either way, as long as I find a way to maintain multiple incrementing numbers in parallel.

Hope you can explain a bit?
Thanks a ton.