0.6.2 • Published 1 year ago
@moonpay/moonpay-js v0.6.2
@moonpay/moonpay-js
The MoonPay Web SDK enables you to integrate the MoonPay widget so you can facilitate crypto purchases within your platform.
Documentation
For detailed integration instructions and further documentation, please visit our Documentation Site.
Installation
To install the package, use npm or yarn:
npm install --save @moonpay/moonpay-jsor
yarn add @moonpay/moonpay-jsPrerequisites
Before using this package, make sure you have the following:
- An active MoonPay account.
- Your MoonPay API key.
Usage
- Import the
loadMoonPayfunction.
import { loadMoonPay } from '@moonpay/moonpay-js';- Call the
loadMoonPayfunction to get the constructor for theMoonPayWebSdk.
const moonPay = await loadMoonPay();
const widget = moonPay({
flow: 'buy',
environment: 'sandbox',
params: {
apiKey: 'pk_test_123',
},
variant: 'overlay',
});- Call the
showmethod on your instance
widget.show();0.6.2
1 year ago
0.6.1
1 year ago
0.6.0
1 year ago
0.5.0
2 years ago
0.4.5
2 years ago
0.4.4
2 years ago
0.4.3
2 years ago
0.4.2
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.0
2 years ago
0.1.0
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago