[FIX] str concat error

This commit is contained in:
Abdurrahman Saber 2025-12-23 18:08:03 +04:00
parent 20f4ce66d5
commit a8ae394fcf
1 changed files with 2 additions and 1 deletions

View File

@ -102,12 +102,13 @@ class HyperPayController(http.Controller):
@http.route('/payment/hyperpay/result', type='http', auth='public', csrf=False, website=True, save_session=True)
def hyperpay_shopper_result(self, **post):
_logger.info("-----/payment/hyperpay/result-----post------------%r----", post)
acq = request.env['payment.acquirer'].sudo().search([('id', '=', post.get('acq'))])
if acq.state == 'enabled':
url = live_domain
else:
url = test_domain
url += '/' + post.get('resourcePath') + "?entityId=%s" % (acq.hyperpay_merchant_id)
url += f'/{post.get('resourcePath')}?entityId={acq.hyperpay_merchant_id}'
headers = {
"Authorization": "Bearer " + acq.hyperpay_authorization,
}