.then(function (result) {
console.log(resualt.data.url)
console.log(url);
return axios.get('https://api.crystalpay.ru/v1/?', {
params: {
s: '',
n: '',
o: 'invoice-create',
amount: '',
lifetime: '1440',
redirect: ''
}});
crystal().then(()=>{})
async function crystal() {
try {
const { data } = await axios.get('https://api.crystalpay.ru/v1/?', {
params: {
s: '',
n: '',
o: 'invoice-create',
amount: '',
lifetime: '1440',
redirect: '',
},
});
return data;
} catch (error) {}
}