Hi!
This worked :
<script>
function myFunction() {
Paddle.Product.Prices(12345, 1,function(prices) {
console.log(prices);
var prod6= prices.price.gross.replace('.00', '').replace(/\D/g,'');
dmx.app.set('prod6', prod6);
});
}
</script>
I spoke to them and they confirmed that they always use .(dot) as the currency separator, even for currencies like Euro.
For the math part , like dividing a subscription cost by number of months to display monthly cost , they suggested Pricing API 2.0 . It works well , but i wanted to avoid api calls and the error handling that goes with it so for now i’ll keep it simple, maybe implement it later if needed
https://sandbox-checkout.paddle.com/api/2.0/prices ( just need to add query params here)
https://developer.paddle.com/api-reference/b3A6MzA4NjA4Mjc-get-prices
I tried Fastspring and 2checkout too before deciding on Paddle
If i wanted a atomatically renewing subscription , with upgrades and downgrades i would have gone with 2checkout. (readymade customer portal , live support 24hrs)
Fastspring looked easy at first , but there were unbelievable problems like cannot specify inclusive of tax price for US dollars !
For my model I went with Paddle One time purchases ( which i use as a subscription top up)
So for example 3 months pack is a one time purchase product. A person can choose to buy it again at which point his subscription will be topped up
Fastspring and 2checkout do not have such an option. They insist that one time purchases be used only for lifetime acces. And if you use their subscription model with renewals turned off , you cannot prevent overlapping periods ( you have to handle that in your own code)
So a person can purchase subscription for Apr to Jun multiple times and that looks so weird in the customer portal until you refund the customer
In paddle i can atleast show that the subscription was topped up , and then refund if the purchase was was not intended .
I’m making an educational product and the goal should be that users should use it for a limited time and move on to real world material. So i think renewals will be less. And those that renew, they will renew only once or twice. Didn’t want the hassle of upgrades , downgrades , card details being compulsorily store (2checkout does this, cannot turn it off) , accidental multiple subscriptions for same period.
Paddle turned out to be perfect. And the customer support while not live , is in my opinion the best (very friendly , detailed ).