commit 02da6018af2b1ed3bd694a024197e2a21ee1e84f
parent 6c912c2d00971dfc8752963a173f564f23dd8b38
Author: Marc Stibane <marc@taler.net>
Date: Sat, 8 Aug 2026 20:22:09 +0200
confirmPay progressToken transactionId
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Model/Model+Payment.swift b/TalerWallet1/Model/Model+Payment.swift
@@ -584,7 +584,8 @@ fileprivate struct ConfirmPayForUri: WalletBackendFormattedRequest {
typealias Response = ConfirmPayResult
var operation: String { "confirmPay" }
func args() -> Args { Args(transactionId: transactionId, noWait: true,
- choiceIndex: choiceIndex) }
+ choiceIndex: choiceIndex,
+ progressToken: transactionId) }
var transactionId: String
var choiceIndex: Int?
struct Args: Encodable {
@@ -604,6 +605,7 @@ fileprivate struct ConfirmPayForUri: WalletBackendFormattedRequest {
* Only applies to v1 orders.
*/
var choiceIndex: Int?
+ var progressToken: String?
}
}
// MARK: -
@@ -651,6 +653,9 @@ extension WalletModel {
async throws -> ConfirmPayResult {
let request = ConfirmPayForUri(transactionId: transactionId,
choiceIndex: choiceIndex)
+ let controller = Controller.shared
+ controller.progressOperation = request.operation
+ controller.progressToken = transactionId
let response = try await sendRequest(request, viewHandles: viewHandles)
return response
}