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
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