---
title: "Discussion on \"Integrating Flutterwave Payment in a .Net Web Application\" | Hashnode"
description: "Discussion on \"Integrating Flutterwave Payment in a .Net Web Application\". When we build applications such as an E-commerce application, a digital wallet, or perhaps a website where we sell our personal e-books, we all at a point would want to receive payments from our customers, there are a lot of payment processing platfo..."
url: "https://hashnode.com/posts/integrating-flutterwave-payment-in-a-net-web-application/6086e25d70758d2ac1549153"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Integrating Flutterwave Payment in a .Net Web Application](https://tobby.hashnode.dev/integrating-flutterwave-payment-in-a-net-web-application?utm_source=hashnode&utm_medium=feed)

When we build applications such as an E-commerce application, a digital wallet, or perhaps a website where we sell our personal e-books, we all at a point would want to receive payments from our customers, there are a lot of payment processing platfo...

Jan 23, 2023 · 3 min read · tobby.hashnode.dev  
Updated Apr 7, 2023  
Read the article

## Written by

[Tobby Umoh](https://hashnode.com/@tobby)

@tobby · Lagos, Nigeria

  
[View profile](https://hashnode.com/@tobby)

Backend Developer | Technical Writer ( winging it )

Backend Developer ( C# ).

## Responses 2

Markdown supported · ⌘↵ to post

[Sadiq Kabiru](https://hashnode.com/@skb007)

[Aug 30, 2024](https://hashnode.com/posts/integrating-flutterwave-payment-in-a-net-web-application/6086e25d70758d2ac1549153/comment/66d25874c571027f37d2a4d1)

Hi, i am currently trying to integrate this but i am having issues...it's complain about my EncryptionKey please if you have resource that could be of help i will be glad boos...

[Benjamin Elemi](https://hashnode.com/@benuklemi)

[Mar 16, 2022](https://hashnode.com/posts/integrating-flutterwave-payment-in-a-net-web-application/6086e25d70758d2ac1549153/comment/62317abefebabbf75388e6bf)

Hi, this is the simplex tutorial ever seen on this subject. thank you very much. meanwhile, I have a concern, how do I implement the verification section after the payment has been made in my MVC code.

After I surf the web, I stumbled on a script that I used to build these

public IActionResult Validate(string TransactionId, string status) { var data = new { txref = TransactionId, SECKEY = "", include\_payment\_entity = 1 };

```
        var client = new HttpClient();

        client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
        var responseMessage = client.PostAsJsonAsync("ravesandboxapi.flutterwave.com/flwv3-pug/getpaidx…, data).Result;

        var responseStr = responseMessage.Content.ReadAsStringAsync().Result;
        var response = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponseData>(responseStr);

        string amount = null;
        if (response.data.status == "successful" && response.data.amount == amount && response.data.chargecode == "00")
        {
          //Retrieve and save payment details to the database.
        }

        return View();
    }
```

How do I redirect to this view after payment and retrieve some value to save in my database?

thank you for the response.

[Tobby Umoh](https://hashnode.com/@tobby)

[Mar 16, 2022](https://hashnode.com/posts/integrating-flutterwave-payment-in-a-net-web-application/6086e25d70758d2ac1549153/comment/62317abefebabbf75388e6bf#reply-62317ef9febabbf75388e797)

Thanks for your feedback benjamin, although there are different ways to achieve this but doing this is quite simple too, remember the webhook url you set on flutterwave webhook settings page, make sure that the url is a link to an action method decorated with an \[HttpGet\], as flutterwave will be sending a response to it. When this is done, you can have access to anything (values) you want ( from what flutterwave is sending back to you as a response ) like status of the transaction, amount, transaction reference , id ( this is a unique transaction identifier generated by flutterwave ) and so on, once you have the id, you can verify the transaction via this endpoint "[api.flutterwave.com/v3/transactions/:id/verify&qu…](https://api.flutterwave.com/v3/transactions/:id/verify%22) ,if the verification is successful, you'll get a response object like `{   "status": "success",   "message": "Transaction fetched successfully",   "data": {     "id": 288200108,     "tx_ref": "LiveCardTest",     "flw_ref": "YemiDesola/FLW275407301",     "device_fingerprint": "N/A",     "amount": 100,     "currency": "NGN",     "charged_amount": 100,     "app_fee": 1.4,     "merchant_fee": 0,     "processor_response": "Approved by Financial Institution",     "auth_model": "PIN",     "ip": "::ffff:10.5.179.3",     "narration": "CARD Transaction ",     "status": "successful",     "payment_type": "card",     "created_at": "2020-07-15T14:31:16.000Z",     "account_id": 17321,     "card": {       "first_6digits": "232343",       "last_4digits": "4567",       "issuer": "FIRST CITY MONUMENT BANK PLC",       "country": "NIGERIA NG",       "type": "VERVE",       "token": "flw-t1nf-4676a40c7ddf5f12scr432aa12d471973-k3n",       "expiry": "02/23"     },     "meta": null,     "amount_settled": 98.6,     "customer": {       "id": 216519823,       "name": "Yemi Desola",       "phone_number": "N/A",       "email": "user@gmail.com",       "created_at": "2020-07-15T14:31:15.000Z"     }   } }`, .so you can give value or save value(s) in your database.
