M
M
MalikDeveloper20772020-02-03 00:29:49
Django
MalikDeveloper2077, 2020-02-03 00:29:49

Django payments. How to implement?

Can't find anything about payments with Django. For example, shopping online. How to implement this, please be as detailed as possible

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WStanley, 2020-02-03
@MalikDeveloper2077

Good!
Well, if in general terms it happens like this:
You need to create a basket on the site so that the user can put together what he wants to buy.
When going to the basket, he should have a "checkout" button, while you can let him choose the method of delivery, enter his address and other required things.
Next option 2:
The first simple one:

  • Register in an Internet wallet for example (Yandex, WebMoney, etc.) get your unique wallet number
  • this wallet has an example of where and how to send payment data
  • you just implement the execution of these instructions on clicking the "checkout" button
  • after payment, the wallet site will redirect the user back (reverse link is indicated in the settings) to your site where you will notify him of a successful payment and wish him a good day!

Second difficult one:
  • Your customer concludes an agreement with the bank "horns and hooves"
  • The bank will also have an instruction according to the rules of which you will send data on payment for the order
  • most likely there will still be special keys (certificates) for identifying the client (it will be described in the instructions)
  • Also, the customer will have to buy a cash register
  • after payment, the bank will redirect the user back (reverse link is indicated in the settings) to your site where you will notify him of a successful payment and wish him a good day!

It won’t work in more detail because all systems have their own nuances, but they are described in the instructions, most often in the “for developers” section.
The data will have to be sent using the POST method, it will be necessary to organize https on the site, but this is not accurate!

S
Sergey Gornostaev, 2020-02-03
@sergey-gornostaev

As with a site in any other language/framework, you connect a payment aggregator or bank acquiring.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question