Provide a fiat-to-crypto service for users to buy crypto assets with fiat currency and invest into DeFi right in your application.
Powered by
var axios = require('axios');
var data = JSON.stringify({
"network": "ethereum",
"walletAddress": "YOUR_WALLET_ADDRESS",
"emailAddress": "YOUR_SECURO_EMAIL_ADDRESS",
"trxType": "Buy",
"fiatCurrency": "USD",
"fiatAmount": 141,
"cryptoCurrency": "USDT",
"redirectURL": "https://www.google.com",
"isDisableCrypto": false,
"cancellationUrl": "https://www.twitter.com",
"paymentMethod": "credit_debit_card"
});
var config = {
method: 'post',
url: 'https://api.securo.dev/api/v1/payment',
headers: {
'x-sec-key': 'YOUR_API_KEY',
'x-sec-ts': 'CURRENT_TIMESTAMP_IN_SECONDS',
'x-sec-sign': 'YOUR_SECRET_KEY',
'Content-Type': 'application/json'
},
data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error.response.data);
});