Skip to main content
All CollectionsIntegrations
How to connect your KnoCommerce with Recurpay Subscription to show survey
How to connect your KnoCommerce with Recurpay Subscription to show survey
Sinchain avatar
Written by Sinchain
Updated over 2 months ago

So you want to survey your Recurpay customers? Well, you've come to the right place!

If you're using Recurpay subscription you'll need to add Knocommerce embed script tag to your "Customer Portal" scripts section in your Recurpay settings.

In Recurpay Subscription app, go to Settings -> General and scroll down to the Customer portal section. It should look something like this.

Start by adding a bit of Javascript to initialize Shopify's order object (fancy talk to make sure Shopify and Kno are both looking at the correct Shopify Order #).

<!-- KnoCommerce Script Setup -->
<script>
window.Shopify = window.Shopify || {};
window.Shopify.checkout = window.Shopify.checkout || {};
window.Shopify.checkout.order_id = subscriptionOrders[0].id;
</script>

Then in another window, open up your KnoCommerce dashboard to find your script in Settings -> Survey Settings -> Miscellaneous.

Copy the embed script and paste it into the Recurpay Customer Portal script editor (below what you've already pasted). The final script that combines everything that you'll paste into Recurpay will look something like this:

<!-- KnoCommerce Script Setup -->
<script>
window.Shopify = window.Shopify || {};
window.Shopify.checkout = window.Shopify.checkout || {};
window.Shopify.checkout.order_id = subscriptionOrders[0].id;
</script>
<script src="https://www.knocdn.com/v1/v1.0.0s/embed-s.js?id=xxxxxxxxxxxxxxxxxxx"></script>

Once sucessfully intregrated it will appear to the recurpay customer portal as shown in image.
โ€‹

If you have any questions just reach out!

Did this answer your question?