Quick Start
Get started with Pay3 Javascript SDK with a few lines of code. Pay3 SDK is designed to work in any javascript-based client-side application and work with most of the popular frontend frameworks like React. Pay3 also provides SDKs for React Native, Flutter and Unity.
The Pay3 JS SDK is available at the public npm registry @pay3/sdk . You can install and add to your App using the following command.
Import the package installed in the previous step using import directive. Create a instance of Pay3 by passing the parameters you received during onboarding. Reference
Pay3 Web Modal provides a comprehensive digital asset purchase buy flow. User is able to choose a payment method and buy the digital asset using currencies across the globe.
The request object requires a string requestId . This will be passed back along with the event emitted on completion of the buy flow. Detailed documentation of openCheckout is present at Transactions
Pay3 Web Modal provides a withdraw functionality to users where they can receive funds in their local currency. User will be able to provide either bank details or local e-wallets to receive the funds. Detailed documentation of openPayout is present at Transactions The request object requires a string requestId and the token which is a unique id generated by Pay3 backend on calling create payout order.
This function opens Pay3 buy crypto modal. The Buy modal will guide the user through the digital asset purchase flow using user's own digital assets like Coins and ERC20 tokens. Detailed documentation of openCryptoCheckout is present at Transactions
The request object requires a string requestId and the token which is a unique id generated by Pay3 backend on calling create create crypto checkout order.
On completion of the transaction flow an event is emitted with type pay3-sdk-transaction-status. The event data consists of fields status which is set to 'SUCCESS' when transaction is completed successfully. The orderId is Pay3's transaction ID and requestId is the unique string passed by the application in openCheckout call. Reference