
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@smartpay/sdk-node
Advanced tools
The Smartpay Nodejs SDK offers easy access to Smartpay API from applications written in Nodejs.
Nodejs v12+
npm install --save @smartpay/sdk-node
# or
yarn add @smartpay/sdk-node
The package needs to be configured with your own API keys, you can find them on your dashboard.
const Smartpay = require('@smartpay/sdk-node').default;
const smartpay = new Smartpay('<YOUR_SECRET_KEY>', {
publicKey: '<YOUR_PUBLIC_KEY>',
});
If you would like to know how Smartpay payment works, please see the payment flow for more details.
(async () => {
const payload = {
items: [
{
name: 'レブロン 18 LOW',
amount: 250,
currency: 'JPY',
quantity: 1,
},
],
shipping: {
line1: 'line1',
locality: 'locality',
postalCode: '123',
country: 'JP',
},
// Your internal reference of the order
reference: 'order_ref_1234567',
// Callback URLs
successURL: 'https://docs.smartpay.co/example-pages/checkout-successful',
cancelURL: 'https://docs.smartpay.co/example-pages/checkout-canceled',
test: true,
};
const session = await smartpay.createCheckoutSession(payload);
})();
const sessionURL = smartpay.getSessionURL(session);
We also prepare a more real-world example for you to refer to.
FAQs
Smartpay SDK NodeJS
We found that @smartpay/sdk-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.