This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mode = "TEST"; | |
$appId = "<API KEY>"; | |
$secretKey = "<Secret Key>"; | |
$orderId = time(); | |
$orderAmount = 100; | |
$customerName = "John Doe"; | |
$customerPhone = "9900012345"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mode = "TEST"; | |
$appId = "<API KEY>"; | |
$secretKey = "<Secret Key>"; | |
$orderId = time(); | |
$orderAmount = 100; | |
$customerName = "John Doe"; | |
$customerPhone = "9900012345"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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; |