In this short tutorial am going to show you how to connect flutterwave api to your Django application to be able to collect mobile money payments, for Uganda. But for other countries the procedure varies. First you will install the flutter wave python package , I will assume you have python and Django installed. If you are using python only, not with Django the logic in this tutorial should be easy to follow. Add this view to your views.py, The explanation is below. The code above is a view function that connects to a form in the frontend, where the user has to type their details for payment, that is the mobile number, email and the amount they want to pay. When a post request is initiated some checks are done and the user is redirected to the link sent to by flutterwave for verification, it is found in res[‘link’]. Once you get this link you have to redirect the user to it, so that they can enter the OTP sent to their number. The rest you can see from the code. This “redirect_url”: “http://127.0.0.1:8000/webhook”, has to be designed as a webhook, for those who don’t know what a webhook is, It is in simple terms an endpoint where information is sent to. In this context it is the end point where the information about the success of the transaction is sent to, so that you do something with it, like allow the user to access the service you are charging them for. Now you have to design the webhook function , and don’t forget to register the view in the urls.py file in Django directory And that is it you can be able to access mobile money payments. DONT FORGET
How To Build a website Using Word Press
Hello, I would like to share with you a great journey on how to build a website using WordPress. Word Press WordPress is a popular and widely-used platform for website-building. It is an open-source, where by it’s freely available, and you can use it anytime, any where. It is also a versatile tool used for building various types of websites like Business websites, E-commerce websites, Educational websites, Port Folio, News and Magazine Websites, Social media websites etc. Importance of WordPress in website development Introduction to the WordPress Dashboard Word Press dash board has elements like posts, media, pages, Themes, Plugins etc where by each element is very important when starting to build your website Choosing Suitable Themes and Plugins For your Website You select a suitable theme and plugin for the website you are going to build and install it. But before installing the Plugin you have chosen, you have to first check and see if the plugin you have installed will be suitable for the website you are building. The plugin chosen should be suitable for the website you are going to build to avoid your website from crushing, if the plugin chosen is not perfect with the website, it may lead to the crushing of your website Building a Website When starting to build a website, you can start from scratch (from the start) or you can choose to use a template which of your choice. If you decide to start from the start, go to pages, click on Add new page, where it will ask you to write the title of your page and after you have given it, then you can can publish your page and it becomes live to be used. And if you decide to choose not to start from scratch, you can choose a template of your choice and import it to your site so that you can start building your website Conclusion When editing your website, the perfect plugin you can use is elementor because it helps you to edit the unnecessary content so that you can put the content you want. Whether you are a blogger, business owner, or developer, WordPress provides a flexible solution for creating and managing websites of all kinds. Join us today in the world of WordPress to help you build your website for the better advertisement of your Business