We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d1e9a7 commit 7eaf1adCopy full SHA for 7eaf1ad
js/index.js
@@ -346,17 +346,17 @@ class TransactionAttributes {
346
}
347
348
setRevenue (revenue) {
349
- this.revenue = revenue
+ this.revenue = typeof revenue === 'string' ? parseFloat(revenue) : revenue
350
return this
351
352
353
setShipping (shipping) {
354
- this.shipping = shipping
+ this.shipping = typeof shipping === 'string' ? parseFloat(shipping) : shipping
355
356
357
358
setTax (tax) {
359
- this.tax = tax
+ this.tax = typeof tax === 'string' ? parseFloat(tax) : tax
360
361
362
0 commit comments