#oggy-promptpay-qrcode

1 messages ยท Page 1 of 1 (latest)

viral patioBOT
tired elk
#

Hi ๐Ÿ‘‹

What is the context in which this is occurring?

weary minnow
#

While confirm payment

tired elk
#

Using what APIs, client or server side? What frameworks?

weary minnow
#

Client: Nextjs. Server:Nestjs

tired elk
#

Can you try turning off use-strict?

weary minnow
#

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

tired elk
#

And when does it through the error? On confirmation attempt?

weary minnow
#

When I click on Simulate scan

#

After I click that button it throw error

tired elk
#

SImulate Scan? What are you attempting to do? Scan a card? A QR code?

weary minnow
#

QR CODE

tired elk
#

Using what product?

weary minnow
#

What do you mean by what product?
do you mean payment method?

tired elk
#

Are you uinsg the Payment Element? What doc are you following?

tired elk
#

So the Payment Element

weary minnow
#

Yep

tired elk
#

And this is triggered because you are attempting to confirm the Payment Intent using one of the PMs that uses QR codes?

weary minnow
#

Yes

tired elk
#

Which one?

weary minnow
#

If understand you correctly, it would be Promtpay payment

tired elk
#

Can you provide the ID of the Payment Intent you are attempting to confirm?

weary minnow
#

I just tried to delete all of my customer
here is the current Payment Intent ID that have got error CORS
pi_3NONtOKqJIWpMpty0mVKiuDd

sick saffron
#

@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

weary minnow
#

I'm sorry I could not understand "a real live website/page to reproduce" Could you kindly explain more about this

sick saffron
#

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

weary minnow
#

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

sick saffron
#

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

weary minnow
#

How can I did that video call?

sick saffron
#

we don't offer video call sorry, there are more than 10 other people asking for help here

weary minnow
#

okay I will send full video of how the error happen

sick saffron
#

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?

weary minnow
sick saffron
#

oh it's after you click on that button, damn I missed that

weary minnow
sick saffron
#

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?

weary minnow
#

I try to open on another browser and it work just fine

sick saffron
#

oh

#

I wonder if you have some Chrome extension that might cause this

#

try without any Chrome extension

viral patioBOT
weary minnow
#

let me try delete all my Chrome extension and try it again with problem browser

sick saffron
#

sure! Sorry CSP can be so hard to debug ๐Ÿ˜ฆ

weary minnow
#

Yes it about Chrome extension for sure that cause this error

#

After I disable all my Chrome extension it work normally

sick saffron
#

phew I'm so glad to hear that

weary minnow
#

Thanks for you help