OurPass
Search…
OurPass Inline - HTML
This is the HTML & Vanilla javascript library for implementing Ourpass checkout button on your website. This library would help you integrate the button into your system in no time😌
Working with OurPass CDN Inline
This works well for HTML and JavaScript code bases

Basic Parameters

Basic parameters
Query Parameters for lazy mode
Options
Type
Required
Description
src
string
true
Product image
amount
string
true
Product amount
url
string
true
Merchant's website address
name
string
true
Product name
email
string
false
Email of OurPass user
qty
string
true
Quantity of products been bought
description
string
true
Product description
items
array
true
List of items in cart
api_key
string
true
OurPass Merchant secret key
onClose
function
true
Javascript function that should be called if the customer closes the payment window
onSuccess
function
true
Javascript function that should be called if the payment is successful

This is the query parameters for "src" under the Iframe

Options
Type
Required
Description
src
string
true
Product image
amount
string
true
Product amount
url
string
true
Merchant's website address
name
string
true
Product name
email
string
false
Email of OurPass user
qty
string
true
Quantity of products been bought
description
string
true
Product description
key
string
true
Your Seller OurPass secret key

Installation

To use OurPass, use the CDN below and the button below
HTML
1
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/Cheetah-Speed-Technology/[email protected]/cdn.js"></script>
2
3
<button id="button" style="padding: 10px 32px;">Checkout with Pass</button>
Copied!
1
function runIframe() {
2
const clientInfo = {
3
src: 'https://raw.githubusercontent.com/Cheetah-Speed-Technology/website_dstore/master/Cap-front1.png',
4
amount: '1000',
5
url: 'ourpass.co',
6
name:'Cap',
7
8
qty:'1',
9
description:'Great Pass Cap',
10
key:'pass_sec_test_APJn8wy3ggvBVqiI61111111qaOypT4l',
11
onClose: function(){
12
alert('It Closed')
13
},
14
onSuccess: function(){
15
alert('It Succeeded')
16
}
17
}
18
openIframe(clientInfo)
19
}
Copied!

OurPass Inline (Lazy) Sample

A simple way to laod OurPass but note
1
<iframe
2
id="iframe1"
3
src="'https://merchant-sandbox.ourpass.co/checkout/?src='+content.src+'&amount='+content.amount+'&url='+dUrl+'&name='+content.name+'&email='+userEmail+'&qty='+form.qty+'&description='+content.subtagline+'&key=pass_sec_test_APJn8wy3ggvBVqiI63TxCBSjqaOypT4l'"
4
title="Pass Checkout"
5
style="border:none; height:100%;width:90%;z-index:99999"
6
></iframe>
Copied!

Configuration Options

Please note that the key to use with inline is the secret key
Last modified 3mo ago