Hello
am facing trouble to transfer amount from funding source to balance.
After 7 days of transaction still it showing pending .
Can anyone help to to sort out this problem . am pasting my code below for transfer funding source to balance.
var transferRequest = {
_links: {
source: {
href:
config.DWOLLA.BASE_URL + “funding-sources/” + req.body.source,
},
destination: {
href:
config.DWOLLA.BASE_URL + “funding-sources/” + req.body.destination,
},
},
amount: {
currency: “USD”,
value: parseFloat(req.body.amount),
},
clearing: {
source: “next-available” // bank to balance
}
};
try {
dwollaClient.auth.client()
.then(async (appToken) => {
appToken.post('transfers', transferRequest).then(async function (result) {
console.log('result :', result.headers.get("location"))
res.status(200).json({
success: 1,
error: 0,
message: "Tranfer successfully. ",
data: result.headers.get("location")
});
}).catch((er1) => {
console.log('error', er1)
res.status(400).json({
success: 0,
error: 1,
message: "Cannot Process your transfer request. please try after sometime. ",
errors: er1
});
});
})
} catch (e) {
console.log(e)
res.status(400).json({
success: 0,
error: 1,
message: "Cannot Process your transfer request. please try after sometime. ",
errors: e
});
}