> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreShowPurchaseUIResult

> XStoreShowPurchaseUIResult

Gets the results of a call to [XStoreShowPurchaseUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md).

## Syntax

```cpp theme={null}
HRESULT XStoreShowPurchaseUIResult(  
         XAsyncBlock* async  
)  
```

### Parameters

*async*   \_Inout\_\
Type: [XAsyncBlock\*](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md)

The XAsyncBlock that was passed to [XStoreShowPurchaseUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md). The [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) can be used to poll for the call's status and retrieve call results. See [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) for more information.

### Return value

Type: HRESULT

HRESULT success or error code.

S\_OK indicates that the purchase was completed, but you should always refresh the user's licenses and collections data before granting access to the content

E\_ABORT indicates that the user canceled the purchase flow.

## Remarks

This result function allows you to retrieve the execution results of [XStoreShowPurchaseUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md). As such, this function should be called after [XStoreShowPurchaseUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md) has been called, usually in the context of a callback function. This function can be particularly useful in figuring out why UI wasn't shown in cases of failure.

See [XStoreShowPurchaseUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md) for a usage example.

## Requirements

**Header:** XStore.h (included in XGameRuntime.h)

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XStore](https://docs.xbox.com/reference/system/xstore/xstore_members.md)\
[XStoreShowPurchaseUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md)


## Related topics

- [XStoreShowPurchaseUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md)
- [XStore (API contents)](https://docs.xbox.com/reference/system/xstore/xstore_members.md)
- [Using C# wrappers for GDK APIs in your Unity project](https://docs.xbox.com/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreShowRedeemTokenUIResult](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowredeemtokenuiresult.md)
- [Troubleshooting XStore development](https://docs.xbox.com/publishing/xstore-commerce/xstore-troubleshooting.md)
