improved logging in callbacks
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user