Hello Guys I have a problem. I cant find good documentation on how to code a payment interface if i want to pay via mobile. Heres the scenario Customer adds goods to cart Customer selects Pay via Mobile option Customer follows instructions Sends cash to stores number Customer enters the code recieved as reciept on website Pay is confirmed
I have the PHP script done in but i cant convert it to cs cart structure
Heres the Script
<?php
set_include_path("../mall/include:" get_include_path());
require_once("PLUSPEOPLE/autoload.php");
$pesa=new PLUSPEOPLE\PesaPi\PesaPi();
if (isset($_POST["receipt"]){
$transactions=$pesa->locateByReceipt($_POST["receipt"]);
if(count($transactions)>0){
echo"Pay Recieved";
?>
<?php }
else{
?>
<html>
<head></head>
<body>
Pay not recieved Re Enter the Transaction Receipt<br>
<form method="post" action="buy.php">
<input type="text" name="receipt" value="">
<input type="submit" name="ok" value="Send Receipt">
</form>
</body>
</html>
<?php
} else{
?>
<html>
<head></head>
<body>
Please Pay this Amount<br>
<form method="post" action="buy.php">
<input type="text" name="receipt" value="">
<input type="submit" name="ok" value="Send Receipt">
</form>
</body>
</html>
<?php
}
}
?>
Please Help