#oggy-promptpay-qrcode
1 messages ยท Page 1 of 1 (latest)
Hi ๐
What is the context in which this is occurring?
While confirm payment
Using what APIs, client or server side? What frameworks?
Can you try turning off use-strict?
I happen on npm run build though
let's me try turn off useStrict mode and rebuild it again
Not working
IT throw blocked by CORS
And when does it through the error? On confirmation attempt?
SImulate Scan? What are you attempting to do? Scan a card? A QR code?
QR CODE
Using what product?
What do you mean by what product?
do you mean payment method?
Are you uinsg the Payment Element? What doc are you following?
Yep
And this is triggered because you are attempting to confirm the Payment Intent using one of the PMs that uses QR codes?
Yes
Which one?
If understand you correctly, it would be Promtpay payment
Can you provide the ID of the Payment Intent you are attempting to confirm?
I just tried to delete all of my customer
here is the current Payment Intent ID that have got error CORS
pi_3NONtOKqJIWpMpty0mVKiuDd
@weary minnow do you have a URL when I can reproduce? I've never used Next.js and know nothing about it myself
oggy-promptpay-qrcode
Sorry I need to see a real live website/page to reproduce. I don't need this JSON sorry
I'm sorry I could not understand "a real live website/page to reproduce" Could you kindly explain more about this
Sure sorry. You're the developer and you're testing this and seeing that error. I've never used Next.js so I have no idea how to reproduce this quickly to help you. I was hoping you could give me a quick way to view your real error live as it happens right in my own browser on my machine like you do so that I can debug
It is not possible for me to push all my code and send it to you however I will send you sources code that contain only stripe logic in my project
I don't really want the source I'm sorry
I was hoping you could find a way to make me view the error or explain exactly what you did as I know nothing about Next.js and neither do people on my team who are around right now
OOC does the functionality not work at all? It might just be a simple warning in Test mode
How can I did that video call?
we don't offer video call sorry, there are more than 10 other people asking for help here
okay I will send full video of how the error happen
a video won't really help much but sure
I just tried that exact example you mentioned with that exact backend/frontend. I just put my own API keys and switched the PaymentIntent to THB and I don't see a CSP error
are you not using that sample?
oh it's after you click on that button, damn I missed that
I did try the exact same sample that I show you at the beginning
yeah still no error at all on my computer with the example sample app you mentioned
but your video is completely different from that right? Sorry, promptpay is quite new and I am not super familiar with it. Your code calls something "create subscription" so I'm a bit lost and I need some help understnad what you did
So I launched that exact sample you mentioned and I don't see that error anywhere
Do you with that exact sample?
I try to open on another browser and it work just fine
oh
I wonder if you have some Chrome extension that might cause this
try without any Chrome extension
let me try delete all my Chrome extension and try it again with problem browser
sure! Sorry CSP can be so hard to debug ๐ฆ
Yes it about Chrome extension for sure that cause this error
After I disable all my Chrome extension it work normally
phew I'm so glad to hear that
Thanks for you help