我需要从键值对访问数据。
CashfreePGSDK.doPayment(inputParams)
.then((value) => value?.forEach((key, value) {
print("$key : $value");
//Do something with the result
}));
目前,我得到
I/flutter (30088): txStatus : SUCCESS
I/flutter (30088): orderAmount : 951.00
I/flutter (30088): paymentMode : CREDIT_CARD
I/flutter (30088): orderId : 61
I/flutter (30088): txTime : 2021-10-18 13:28:59
I/flutter (30088): signature : cMFtQPuqyibAN+=
I/flutter (30088): txMsg : Transaction Successful
I/flutter (30088): type : CashFreeResponse
I/flutter (30088): referenceId : 1121337
我需要将数据保存在变量中,就像我有一个变量状态一样。所以,我想把成功放在状态中。其余数据也是如此。
有人可以给我建议吗。