npm: possibly marvellous

    api-money-node-sdk
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.5 • Public • Published

    api-money-node-sdk

    Un-official node sdk for api-money.com

    Install

    $ npm install api-money-node-sdk

    Usage

    const { ApiMoney } = require('api-money-node-sdk')
    
    const client = new ApiMoney({
      secretKey: 'your_secret_key',
      accessKey: 'your_access_key',
      mode: 'dev', // or 'prod'
      version: 1,
    })
    
    client
      .request('POST', '/accounts/standard', {
        subscriber: {
          lastname: 'Gfr',
          firstname: 'Max',
          birthdate: '1998-01-01',
          birth_country: 'FRA',
          birth_city: 'Paris',
          nationality: 'FRA',
          citizen_us: false,
          fiscal_us: false,
          fiscal_out_france: false,
        },
        address: {
          label1: 'Place de la Concorde',
          zip_code: '75008',
          city: 'Paris',
          country: 'FRA',
        },
        email: 'max@test.com',
      })
      .then((response) => {
        console.log(response)
      })
      .catch((error) => {
        console.log(error)
      })

    Install

    npm i api-money-node-sdk

    DownloadsWeekly Downloads

    1

    Version

    1.2.5

    License

    MIT

    Unpacked Size

    3.71 kB

    Total Files

    4

    Last publish

    Collaborators

    • maxgfr