PHP 8.4 / ZC 2.1.0 / OPC 2.5.5
This is a bit of a weird one. I'm trying to modify the Square WebPay payment module to add on Square's CashApp payments to be processed through the site. So far, it works when I do so with the standard checkout and One Page Checkout with nothing extra added.
However, if I enable the option "Confirm Terms and Conditions During Checkout Procedure" and then try to proceed with one-page checkout, ZenCart will alert that I need to confirm to the terms of service. But clicking that checkbox, and then trying to confirm order, it stops cold (no processing) or anything. Meanwhile, if I get rid of the checkbox to agree to Terms, it works fine.
I noticed on Developer Console the following "warnings"(?):
Code:
Content Script Bridge: Sending response back to page context: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}content-scripts.js:1 CONTENT_SHELL: Page is excluded. Skipping shell protection.
content-scripts.js:1 Content Script Bridge: Unknown message type, MSG_CHECK_DOMAIN_ALLOW_LIST_RESPONSE
injection-tss-mv3.js:1 TSS: Received response from checkDomainAndRun: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
injection-tss-mv3.js:1 injection-tss TSS: hosted page injected
injection-tss-mv3.js:1 injection-tss MBTSS: Nonce: nonce
content-scripts.js:1 TSS: excluded result: true
content-scripts.js:1 SCHJK: Search Hijacking notification feature flag is enabled. true
content-scripts.js:1 DFP: Breach notification feature flag is enabled. true
content-scripts.js:1 CONTENT_SHELL: Page is excluded. Skipping shell protection.
content-scripts.js:1 TSS: excluded result: true
content-scripts.js:1 Content Script Bridge: Sending response back to page context: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
content-scripts.js:1 Content Script Bridge: Unknown message type, MSG_CHECK_DOMAIN_ALLOW_LIST_RESPONSE
injection-tss-mv3.js:1 TSS: Received response from checkDomainAndRun: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
injection-tss-mv3.js:1 injection-tss TSS: hosted page injected
injection-tss-mv3.js:1 injection-tss MBTSS: Nonce: nonce
content-scripts.js:1 SCHJK: Search Hijacking notification feature flag is enabled. true
content-scripts.js:1 DFP: Breach notification feature flag is enabled. true
square.js:3 Initializing Cash App Pay... success! {addEventListener: ƒ, attach: ƒ, destroy: ƒ, detach: ƒ, removeEventListener: ƒ}
square.js:3 found checkoutOneSubmit button!
content-scripts.js:1 Content Script Bridge: Sending response back to page context: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
content-scripts.js:1 Content Script Bridge: Unknown message type, MSG_CHECK_DOMAIN_ALLOW_LIST_RESPONSE
injection-tss-mv3.js:1 TSS: Received response from checkDomainAndRun: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
injection-tss-mv3.js:1 injection-tss TSS: hosted page injected
injection-tss-mv3.js:1 injection-tss MBTSS: Nonce: nonce
square.js:3 setFormSubmitButton, payment-module: square_webPay
square.js:3 Showing "confirm", paymentMethodHandlesSubmit (true)
square.js:3 setFormSubmitButton, enabling Review and Confirm buttons.
square.js:3 submitFunction, on exit submitter=null
square.js:3 Setting orderConfirmed (1), submitter (null)
square.js:3 Form being submitted, submit_type(confirm
square.js:3 setFormSubmitButton, payment-module: square_webPay
square.js:3 Showing "confirm", paymentMethodHandlesSubmit (true)
square.js:3 setFormSubmitButton, enabling Review and Confirm buttons.
square.js:3 Form checked, passed (true)
square.js:3 Deferring form submittal to the currently-selected payment method.
Not sure what else I could provide to help track it down.