Skip to content

Instantly share code, notes, and snippets.

@basilcf
basilcf / Seamless-Basic.html
Created Apr 9, 2018
Cashfree Whitelabel Seamless Basic payment form.
View Seamless-Basic.html
<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 Apr 10, 2018
Netbanking Codes for various Banks in Cashfree Payment Gateway
View netbank-codes.tsv
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-redirect.php
Last active Oct 23, 2018
Cashfree Seamless Basic redirect payment page sample Code
View seamless-basic-redirect.php
<?php
$mode = "TEST";
$appId = "<API KEY>";
$secretKey = "<Secret Key>";
$orderId = time();
$orderAmount = 100;
$customerName = "John Doe";
$customerPhone = "9900012345";
@basilcf
basilcf / seamless-basic-popup.php
Last active Oct 23, 2018
Cashfree Seamless Basic Popup payment page Sample Code
View seamless-basic-popup.php
<?php
$mode = "TEST";
$appId = "<API KEY>";
$secretKey = "<Secret Key>";
$orderId = time();
$orderAmount = 100;
$customerName = "John Doe";
$customerPhone = "9900012345";
@basilcf
basilcf / inline.html
Last active Nov 14, 2018
Code Example for Merchant Hosted Cashfree Inline Payment page (https://docs.cashfree.com/docs/hosted/guide/#inline-mode)
View inline.html
<!-- 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 Nov 14, 2018
Code Example for Merchant Hosted Cashfree Popup payment page (https://docs.cashfree.com/docs/hosted/guide/#popup-mode)
View popup.html
<!-- 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;