Thanks carlwhat.
square_webPay-master from 7/26/2022. My code line was actually line 179 instead of 39, and there's an extra space before { on the example (which made finding it weird), but it works now!
I didn't change the messageStack, because I couldn't determine which line needed changing, but agree we probably won't get there.
