I installed the One Page Checkout and PayPal Express Checkout plugins. It appears the click event is not working when I click on Pay with PayPal button. The click event is defined here: \Presentation\Nop.Web\Plugins\Payments.PayPalExpressCheckout\Views\PaymentInfo.cshtml and looks like this...
<script asp-location="Footer">
$(document).ready(function() {
$('#payPalExpressCheckoutImage').click(function () {
//terms of service
if ($('#termsofservice').length > 0) { // It never passes this test so it never reaches the paypal url.
//terms of service element exists
if (!$('#termsofservice').is(':checked')) {
$("#terms-of-service-warning-box").dialog();
} else {
setLocation('@Url.RouteUrl("Plugin.Payments.PayPalExpressCheckout.SubmitButton")'); // We never reach this code.
}
}
});
});
</script>
For now, I disabled One Page Checkout so the PayPal button executes as expected, but I would rather use One Page Checkout if possible. Does anyone have a fix to this?