Opencart 3.0.4 PHP 8.2 Paypal Checkout Integration Issues - no buttons
Posted: Mon Mar 03, 2025 5:19 am
I'm using OpenCart 3.0.4 PHP 8.2.
I have installed the PayPal Checkout Integration module VERSION 3.1.14
The PayPal and Card buttons are not being displayed in the checkout page.
In console i got error
Any thoughts?
I have installed the PayPal Checkout Integration module VERSION 3.1.14
The PayPal and Card buttons are not being displayed in the checkout page.
In console i got error
Code: Select all
a3a3ad0……s?20250302153350:64 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'includes')
at loadPayPalSDK (a3a3ad0……250302153350:64:375)
at Object.init (a3a3ad0……50302153350:106:171)
Code: Select all
var loadPayPalSDK = function() {
var html = '';
if (paypal_data['components'].includes('buttons')) {
if (!$('#paypal_button').length) {
if ($(paypal_data['button_insert_tag']).length) {
html = '<div id="paypal_button" class="paypal-button clearfix"><div id="paypal_button_container" class="paypal-button-container paypal-spinner"></div></div>';
eval("$('" + paypal_data['button_insert_tag'] + "')." + paypal_data['button_insert_type'] + "(html)");
Code: Select all
};
var init = async function(callback='') {
await updatePayPalData();
paypal_callback = callback;
loadPayPalSDK();
};
return {
init: init
};
Any thoughts?