Socket
Socket
Sign inDemoInstall

@transak/transak-sdk

Package Overview
Dependencies
53
Maintainers
4
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

9

dist/sdk.js

@@ -1078,3 +1078,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.TransakSDK = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

"name": "@transak/transak-sdk",
"version": "1.1.0",
"version": "1.2.0",
"description": "Transak SDK that allows you to easily integrate the fiat on/ramp",

@@ -1323,3 +1323,3 @@ "main": "dist/sdk.js",

STAGING: {
FRONTEND: 'https://staging-global.transak.com',
FRONTEND: 'https://global-stg.transak.com',
BACKEND: 'https://staging-api.transak.com/api/v1',

@@ -1333,7 +1333,2 @@ NAME: 'STAGING'

},
DEVELOPMENT: {
FRONTEND: 'https://development-global.transak.com',
BACKEND: 'https://development-api.transak.com/api/v2',
NAME: 'DEVELOPMENT'
},
PRODUCTION: {

@@ -1340,0 +1335,0 @@ FRONTEND: 'https://global.transak.com',

{
"name": "@transak/transak-sdk",
"version": "1.1.0",
"version": "1.2.0",
"description": "Transak SDK that allows you to easily integrate the fiat on/ramp",

@@ -5,0 +5,0 @@ "main": "dist/sdk.js",

# Transak SDK
A JavaScript library for decentralised applications to onboard their global user base with fiat currency.
A JavaScript library for decentralised applications to onboard their global user base with fiat currency.
### Installation
To use the Transak widget with your javascript application, you will need to use `[@transak/transak-sdk](https://www.npmjs.com/package/@transak/transak-sdk)` (Transak’s JavaScript SDK).
Add the Transak SDK as a dependency using `yarn` or `npm`:
To use the Transak widget with your javascript application, you will need to
use `[@transak/transak-sdk](https://www.npmjs.com/package/@transak/transak-sdk)` (Transak’s JavaScript SDK). Add the
Transak SDK as a dependency using `yarn` or `npm`:
```sh

@@ -14,5 +19,7 @@ # Using yarn

For the advance customization, view our [query parameter documentation.](https://integrate.transak.com/Query-Parameters-9ec523df3b874ec58cef4fa3a906f238)
For the advance customization, view
our [query parameter documentation.](https://integrate.transak.com/Query-Parameters-9ec523df3b874ec58cef4fa3a906f238)
### Example usage
```sh

@@ -22,5 +29,6 @@ import transakSDK from '@transak/transak-sdk'

let transak = new transakSDK({
apiKey: '4fcd6904-706b-4aff-bd9d-77422813bbb7', // Your API Key (Required)
apiKey: '4fcd6904-706b-4aff-bd9d-77422813bbb7', // Your API Key (Required)
environment: 'STAGING', // STAGING/PRODUCTION (Required)
defaultCryptoCurrency: 'ETH',
hostURL: window.location.origin, // (Required)
walletAddress: '', // Your customer wallet address

@@ -30,3 +38,2 @@ themeColor: '000000', // App theme color in hex

redirectURL: '',
hostURL: window.location.origin, // Required field
widgetHeight: '550px',

@@ -33,0 +40,0 @@ widgetWidth: '450px'

export default {
ENVIRONMENT: {
STAGING: {
FRONTEND: 'https://staging-global.transak.com',
FRONTEND: 'https://global-stg.transak.com',
BACKEND: 'https://staging-api.transak.com/api/v1',

@@ -13,7 +13,2 @@ NAME: 'STAGING'

},
DEVELOPMENT: {
FRONTEND: 'https://development-global.transak.com',
BACKEND: 'https://development-api.transak.com/api/v2',
NAME: 'DEVELOPMENT'
},
PRODUCTION: {

@@ -29,2 +24,2 @@ FRONTEND: 'https://global.transak.com',

}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc