PaddleHQ / paddle-js-wrapper

Wrapper to load Paddle.js as a module and use TypeScript definitions when working with methods.
Apache License 2.0
43 stars 6 forks source link

[Bug]: Paddle initializes but checkout modal doesn't shows #77

Closed rftglyv closed 1 hour ago

rftglyv commented 2 hours ago

What happened?

I'm using paddle overlay checkout and didn't updated any packages or something that can affect paddle. Bot now it doesn't works paddlejs is initialized and checkout request was successfully created after all overlay is not appears. I've attached video file

https://github.com/user-attachments/assets/6aa57032-0070-4fe9-b2f8-7145f45e8872

Steps to reproduce

  1. Initialize PaddleJS and store it on useState variable
  2. Use that variable on other component and open checkout

What did you expect to happen?

It must open checkout and overlay must be appeared.

How are you integrating?

I'm using "next": "^14.2.16","react": "^18.3.1", "react-dom": "^18.3.1"

Logs


page-984ae385cd27e2a4.js:1 Opening Paddle checkout with priceId: pri_01j9md019b8e2daph3p61c7cmz and planId: 4
15Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.Understand this warningAI
4.06a8e246.chunk.js:2 

       POST https://o522631.ingest.sentry.io/api/5637177/envelope/?sentry_key=60ac0563573f45389801089541e2c93c&sentry_version=7 net::ERR_BLOCKED_BY_CLIENT
n @ 4.06a8e246.chunk.js:2
(anonymous) @ 4.06a8e246.chunk.js:2
add @ 4.06a8e246.chunk.js:2
o @ 4.06a8e246.chunk.js:2
value @ 4.06a8e246.chunk.js:2
value @ 4.06a8e246.chunk.js:2
value @ 4.06a8e246.chunk.js:2
value @ 4.06a8e246.chunk.js:2
value @ 4.06a8e246.chunk.js:2
Ot @ 4.06a8e246.chunk.js:2
Ct @ 4.06a8e246.chunk.js:2
kt @ 4.06a8e246.chunk.js:2
v @ main.c50595cd.chunk.js:1
1257 @ main.c50595cd.chunk.js:1
i @ runtime-main.a269b5af.js:1
t @ runtime-main.a269b5af.js:1
r @ runtime-main.a269b5af.js:1
(anonymous) @ main.c50595cd.chunk.js:1Understand this errorAI
global.localizecdn.com/api/lib/y5zO0syh5Yobq/tl.gif?l=en&c=7086490:1 

       GET https://global.localizecdn.com/api/lib/y5zO0syh5Yobq/tl.gif?l=en&c=7086490 net::ERR_BLOCKED_BY_CLIENT
Image
t.l169 @ localize.js:1
(anonymous) @ localize.js:1
n.exports @ localize.js:1
(anonymous) @ localize.js:1
(anonymous) @ localize.js:1
(anonymous) @ localize.js:1
(anonymous) @ localize.js:1
(anonymous) @ main.c50595cd.chunk.js:1
(anonymous) @ main.c50595cd.chunk.js:1
Fc @ 4.06a8e246.chunk.js:2
t.unstable_runWithPriority @ 4.06a8e246.chunk.js:2
qi @ 4.06a8e246.chunk.js:2
Pc @ 4.06a8e246.chunk.js:2
(anonymous) @ 4.06a8e246.chunk.js:2
B @ 4.06a8e246.chunk.js:2
_.port1.onmessage @ 4.06a8e246.chunk.js:2Understand this errorAI
page-984ae385cd27e2a4.js:1 Paddle event: {name: 'checkout.loaded', data: {…}}
page-984ae385cd27e2a4.js:1 Paddle event: {name: 'checkout.customer.created', data: {…}}
page-984ae385cd27e2a4.js:1 Paddle event: checkout.customer.created {id: 'xxx', transaction_id: 'xxx', status: 'draft', custom_data: {…}, currency_code: 'USD', …}```
rftglyv commented 2 hours ago

Sentry io request being rejected by our CORS policy can it be issue ?

danbillson commented 1 hour ago

Thank you for your report. It appears that this issue is related to configuration or integration rather than a bug in the SDK. For further assistance, please contact our customer support team at sellers@paddle.com or visit our documentation. We are closing this issue for now, but please don't hesitate to reach out if you have further questions.