From a992993ba09074157ce41e94c1f17389873d0c76 Mon Sep 17 00:00:00 2001 From: Abdurrahman Saber Date: Tue, 14 Oct 2025 18:21:58 +0300 Subject: [PATCH] Revert "[FIX] applepay_fast_checkout: integrity url" This reverts commit 1cd20d50678d03fc09817c2e213381a74556e15e. --- odex25_donation/applepay_fast_checkout/controllers/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/odex25_donation/applepay_fast_checkout/controllers/main.py b/odex25_donation/applepay_fast_checkout/controllers/main.py index c68069d30..33d4f50d1 100644 --- a/odex25_donation/applepay_fast_checkout/controllers/main.py +++ b/odex25_donation/applepay_fast_checkout/controllers/main.py @@ -12,13 +12,13 @@ class ApplePayFastCheckout(Controller): acquirer_id = request.env['payment.acquirer'].sudo().search([('provider', '=', 'applepay')], limit=1) if acquirer_id.state == 'test': - url = "https://eu-test.oppwa.com" + url = "https://eu-test.oppwa.com/v1/paymentWidgets.js" else: - url = "https://eu-prod.oppwa.com" + url = "https://eu-prod.oppwa.com/v1/paymentWidgets.js" integrity = requests.get(f'{url}/v1/fastcheckout/integrity').json().get('integrity', '') - response = request.render("applepay_fast_checkout.apple_pay_iframe", {'hyperpay_src': f"{url}/v1/paymentWidgets.js", 'merchant_id': acquirer_id.applepay_entity_id, 'nonce': nonce, 'integrity': integrity}) + response = request.render("applepay_fast_checkout.apple_pay_iframe", {'hyperpay_src': url, 'merchant_id': acquirer_id.applepay_entity_id, 'nonce': nonce, 'integrity': integrity}) response.headers['Content-Security-Policy'] = "script-src blob: 'self' 'unsafe-inline' 'unsafe-eval' https://*; worker-src blob: 'self' 'unsafe-inline' 'unsafe-eval' https://*;connect-src 'self' https://* wss://*;frame-src 'self' blob: https://*;" return response