Open jakajancar opened 3 months ago
Hi @jakajancar , Thank you for raising this issue with us.
I am sorry that you are running into this issue. I do not believe our library was built to load as an AMD package.
I will do some testing and come up with a fix for this problem.
Thank you.
Hey @vijayasingam-paddle,
you can see it at the beginning of https://cdn.paddle.com/paddle/v2/paddle.js:
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):...
If define[.amd]
is present, it calls it instead of setting window.Paddle
.
What happened?
I've reported this to your support team a while ago for Paddle.js v1:
(* Returns a value, but that is discarded.
window.Paddle
is not set.)I have worked around the issue by doing something like:
Paddle.js v2 is still problematic and you either need to fix it there, or make a similar workaround in this wrapper/loader.
Steps to reproduce
See above.
What did you expect to happen?
No response
How are you integrating?
No response
Logs
No response