+source +destination in payments
This commit is contained in:
@@ -254,9 +254,7 @@ class PaymentsProvider with ChangeNotifier {
|
||||
}
|
||||
|
||||
String? _paymentKey(Payment payment) {
|
||||
final ref = _normalize(payment.paymentRef);
|
||||
if (ref != null) return ref;
|
||||
return _normalize(payment.idempotencyKey);
|
||||
return _normalize(payment.paymentRef);
|
||||
}
|
||||
|
||||
List<String>? _normalizeStates(List<String>? states) {
|
||||
|
||||
@@ -79,8 +79,6 @@ class PaymentsUpdatesProvider extends ChangeNotifier {
|
||||
String? _key(Payment payment) {
|
||||
final ref = payment.paymentRef?.trim();
|
||||
if (ref != null && ref.isNotEmpty) return ref;
|
||||
final idempotency = payment.idempotencyKey?.trim();
|
||||
if (idempotency != null && idempotency.isNotEmpty) return idempotency;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user