bug fixed

This commit is contained in:
nutchayut
2025-02-27 21:32:02 +07:00
parent cc34c258c7
commit 0cb4ae4124
2 changed files with 2 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ class _TransferPromptPayDetailState extends State<TransferPromptPayDetail> {
// var param = jsonEncode(<dynamic, dynamic>{"IDCardOrMobileDeviceNo": widget.phone, "Amount": priceTemp});
var param = jsonEncode(
<dynamic, dynamic>{"requestTransactionID": Utils.getDateInitPromptPay() + widget.phone.lastChars(4), "iDCardorMobileNo": widget.phone, "amount": "${priceTemp}00"});
<dynamic, dynamic>{"requestTransactionID": Utils.getDateInitPromptPay() + widget.phone.lastChars(4), "iDCardorMobileNo": widget.phone, "amount": "${(double.parse(priceTemp).toStringAsFixed(2)).replaceAll(".", "")}"});
Api.post(context, Api.payPromptPayInitial, param).then((value) => {
if (value != null)
{

View File

@@ -51,7 +51,7 @@ class _TransferPromptPayDetailState extends State<TopUpAmountPage> {
});
var param = jsonEncode(<dynamic, dynamic>{
"merchantLocalID": Api.merchantId,
"amount": "${number}00",
"amount": "${(double.parse(number).toStringAsFixed(2)).replaceAll(".", "")}}",
"invoice": "INV${Utils.getTimestamp()}",
"ref1": "REF${Utils.getTimestamp()}01",
"ref2": "REF${Utils.getTimestamp()}02",