Answer the question
In order to leave comments, you need to log in
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')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question