updated document upload according to fresh api
This commit is contained in:
@@ -65,7 +65,15 @@ class _PaymentDetailsView extends StatelessWidget {
|
||||
payment: payment,
|
||||
onBack: () => _handleBack(context),
|
||||
onDownloadAct: controller.canDownload
|
||||
? () => downloadPaymentAct(context, payment.paymentRef ?? '')
|
||||
? () {
|
||||
final request = controller.primaryOperationDocumentRequest;
|
||||
if (request == null) return;
|
||||
downloadPaymentAct(
|
||||
context,
|
||||
gatewayService: request.gatewayService,
|
||||
operationRef: request.operationRef,
|
||||
);
|
||||
}
|
||||
: null,
|
||||
canDownloadOperationDocument:
|
||||
controller.canDownloadOperationDocument,
|
||||
@@ -74,7 +82,7 @@ class _PaymentDetailsView extends StatelessWidget {
|
||||
if (request == null) return;
|
||||
downloadPaymentAct(
|
||||
context,
|
||||
request.paymentRef,
|
||||
gatewayService: request.gatewayService,
|
||||
operationRef: request.operationRef,
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user