V
V
Vabots2021-10-30 20:21:54
Python
Vabots, 2021-10-30 20:21:54

How to activate the Freekassa checkout?

I don't know who to contact, who to write to. But I can’t understand anything ... I made a blank for Freekassa

@dp.message_handler(text="1", state="*")
async def show_search(message: types.Message, state: FSMContext):
    await state.finish()
    merchant_id = b'14248';
    secret_word = b'l,CFea64Trja}K';
    order_id = b'154';
    order_amount = b'100.11';
    sign = merchant_id + b':' + order_amount + b':' + secret_word + b':' + order_id;
    h = hashlib.md5();
    h.update(sign)
    print(h.hexdigest())
    print(f'https://www.free-kassa.ru/merchant/cash.php?m=14248&oa=100&o=154&s={h.hexdigest()}')

I did just such a thing, but when I make this request, it says to me that the Specified store is not active

Well, I thought, and started messing around with ...

@dp.message_handler(text="2", state="*")
async def show_search(message: types.Message, state: FSMContext):
    shopId = b'12412;
    api = b'safafasfas4a1safasf';
    sign = shopId + b'|' + api;
    h = hashlib.sha256();
    h.update(sign)
    print(f'https://api.freekassa.ru/v1/{h.hexdigest()}')

Well, in the end, again, nothing came of it, and Freekassa itself *URL OF NOTIFICATION *URL OF SUCCESSFUL PAYMENT *URL OF RETURN IN CASE OF FAIL

What miraculous way can I do them if I just have a telegram bot? Tell me please.

You will help a lot of people by answering this question <3

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