@careerum/tinkoff-oplata
v1.0.1
Published
Fork of @os-team/tinkoff-oplata - Added test mode support
Downloads
124
Readme
@careerum/tinkoff-oplata
Fork of @os-team/tinkoff-oplata
- Added test mode support
Tinkoff Oplata API. All methods described in the official documentation are implemented.
Example
const client = new TinkoffOplataClient({
terminalKey: 'terminalKey',
password: 'password',
test: true,
});
const res = await client.init({
Amount: 100,
OrderId: '1',
Description: 'Тестовый платеж',
DATA: {
Phone: '+71234567890',
Email: '[email protected]',
},
Receipt: {
Email: '[email protected]',
Phone: '+71234567890',
EmailCompany: '[email protected]',
Taxation: 'osn',
Items: [
{
Name: 'Наименование товара',
Price: 30000,
Quantity: 3.0,
Amount: 90000,
Tax: 'vat10',
},
],
},
});