New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

fast-vallet

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-vallet

![image](https://user-images.githubusercontent.com/63351166/215289526-4aedba3b-86ed-480a-8d5d-d328e7520ebf.png) ![image](https://github.com/fastuptime/fast_vallet/assets/63351166/e9648ca3-c597-43fb-8d0f-0683a50b24ec)

latest
Source
npmnpm
Version
1.0.8
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

Fast Vallet

🎈 Images 🎈

image image

const vallet = require('fast-vallet');

const data = {
    referer: 'localhost', // Referer Domain example.com
    hash: 'xxxx', // Api Hash Anahtarı
    userName: 'xxxx', // Apı User
    password: 'xxxxxxxxxxx', // Api Key
    shopCode: 'xxx', // Api Mağaza Kodu
    productName: 'productName',
    productData: 'productData',
    productType: 'DIJITAL_URUN',
    productsTotalPrice: 21,
    orderPrice: 20.00,
    currency: 'TRY',
    orderId: '20',
    locale: 'locale',
    conversationId: 'DIJITAL_URUN',
    buyerName: 'buyerName',
    buyerSurName: 'buyerSurName',
    buyerGsmNo: 'buyerGsmNo',
    buyerMail: 'buyerEmail@gmail.com',
    buyerIp: '124.432.423',
    buyerAdress: 'buyerAdress',
    BuyerCountry: 'BuyerCountry',
    BuyerCity: 'BuyerCity',
    buyerDistrict: 'buyerDistrict',
    callbackOkUrl: 'http://localhost/callbackOkUrl',
    callbackFailUrl: 'http://localhost/callbackFailUrl',
};

vallet.createPaymentLink(data, (err, res) => {
    console.log(err, res);
});

🎏 Example Express Fast-Vallet 🎏

const express = require('express');
const app = express();
const vallet = require('fast-vallet');

app.get('/createPaymentLink', (req, res) => {
    const data = {
        referer: 'localhost', // Referer Domain example.com
        hash: 'xxxx', // Api Hash Anahtarı
        userName: 'xxxx', // Apı User
        password: 'xxxxxxxxxxx', // Api Key
        shopCode: 'xxx', // Api Mağaza Kodu
        productName: 'productName',
        productData: 'productData',
        productType: 'DIJITAL_URUN',
        productsTotalPrice: 21,
        orderPrice: 20.00,
        currency: 'TRY',
        orderId: '20',
        locale: 'locale',
        conversationId: 'DIJITAL_URUN',
        buyerName: 'buyerName',
        buyerSurName: 'buyerSurName',
        buyerGsmNo: 'buyerGsmNo',
        buyerMail: 'buyerEmail@gmail.com',
        buyerIp: '124.432.423',
        buyerAdress: 'buyerAdress',
        BuyerCountry: 'BuyerCountry',
        BuyerCity: 'BuyerCity',
        buyerDistrict: 'buyerDistrict',
        callbackOkUrl: 'http://localhost/callbackOkUrl',
        callbackFailUrl: 'http://localhost/callbackFailUrl',
    };

    vallet.createPaymentLink(data, (response) => {
        //console.log(response);
        if (response.status === 'error') return res.send(response.message);
        res.redirect(response.url);
    });
});

app.get('/callbackOkUrl', (req, res) => {
    res.send('Ödeme Başarılı');
});

app.get('/callbackFailUrl', (req, res) => {
    res.send('Ödeme Başarısız');
});

app.get('/callback', async (req, res) => {
    let data = {
        status: req.body.status,
        paymentStatus: req.body.paymentStatus,
        hash: req.body.hash,
        paymentAmount: req.body.paymentAmount,
        paymentType: req.body.paymentType,
        conversationId: req.body.conversationId,
        orderId: req.body.orderId,
    };

    if (data.status !== 'success') return res.send('Ödeme Başarısız');

    // Veritabanı işlemleri
    res.send('ok');
});


app.listen(80, () => {
    console.log('Server Started');
});

🌘 Example Response Fast-Vallet 🌘

{
  status: 'success',
  data: {
    status: 'success',
    errorMessage: '',
    payment_page_url: 'https://www.vallet.com.tr/payment-center/en/copay/XXXXXXXXX',
    payment_page_url_domestic_card: 'https://www.vallet.com.tr/payment-center/en/copay/XXXXXXXXX/kredi-karti',
    payment_page_url_bank_transfer_card: 'https://www.vallet.com.tr/payment-center/en/copay/XXXXXXXXX/banka-havale',
    payment_page_url_international_card: 'https://www.vallet.com.tr/payment-center/en/copay/XXXXXXXXX/kredi-karti-dunya',
    ValletOrderNumber: '111111111',
    ValletOrderId: '1111111113',
    conversationId: 'DIJITAL_URUN'
  },
  url: 'https://www.vallet.com.tr/payment-center/en/copay/XXXXXXXXX'
}

🛠️ Installation 🛠️

  • npm i fast-vallet

  • https://www.vallet.com.tr/merchant/api-manager/api-information.html

⛳Tech Stack ⛳

🗄️ Server: Node, Axios, form-data, crypto, buffer

🎯 License 🎯

Keywords

vallet

FAQs

Package last updated on 17 Aug 2023

Did you know?

Socket

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.

Install

Related posts