---
title: "resolveBatch(batchDeletionToken:)"
framework: proximityreader
role: symbol
role_heading: Instance Method
path: "proximityreader/paymentcardreaderstore/resolvebatch(batchdeletiontoken:)"
---

# resolveBatch(batchDeletionToken:)

Deletes the current batch and all its Store and Forward payments, allowing you to request a new batch.

## Declaration

```swift
func resolveBatch(batchDeletionToken: StoreAndForwardBatchDeletionToken) async throws -> Int
```

## Parameters

- `batchDeletionToken`: The token you receive from the payment service provider.

## Return Value

Return Value The remaining number of payments to process.

## Discussion

Discussion note: This method throws a PaymentCardReaderStore.StoreError if the customer isn’t online at the moment you call it, if there’s no Store and Forward batch to resolve, or if the deletion token is invalid.
