|
|
@@ -60,6 +60,8 @@ class PaymentStatusManager {
|
|
|
reportPaySuccess(storeItemBean.amount, orderNo, storeItemBean.name,
|
|
|
paymentWay.payMethod);
|
|
|
}).catchError((error) async {
|
|
|
+ ///失败回调
|
|
|
+ callbackMap[orderNo]?.onPaymentFail();
|
|
|
await _lock.synchronized(() {
|
|
|
callbackMap.remove(orderNo);
|
|
|
});
|
|
|
@@ -137,4 +139,6 @@ class PaymentStatusException implements Exception {
|
|
|
abstract class PaymentStatusCallback {
|
|
|
void onPaymentSuccess(
|
|
|
String orderNo, PayItemBean paymentWay, GoodsBean storeItemBean);
|
|
|
+
|
|
|
+ void onPaymentFail();
|
|
|
}
|