Skip to content

Instantly share code, notes, and snippets.

Devan Koshal dvnkshl

Block or report user

Report or block dvnkshl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dvnkshl
dvnkshl / gist:fb806e400f20c3b031e789ec0dac357c
Created Jun 14, 2017
commerce.js product list & add cart
View gist:fb806e400f20c3b031e789ec0dac357c
<html>
<head>
<title>Javascript eCommerce Boilerplate</title>
<script type="text/javascript" src="https://cdn.chec.io/v1/commerce.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.serializeJSON/2.7.2/jquery.serializejson.js"></script>
<script>
//USE YOUR API KEY HERE
Chec = new Commerce('pk_test_123038fb76224b56002794cb19cf9ca207dd0605bf9da', true);
</script>
@dvnkshl
dvnkshl / example-advanced.html
Last active Jun 10, 2019
Commerce.js Checkout (Advanced)
View example-advanced.html
<!---
This is a advanced javascript checkout built with Commerce.js (http://commercejs.com).
Tutorial: Checkout Tutorial (Advanced) - http://commerce.js.com/docs/overview/checkout-tutorial-advanced/
!-->
<html>
<head>
<title>Checkout Tutorial (Advanced)</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.serializeJSON/2.7.2/jquery.serializejson.js"></script>
<script type="text/javascript" src="https://cdn.chec.io/v1/commerce.js"></script>
@dvnkshl
dvnkshl / example-basic.html
Last active Oct 6, 2019
Commerce.js Checkout Example (Basic)
View example-basic.html
<!---
This is a basic javascript checkout built with Commerce.js (http://commercejs.com).
Tutorial: Checkout Tutorial (Basic) - http://commerce.js.com/docs/overview/checkout-tutorial/
!-->
<html>
<head>
<title>Checkout Tutorial (Basic)</title>
<meta charset="utf-8">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.serializeJSON/2.7.2/jquery.serializejson.js"></script>
@dvnkshl
dvnkshl / token-example.json
Created Sep 8, 2016
Commerce.js Example Token
View token-example.json
{
"id": "chkt_O5kryNBAYKvEYo",
"created": 1473375464,
"expires": 1473548264,
"analytics": {
"google": {
"settings": {
"tracking_id": null,
"linked_domains": null
}
You can’t perform that action at this time.