cancelQr

abstract suspend fun cancelQr(orderId: String, amount: Long?): Result<SdkSuccessAnswer.CancelQr>

Cancels a successfully paid QR order.

Use the original order identifier from SdkSuccessAnswer.Purchase.qrReceipt or PurchaseResult.QrOrderCreated.

Return

Result.Success containing SdkSuccessAnswer.CancelQr with the cancellation QR receipt, or Result.Error if validation or cancellation fails.

Parameters

orderId

The identifier of the original QR order. Must not be blank.

amount

The cancellation amount in the currency's minor units. Must be positive when specified; null cancels the full payment amount.