Custom JavaScript Widget

Snippet Code – Product Page Widget

Option 1: JavaScript Code

Use the JavaScript code below to integrate Openpay Product Page Widget on your ecommerce website.

<script src=”https://www.jssdk.openpaytestandtrain.com.au/cdn/snippet/snippet.js”></script>
<div class=”openpaywrapper”></div>

Option 2: Upload JavaScript

  1. Download the JavaScript Snippet Code here
  2. Upload the file openpay_snippet.js to the server
  3. Include the following script on head
    <script src=”/openpay_snippet.js”></script>
  4. Add the following code on the product template file, under the ‘Product Price’, where you want to display the product page widget.
    <div class=”openpaywidgetwrapper”></div>

Demo Widget

Shows the placement of Product Page Widget on a demo site.