# consume()

Consume a Google Play purchase token from the Expo compat API.

Purpose [#purpose]

Consumes a Google Play purchase token so the item can be purchased again. This is mainly for consumable Android purchases. The method is exposed on the Expo compat `Superwall` API and is Android-only; it is not supported on iOS.

Signature [#signature]

```ts
import Superwall from "expo-superwall/compat"

await Superwall.consume(
  purchaseToken: string
): Promise<string>
```

Parameters [#parameters]

<TypeTable
  type="{
  purchaseToken: {
    type: &#x22;string&#x22;,
    description: &#x22;Google Play purchase token for the consumable item you want to consume.&#x22;,
    required: true,
  },
}"
/>

Returns / State [#returns--state]

Returns a `Promise<string>` that resolves to the consumed purchase token.

The promise rejects if:

* you call it before `Superwall.configure()` completes,
* or the native Android consume operation fails.

Usage [#usage]

```tsx
import Superwall from "expo-superwall/compat"

async function consumePurchase(purchaseToken: string) {
  try {
    const token = await Superwall.consume(purchaseToken)
    console.log("Purchase consumed:", token)
  } catch (error) {
    console.error("Failed to consume purchase:", error)
  }
}
```

Related [#related]

* [`useSuperwall`](/docs/expo/sdk-reference/hooks/useSuperwall) - Hook access to the main Expo SDK store.
* [`getPresentationResult()`](/docs/expo/sdk-reference/hooks/getPresentationResult) - Another Expo compat API surface with dedicated reference docs.