
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
A React hook for collecting card details ready for Omise payments.
Install with npm
npm install use-omise
or with yarn
yarn add use-omise
And make sure you also have React installed at version 16.8 or above.
function PaymentForm() {
const { loading, createToken } = useOmise({
publicKey: 'YOUR-OMISE-PUBLIC-KEY',
});
if (loading) return <div>Loading OmiseJS...</div>;
const handleSubmit = (cardFormValues) => {
createToken('card', cardFormValues, (status, response) => {
if (status === 200) {
// The token is available as response.id.
// Send the token to your server to create a charge e.g. { token: response.id }
}
});
};
return <CreditCardForm handleSubmit={handleSubmit} />;
}
The cardFormValues
object will hold the details of the card to be charged, e.g.
{
name: "Exmaple card holder",
number: "4242424242424242",
security_code: "111",
expiration_month: "06",
expiration_year: "2020"
}
Omise
by setting the public key that you providecreateToken
function which can be used to use create tokens which can then be used to make charges
createSource
function for creating sourcesFAQs
A React hook for Omise payments
The npm package use-omise receives a total of 59 weekly downloads. As such, use-omise popularity was classified as not popular.
We found that use-omise 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.