---
title: "fetchStoredPaymentCardReadResultBatch(size:)"
framework: proximityreader
role: symbol
role_heading: Instance Method
path: "proximityreader/paymentcardreaderstore/fetchstoredpaymentcardreadresultbatch(size:)"
---

# fetchStoredPaymentCardReadResultBatch(size:)

Returns a batch of reads the framework previously stored, in chronological order, of the size you request.

## Declaration

```swift
func fetchStoredPaymentCardReadResultBatch(size: Int = 0) async throws -> StoreAndForwardBatch
```

## Parameters

- `size`: The desired batch size, if no size is provided, the framework uses a batch size of 0 that returns all the payments stored in the batch.

## Return Value

Return Value StoreAndForwardBatch when successful.

## Discussion

Discussion There is only one active batch per application at a given time and to fetch a new batch the caller needs to reset or resolve the current batch. note: This method throws a PaymentCardReaderStore.StoreError if the size is smaller than 0 or greater than the number of payments stored, or if there’s no payment stored.  The framework also throws a StoreError if a previous batch is pending resolution at the time when you call this  method.
