Buy Tokens
Let your users purchase your app's or any other ERC-20 tokens directly inside your application. The user themselves can buy these tokens using fiat or any other token they may have, and will receive the requested token directly in their own linked wallet.
First, follow the SDK setup and User Sign-in steps in the previous sections.
Then, white-label the token(s) you want the users to purchase by contacting Singularity tech team and completing the integration steps. You will get the token-ids corresponding to the whitelisted tokens, which you can use in the API calls below.
Once done, you can call the following Singularity Payments APIs to initiate transactions and subscribe to the below callbacks to take action on payment completions or errors.
Sample Implementation
Last updated