Делаю post запрос, но не приходит ответ

class Payment:
    def __init__(self):
        self.merchant_account = "***"
        self.merchant_domain = "***"
        self.merchant_key = "***"

    def create_invoice(self, data):
        signature_data = f"{self.merchant_account};{self.merchant_domain};1;0;UAH"
        params = {
            'transactionType': "CREATE_INVOICE",
            'merchantAccount': self.merchant_account,
            'merchantDomainName': self.merchant_domain,
            'merchantSignature': generate_signature(self.merchant_key, signature_data),
            'apiVersion': 1,
            'orderReference': "myordertest",
            'orderDate': 1,
            'amount': 1,
            'currency': "UAH",
            'productName': "test",
            'productPrice': 20,
            'productCount': 2

        }
        response = requests.post(url="https://secure.wayforpay.com/pay", json=params)
        return response.json()

После запуска, нет ошибок, но не приходит response Данный код находится внутри ТГ webhook бота.


Ответы (0 шт):