Current collected state Current
Observed since 20 Oct, 18:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
1d3-sdk
1D3 Javascript package
It is package that will help you with generating payment URL according to 1D3 documentation.
npm install 1d3-sdk
yarn add 1d3-sdk
const { Payment } = require('1d3-sdk');
// create Payment object with your account ID and secret salt
const e = new Payment('112', 'my_secret');
// set payment details
e.paymentAmount = 1000;
e.paymentId = 'FFCD12-30';
e.paymentCurrency = 'USD';
// set another parameters, like success or fail callback URL, customer details, etc.
// get payment URL
const url = e.getUrl();
Now your can render payment url somewhere on your checkout page.
Example with Express:
const { Callback } = require('1d3-sdk');
app.post('/payment/callback', function(req, res) {
const callback = new Callback('secret', req.body);
if (callback.isPaymentSuccess()) {
const paymentId = callback.getPaymentId();
// here is your code for success payment
}
});
Note that Callback constructor throws Error if signature isn't valid.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
eslintEnvironment{
"local_name": "eslint",
"alias": false,
"peer_metadata": null
} | ^4.19.1 | development |
eslint-config-airbnb-baseEnvironment{
"local_name": "eslint-config-airbnb-base",
"alias": false,
"peer_metadata": null
} | ^13.0.0 | development |
eslint-plugin-importEnvironment{
"local_name": "eslint-plugin-import",
"alias": false,
"peer_metadata": null
} | ^2.13.0 | development |
jestEnvironment{
"local_name": "jest",
"alias": false,
"peer_metadata": null
} | ^23.2.0 | development |
Source distribution
{
"integrity": "sha512-w41Atcpky34EcWso7iFIYPCURcjWOEn9+0q8sXk2Q9nL6yQxBt4E+uXMKgdPis7MezV69VsCCzo9sN4Ovpp7Bg==",
"shasum": "15f03592efb986359f08f63ff302e2b81abfc1f1",
"tarball": "https://registry.npmjs.org/1d3-sdk/-/1d3-sdk-1.0.0.tgz",
"fileCount": 8,
"unpackedSize": 9042,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIFrfBnjBN4mf8II05a7bwy1FmDMrNPPZoo1VvKzfHT9hAiAowaSiToaNksBDz/Gfs6/IvTE7cuQPFvD+U4C8ly0vbQ=="
}
]
}Shared repository data · GitHub
Observed since 20 Oct, 18:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:341289ebdf33dedbd2f65cfeff6676befd192b84589a0a620a96263f7593467c