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

# my.openScanPage

> Open the Rebell QR code scanning page.

Open the Rebell QR code scanning page from within a Mini Program.

## Parameters

| Property | Type     | Required | Description         |
| -------- | -------- | -------- | ------------------- |
| success  | Function | No       | Callback on success |
| fail     | Function | No       | Callback on failure |

## Success Callback

| Property | Type    | Description                                        |
| -------- | ------- | -------------------------------------------------- |
| success  | Boolean | `true` if the scan succeeded, `false` if it failed |

## Code Example

```javascript theme={null}
my.call('openScanPage', {
  success: (res) => {
    my.alert({ content: 'success: ' + JSON.stringify(res) });
  },
  fail: (error) => {
    my.alert({ content: 'error: ' + JSON.stringify(error) });
  }
});
```
