I would like confirmation that it is not possible to integrate paddle checkout on wix (even when using Corvid).
I have take the code from Paddle’s site: https://developer.paddle.com/guides/how-tos/checkout/paddle-checkout
it seems very simple. First add this code to the head of the page:
<script src="https://cdn.paddle.com/paddle/paddle.js"></script>
<script type="text/javascript">
Paddle.Setup({ vendor: 1234567 });
</script>
I have added this code as a “New Tool” under Settings > Tracking & Analytics. I tried setting it only to a specific page as well as to all pages. Seems like this script is not being pulled into the page.
Next, to make a button overlay the paddle checkout you would then add a class and data-product attribute to a button on your page like this:
<a href="#!" class="paddle_button" data-product="12345">Buy Now!</a>
However, my understanding is that it is impossible to add a custom class to a button. Is this correct?
Otherwise, how could you integrate paddle checkout as seen here? https://developer.paddle.com/guides/how-tos/checkout/paddle-checkout
For something like this to work you would need to place the first chunk of html code into a custom new tool in Tracking and Analytics as you have done.
The second chunk of html code would then have to go in a html iFrame on the required page itself.
We recommend that you use our Overlay Checkout. This is an iframe that is displayed over your own webpage when the checkout is triggered. The checkout is customized with your product logo and brand color, and the user experience is optimized by us for maximum conversion.
https://support.wix.com/en/article/embedding-custom-code-to-your-site
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site
Note that as stated on those two linked pages above, that Wix does not provide support for any code that comes from a third party provider, therefore with your html code from Paddle, you would need to contact their own support about integrating this into Wix.
Wix does not provide support for technical difficulties associated with third-party code snippets. If you are experiencing an issue with your code snippet, please contact the provider directly.
A much better and safer way to do this would be to use their own Paddle API and use Wix HTTP Functions and Wix Fetch to expose your site to it.
https://developer.paddle.com/api-reference/intro
https://www.wix.com/corvid/reference/wix-fetch.html
https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api
https://www.wix.com/corvid/reference/wix-http-functions.html
https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions
Examples
https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-myapi-and-myapiclient
https://www.wix.com/corvid/example/exposing-apis
Has anyone had success integrating Paddle with Wix? I’ve tried many things but seems like Wix will never allow a call to a 3d party API. The answer by GOS below is just a generic list of links to documentation that just doesn’t work. The Paddle Overlay works only if you can call their library. But I still can’t figure out how to make that call. I’ve include paddle.js as custom code in the head. I can see from a published site that it gets correctly loaded and initialized. But if I want to invoke it as a response to a button even of a Wix lightbox, Wix just doesn’t recognize it. Any tricks one can use?
1 Like