improved logging in callbacks

This commit is contained in:
Stephan D
2026-03-03 01:07:35 +01:00
parent b10ec79fe0
commit bae4cd6e35
45 changed files with 226 additions and 146 deletions

View File

@@ -13,7 +13,6 @@ import 'package:pshared/models/payment/quote/quotes.dart';
import 'package:pshared/service/authorization/service.dart';
import 'package:pshared/service/services.dart';
class MultiplePaymentsService {
static final _logger = Logger('service.payment.multiple');
static const String _objectType = Services.payments;
@@ -37,6 +36,7 @@ class MultiplePaymentsService {
String organizationRef,
String quoteRef, {
String? idempotencyKey,
String? clientPaymentRef,
Map<String, String>? metadata,
}) async {
_logger.fine(
@@ -45,6 +45,7 @@ class MultiplePaymentsService {
final request = InitiatePaymentsRequest(
idempotencyKey: idempotencyKey ?? const Uuid().v4(),
quoteRef: quoteRef,
clientPaymentRef: clientPaymentRef,
metadata: metadata,
);

View File

@@ -82,6 +82,7 @@ class PaymentService {
String organizationRef,
String quotationRef, {
String? idempotencyKey,
String? clientPaymentRef,
Map<String, String>? metadata,
}) async {
_logger.fine(
@@ -90,6 +91,7 @@ class PaymentService {
final request = InitiatePaymentRequest(
idempotencyKey: idempotencyKey ?? Uuid().v4(),
quoteRef: quotationRef,
clientPaymentRef: clientPaymentRef,
metadata: metadata,
);
final response = await AuthorizationService.getPOSTResponse(