Dollars to Cents in AngularJS for Stripe Checkout -
so have value returned firebase looks this:
143.418
when run through angulars currency filter returns:
{{invoice.pricing.gratotal | currency}} //returns : $143.42
i have integrated stripe checkout application , needs values so:
14342
so without decimal points or dollar signs. not formatted @ all. how original value rounded , remove decimal point sent stripe?
i tried adding variables formatter:
{{invoice.pricing.gratotal | currency:undefined:0}}
but added dollar sign , removed cents together.
$143
simply define filter uses
math.round(amount * 100);
Comments
Post a Comment