Skip to content

Instantly share code, notes, and snippets.

@basilcf
basilcf / inline.html
Last active November 14, 2018 06:19
Code Example for Merchant Hosted Cashfree Inline Payment page (https://docs.cashfree.com/docs/hosted/guide/#inline-mode)
<!-- Place the below div on your html -->
<div id="payment-div"></div>
<!-- Paste below code base before the closing tag(</body>) of body element -->
<script src="https://www.cashfree.com/assets/cashfree.sdk.v1.2.js" type="text/javascript"></script>
<script type="text/javascript">
(function() {
var data = {};
data.orderId = "1234";
data.orderAmount = 450;
@basilcf
basilcf / popup.html
Last active November 14, 2018 06:19
Code Example for Merchant Hosted Cashfree Popup payment page (https://docs.cashfree.com/docs/hosted/guide/#popup-mode)
<!-- Place the below div on your html -->
<div id="payment-div"></div>
<!-- Paste below code base before the closing tag(</body>) of body element -->
<script src="https://www.cashfree.com/assets/cashfree.sdk.v1.2.js" type="text/javascript"></script>
<script type="text/javascript">
(function() {
var data = {};
data.orderId = "1234";
data.orderAmount = 450;
@basilcf
basilcf / Seamless-Basic.html
Created April 9, 2018 09:49
Cashfree Whitelabel Seamless Basic payment form.
<h1>Payment Form</h1>
<table border = "3" cellpadding = "5" cellspacing = "5">
<tr>
<th>Type</th>
<th>Details</th>
<th>Submit</th>
</tr>
<tr>
<td>Cards</td>
<td>
@basilcf
basilcf / netbank-codes.tsv
Last active April 10, 2018 13:21
Netbanking Codes for various Banks in Cashfree Payment Gateway
Name of the Bank paymentCode
Allahabad Bank 3001
Andhra Bank 3002
Axis Bank 3003
Bank of Baroda - Corporate 3060
Bank of Baroda - Retail 3005
Bank of India 3006
Bank of Maharashtra 3007
Canara Bank 3009
Catholic Syrian Bank 3010
@basilcf
basilcf / seamless-basic-popup.php
Last active October 23, 2018 11:55
Cashfree Seamless Basic Popup payment page Sample Code
<?php
$mode = "TEST";
$appId = "<API KEY>";
$secretKey = "<Secret Key>";
$orderId = time();
$orderAmount = 100;
$customerName = "John Doe";
$customerPhone = "9900012345";
@basilcf
basilcf / seamless-basic-redirect.php
Last active October 23, 2018 11:55
Cashfree Seamless Basic redirect payment page sample Code
<?php
$mode = "TEST";
$appId = "<API KEY>";
$secretKey = "<Secret Key>";
$orderId = time();
$orderAmount = 100;
$customerName = "John Doe";
$customerPhone = "9900012345";