Not Particularly Meaningful
    Have ideas to improve npm?Join in the discussion! »

    transbank-sdk-node

    1.1.4 • Public • Published

    Transbank SDK nodejs

    NPM

    size npm

    Requirements

    • nodejs lts

    Dependencies:

    • No external libs dependencies!!!

    Dev Dependencies:

    • Eslint
    • eslint-config-airbnb-base

    Getting Started

    install using npm or yarn

    npm install transbank-sdk-node
    yarn add transbank-sdk-node

    Transacción Normal

    const { Transaction } = require('transbank-sdk-node');
    
    const transaction = new Transaction(
        integrationType, // test, prod, mock
        apiKey,
        commerceCode,
    )
    
    const createTransaction = async (buyOrder, sessionId, amount, returnUrl) => {
      try {
        const response = await transaction.create(
          buyOrder,
          sessionId,
          amount,
          returnUrl
        );
    
        return response;
      } catch (e) {
        // handle http errors
      }
    }

    you can read the other methods at docs

    Roadmap

    • [x] Transaction
      • [x] Mall Transaction
    • [ ] One Click
      • [ ] One Click Mall
    • [ ] Full transaction
      • [ ] Full transaction Mall
    • [ ] One Pay
    • [ ] PatPass
      • [ ] Patpass Comercio
      • [ ] Patpass by Webpay
    • [ ] Update docs

    Install

    npm i transbank-sdk-node

    DownloadsWeekly Downloads

    1

    Version

    1.1.4

    License

    MIT

    Unpacked Size

    18.6 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar