public async Task <IActionResult> AddPayoutAccount([FromBody] WebHookPayLoad webHookPayLoad) { //write the transaction with a pending status to verify later //await new Transactions().AddUnverifiedTx(webHookPayLoad); _backgroundTaskQueue.QueueBackgroundWorkItem(async token => { }); return(Ok()); }
public async Task <IActionResult> Post([FromBody] WebHookPayLoad webHookPayLoad) { //write the transaction with a pending status to verify later //await new Transactions().AddUnverifiedTx(webHookPayLoad); if (webHookPayLoad.EventType == "Transfer") { _backgroundTaskQueue.QueueBackgroundWorkItem(_Iravepayments.GetTransfersHook(webHookPayLoad.transfer)); } else { _backgroundTaskQueue.QueueBackgroundWorkItem(_Iravepayments.GetFuncVerifyPayments(webHookPayLoad.txRef)); } return(Ok()); }