Closed HakkiUlkuDev closed 2 years ago
As far as we continue with investigating, loadPaypalSdk
method is not doing its job. We observed this by checking the loaded scripts on head of the page and paypal.com.... related link is not on the page.
Do you have a nuxt repo on Github that minimally reproduces the issue so we can inspect it?
@crookedneighbor , sorry but we are working in a private repository which is a business project. Therefore, we cannot share the repository. Maybe we can arrange a short meeting about the issue so that we can reproduce and show the issue to you on our locals. Would that be proper for you?
I'm not asking you to share your private repository, just that you set up a new nuxt project that reproduces the issue. By doing that, you should be able to determine if it's something happening in the nuxt platform that is causing it, or a plugin you are using, or what. That should significantly narrow down where the issue is.
As far as I know, the loadPayPalSDK
method works just fine everywhere else, so there must be something specific to your codebase that is making it behave in this unexpected way. Perhaps Nuxt prevents scripts from being loaded into the head dynamically?
If that's the case, I'd recommend manually including the PayPal script instead of using the helper method we provide.
If further details/information become available, feel free to re-open this issue. Otherwise, please create a new issue if problems arise.
General information
Issue description
Paypal button is not loading on Safari (this is the first browser that we observe the issue). We have implemented everything according to the documents, however it is not loading for some browsers (eg: loading for Chrome successfully). Scripts are also added under nuxt.config.js to make sure they are loading.
Implemented PaypalBrainTreeButton in vuejs as seen below:
nuxt.config.js 's head:
Also, for Firefox we got this error in the console: