API Reference
Log In
API Reference

Render Instamojo checkout form and collect payments on your webpage with just the instamojo-payment-url.

Checkout.js

Once checkout.js file is loaded in the browser, we have the following methods available in the global scope:

<script src="https://js.instamojo.com/v1/checkout.js"></script>
<script>
	Instamojo.open("YOUR_INSTAMOJO_LINK_HERE"); 
</script>

Instamojo.open()

Call this method to open any instamojo link in checkout form.
It requires instamojo-payment-url to be passed as the first parameter to render checkout form.

Instamojo.close()

Call this method to close the checkout form manually.

MethodTypeExample
openfunction(link)

link: STRING
Instamojo.open('https://www.instamojo.com/@sampad')
closefunction()Instamojo.close()

You can refer to the checkout demo here