bug fixed
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user