0.2.0 • Published 14 days ago
@chuttapp/in-app v0.2.0
@chuttapp/in-app
This package has everything you need to develop a ChuttApp In-App service.
Install
With npm
npm install @chuttapp/in-app
With yarn
yarn add @chuttapp/in-app
Usage
For Nodejs environments.
React
, Angular
etc.
import * as inApp from '@chuttapp/in-app'
Browser environment.
<script src="@chuttapp/in-app/dist/esm/index.browser" type="module">
</script>
...or inlcude bundle
<script src="https://unpkg.com/@chuttapp/in-app@{{PKG_VERSION}}/dist/esm/index.browser.js"></script>
Usage example
import * as ChuttAppInAppService from '@chuttapp/in-app'
// Have your environment ready for ChuttApp
const inAppConfig = {
appId: 'YOUR_APP_ID',
userId: 'YOUR_USER_ID'
};
ChuttAppInAppService.initialize(inAppConfig)
const onPayClick = () => {
const data = {
// pass stuff here
}
ChuttAppInAppService.Transfer.onAcceptTransfer(data)
}
Read the documentation
0.2.0
14 days ago
0.1.8
14 days ago
0.1.7
14 days ago
0.1.9
14 days ago
0.1.0
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.5
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago