Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
crypttp-react
Advanced tools
npm i -s crypttp-react
Signup at dashboard https://crypttp.com/dashboard
And copy merchant id
/*
here your imports goes
*/
import Crypttp from 'crypttp-react';
/*
if you using next.js for Server Side Rendering
*/
const Crypttp = dynamic(import('crypttp-react'), { ssr: false })
<crypttp type="type"
merchant_id="merchant_id"
country_currency="country_currency"
currency="currency"
amount="amount"
payload="payload"
memo="memo"
onsuccess="onsuccess"
onerror="onerror" />
Default button looks like this:
You are able to configure button by passing additional parametres
<crypttp
buttonText="Custom text" <!-- This text will be displayed on button -->
buttonColor="#000000" <!-- Background color of button. If you set light colors we autoconvert font color to dark -->
buttonWidth="300px" <!-- Width of the button to achive perfect fit on your website -->
...
payment params
/>
------
Type | Name | Optional \ Required | Discription |
---|---|---|---|
string | buttonText | optional | This text will be displayed on button |
string | buttonColor | optional | Background color of button. |
string | buttonWidth | optional | Width of the button to achive perfect fit on your website |
string | type | required | 0 - if you are CRYPTO ACUQRING, track transactions yourself, you keep wallet address of merchant. 1 - if you are MERCHANT and want charge user. We will create wallet address for you to accept cryptos. 2 - if you want to specify wallet addresses where user will send crypto |
string | merchant_id | required | id which you can find at crypttp.com/dashboard |
string | country_currency | required | currency of your client. Can't vary for each client. |
object | to | optional | pass wallet addresses as { 'currency ticket': 'wallet address' } if you use type: 2 |
string | currency | optional | pass it only if you know which crypto you want to charge from client |
string | amount | required | amount to charge in native currency numeration |
string | payload | optional | any extra data that you want to send with cryptocurrency transaction |
string | memo | optional | a special tag for specific blockchains |
string | onsuccess | optional | url (without https:// !!!) where to redirect user after checkout complete |
string | onerror | optional | url (without https:// !!!) where to redirect user if checkout failed |
FAQs
Unknown package
The npm package crypttp-react receives a total of 0 weekly downloads. As such, crypttp-react popularity was classified as not popular.
We found that crypttp-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.