Symptoms
External payment redirect (e.g. PayPal Express) does not work in the store - Pay Now
button is not redirecting to the processing center.
post_redirect is not defined
is shown when using browser debug.
Cause
Check the value of the NEW_WINDOW_FOR_PAYMENT_OPENED
word in the dictionary of the languages used in the on-line store (_Home > Products > Online Store > Advanced Settings > Languages > language > Dictionary). If there is an '
symbol, then the root cause is a bug with id #PBA-76040 ("External Payments Redirects may stop working in Online Store due to unescaped ' character").
Resolution
Apply the workaound:
In the layout template
confirm_part_redirect
replace stringdocument.getElementById("payRedirectMessage").innerHTML = '{$smarty.session.LANG.NEW_WINDOW_FOR_PAYMENT_OPENED}';
with
document.getElementById("payRedirectMessage").innerHTML = '{$smarty.session.LANG.NEW_WINDOW_FOR_PAYMENT_OPENED|escape:'javascript'}';
- Synchronize the store