Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@plasma-platform/service-payment-gate
Advanced tools
Full documentation
install:
npm i @plasma-platform/service-payment-gate -S
Payment client Micro Service API SDK
Object with class service messages
Type: Object
Create extended payment
args
object (required) arguments for payments
args.currency
string? currency ISO-3 code (default: USD)args.locale
string? locale code, max length 2 (default en)args.cartId
string (required) cart idargs.project
string (required) project idargs.paymentMethodIds
array (required) payment method idsargs.savedPaymentMethodId
string Saved arguments for paymentsargs.email
string (required) user Emailargs.phone
string (required) user phone numberargs.bonuses
number Amount of bonuses to use for payment.args.trackingInfo
object tracking info for paymentargs.paymentOptions
object payment options(async () => {
const paymentClientService = new PaymentClientService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const data = await paymentClientService.createExtendedPayment({
cartId: 111,
project:'monster',
paymentMethodIds: ['dsfsdhfi9i8304ufds'],
email: 'user@mail.com',
phone: '123456789',
});
})();
Returns object object with new cart properties
Create payment
args
object (required) arguments for payments
args.currency
string? currency ISO-3 code (default: USD)args.locale
string? locale code, max length 2 (default en)args.cartId
string (required) cart idargs.project
string (required) project idargs.paymentMethodIds
array (required) payment method idsargs.email
string (required) user Emailargs.phone
string (required) user phone numberargs.trackingInfo
object tracking info for paymentargs.paymentOptions
object payment options(async () => {
const paymentClientService = new PaymentClientService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const data = await paymentClientService.createPayment({
cartId: 111,
project:'monster',
paymentMethodIds: ['dsfsdhfi9i8304ufds'],
email: 'user@mail.com',
phone: '123456789',
});
})();
Returns object object with new cart properties
Retry payment
args
object (required) arguments for payments
(async () => {
const paymentClientService = new PaymentClientService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const data = await paymentClientService.retryPayment({
orderId: 111,
paymentMethodId: 'dsfsdhfi9i8304ufds',
});
})();
Returns object object with new payment url
Get saved payment method count
email
string (required) client email(async () => {
const paymentClientService = new PaymentClientService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const data = await paymentClientService.getSavedPaymentMethodCount('user@mail.com');
})();
Returns number payment method count
Get common payment methods
args
object (required) list of arguments for payment methods
(async () => {
const paymentClientService = new PaymentClientService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const data = await paymentClientService.getCommonPaymentMethodsProjects({project: 'monster'});
})();
Returns array payment method count
Get common payment methods
args
object (required) list of arguments for payment methods
(async () => {
const paymentClientService = new PaymentClientService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const data = await paymentClientService.getCommonPaymentMethods({project: 'monster'});
})();
Returns array payment method count
Get user saved payment methods
args
object (required) list of arguments for payment methods
(async () => {
const paymentClientService = new PaymentClientService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const data = await paymentClientService.getUserSavedPaymentMethods({project: 'monster', locale: 'en'});
})();
Returns array payment method count
FAQs
Payment gate service api
The npm package @plasma-platform/service-payment-gate receives a total of 12 weekly downloads. As such, @plasma-platform/service-payment-gate popularity was classified as not popular.
We found that @plasma-platform/service-payment-gate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.