I'm trying to connect a custom payment module for opencart. Now I have a form that sends all the info collected from the user to a URL something like...
<form action="https://www.mywebsite.com/paymentProcessor.php" type="post">
<input type="text" name="userName">
<input type="password" name="pass">
<input type="text" name="Amount">
<input type="submit" name="submit" value="Confirm">
</form>
Now paymentProcessor.php checks all information provided and returns "YES" or "NO" if the transaction was successful or not respectively then it sends that information back to the callback function in opencart. Now here is the problem , How does paymentProcessor.php send the information to the callback function? What code do i need to include on paymentProcessor.php to set the variable and how does the callback function receive the variables. Any solution in json or anything else will be highly appreciated. thx