# StoreGift

> 基础库 3.8.12 开始支持，低版本需做[兼容处理](1003706)。

可通过 [wx.createStoreGift](/minigame/dev/api/open-api/store-gift/wx.createStoreGift) 创建。

小游戏蓝包组件，可以打开蓝包。

## 方法

### [boolean StoreGift.isSupported()](/minigame/dev/api/open-api/store-gift/StoreGift.isSupported)

获取当前环境是否支持礼物组件

### [Promise StoreGift.getOrderInfo()](/minigame/dev/api/open-api/store-gift/StoreGift.getOrderInfo)

查询订单状态

### [Promise StoreGift.open()](/minigame/dev/api/open-api/store-gift/StoreGift.open)

打开礼物，请注意，这里的回调仅仅是打开礼物界面的回调，并不是收下礼物的回调
