D
D
Domohod2022-01-10 16:09:21
Python
Domohod, 2022-01-10 16:09:21

How to find out if the user has made a payment on the site?

The site uses the Fondy payment system . How to check in templates if the user has made a payment? (for example, show the first few page objects if the user has not made a payment, or allow access to certain pages only after payment)

The code that Fondy provides :

api = Api(merchant_id=, secret_key='')

checkout = Checkout(api=api)

data = {

    "currency": "RUB",

    "amount": 100,

    "order_desc": "Описание платежа",

    "order_id": str(time.time())

}

url = checkout.url(data).get('checkout_url')


What do I need to do?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question