Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@onramper/widget
Advanced tools
Onramper allows your users to buy cryptocurrency with fiat, directly from your website or app.
Onramper allows your users to buy cryptocurrency with fiat, directly from your website or app.
For docs and examples visit: https://docs.onramper.com/[https://docs.onramper.com/]
# Using yarn
$ yarn add @onramper/widget
# Using npm
$ npm install @onramper/widget
import OnramperWidget from "@onramper/widget";
export default function OnramperWidgetContainer() {
return (
<div style={{maxWidth: '440px', maxHeight: '595px', height: '100%', width: '100%'}}>
<OnramperWidget
color="#266678"
defaultAmount={200}
defaultCrypto="BTC"
/>
</div>
)
}
While importing the widget as a React component, you can customize it using the component props below. CodeSandbox (soon)
Name | Type | Example | Default value |
---|---|---|---|
defaultCrypto | String? | "ETH" | undefined |
defaultAmount | Number? | 500 | 100 |
defaultAddrs | Object? | {"BTC":["ADDR1"], "ETH":["ADDR2"]} | {} |
onlyCryptos | String[]? | ["BTC", "ETH", "NEO"] | undefined |
excludeCryptos | String[]? | ["ETH", "NEO"] | undefined |
color | String? | "#000000" | "#31a5ff" |
You can pass the following arguments to customize the widget
Parameter | Description |
---|---|
defaultCrypto | Select a specific cryptocurrency by default. Should be specified the cryptocurrency code. |
defaultAmount | Positive integer representing the base amount of fiat to be filled in the widget. Should be indicated in USD, for other currencies, a rounded aproximated conversion will be automatically applied. |
addresses | A stringified JSON with the wallet addresses of the user. The keys should be the cryptocurrency code and the value a list containing the user addresses. Can be more than one address per wallet and more than one cryptocurrency. |
onlyCryptos | A comma-separated list of crypto codes to include. Only this cryptos will be shown to the user. |
excludeCryptos | A comma-separated list of crypto codes to exclude. This cryptos will be excluded from the list of available cryptos.. |
color | Color to change the highlight of the widget. Should be an hex color. |
FAQs
Onramper allows your users to buy cryptocurrency with fiat, directly from your website or app.
We found that @onramper/widget demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.