Payment Plugin not appearing on checkout in wordpress 6.5 and woocommerce 8.1
-
I’m plugin dev, after going into documentation i’ve added compatibility of checkout blocks in my payment plugin but still error msg of incompatible appears. No error display and nothing in console and logs. I have checked every topic regarding and correct where lacking but still its doesn’t appear. Help !!
const settings = window.wc.wcSettings.getSetting( 'hblpay_data', {} ); const label = window.wp.htmlEntities.decodeEntities( settings.title ) || window.wp.i18n.__( 'Hblpay', 'hblpay' ); const Content = (hblpay_data) => { return window.wp.htmlEntities.decodeEntities( hblpay_data.description || '' ); }; const Block_Gateway = { name: 'hblpay', label: hblpay_label, content: Object( window.wp.element.createElement )( Content, null ), edit: Object( window.wp.element.createElement )( Content, null ), canMakePayment: () => true, placeOrderButtonLabel: window.wp.i18n.__( 'Continue', 'wc_hblpay' ), ariaLabel: hblpay_label, supports: { features: settings.supports, }, }; window.wc.wcBlocksRegistry.registerPaymentMethod( Block_Gateway );
This is my checkout.js in includes/block
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Payment Plugin not appearing on checkout in wordpress 6.5 and woocommerce 8.1’ is closed to new replies.