added float point in purchase confirmation
This commit is contained in:
@@ -242,6 +242,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
||||
print(exception);
|
||||
}
|
||||
}
|
||||
print(sumTotal.toStringAsFixed(2));
|
||||
return sumTotal.toStringAsFixed(2);
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ class StringsLocalization {
|
||||
|
||||
static String confirmPurchase(String val, int code) {
|
||||
String trimmedVal =val.substring(0, val.length - 3);
|
||||
return sprintf(Intl.message('confirm_purchase', name: 'confirm_purchase', locale: Intl.defaultLocale), [trimmedVal, declineCurrency(int.parse(trimmedVal), code)]);
|
||||
return sprintf(Intl.message('confirm_purchase', name: 'confirm_purchase', locale: Intl.defaultLocale), [val, declineCurrency(int.parse(trimmedVal), code)]);
|
||||
}
|
||||
|
||||
static String purchaseCompleted(String val, int code) {
|
||||
|
||||
Reference in New Issue
Block a user