[FIX] str concat error
This commit is contained in:
parent
20f4ce66d5
commit
a8ae394fcf
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue