const { default: axios } = require('axios');
async function crystal() {
const response = await axios.get('https://api.crystalpay.ru/v1/?', {
params: {
s: '',
n: '',
o: 'invoice-create',
amount: '',
lifetime: '1440',
callback: 'localhost',
extra: ''
}
})
// console.log(response);
return response.data.id
}
module.exports.crystal = crystal