@os-team/tinkoff-oplata
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@os-team/tinkoff-oplata NPM version BundlePhobia

Tinkoff Oplata API. All methods described in the official documentation are implemented.

Example

const client = new TinkoffOplataClient({
  terminalKey: 'terminalKey',
  password: 'password',
});

const res = await client.init({
  Amount: 100,
  OrderId: '1',
  Description: 'Тестовый платеж',
  DATA: {
    Phone: '+71234567890',
    Email: 'name@domain.com',
  },
  Receipt: {
    Email: 'name@domain.com',
    Phone: '+71234567890',
    EmailCompany: 'name@company.com',
    Taxation: 'osn',
    Items: [
      {
        Name: 'Наименование товара',
        Price: 30000,
        Quantity: 3.0,
        Amount: 90000,
        Tax: 'vat10',
      },
    ],
  },
});

Readme

Keywords

none

Package Sidebar

Install

npm i @os-team/tinkoff-oplata

Weekly Downloads

188

Version

1.1.1

License

MIT

Unpacked Size

78.1 kB

Total Files

75

Last publish

Collaborators

  • oxilor