Skip to content

Commit c19d1b3

Browse files
committed
fix(session): handle idempotencyKeys properly when hitting payment failures
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 161a400 commit c19d1b3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/com/getcode/SessionController.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,9 @@ class SessionController @Inject constructor(
12901290
resources.getString(R.string.error_description_payment_failed),
12911291
)
12921292

1293+
// Allow the payment request to be scanned again upon a failure state hit
1294+
scannedRendezvous.remove(paymentConfirmation.payload.rendezvous.publicKey)
1295+
12931296
ErrorUtils.handleError(error)
12941297
state.update { uiModel ->
12951298
uiModel.copy(

0 commit comments

Comments
 (0)