Hi
I have got the as far as sending the order information to Paymate, completing the order and then returning to the website. I get stuck when I try to retreive the information that Paymate has reutrned.
I have the code class PaymatePayment_Handler extends Controller {
/**
* Get the Order object to modify, check security that it's the object you want to modify based
* off Paymate confirmation, update the Order object to show complete and Payment object to show
* that it was received. Finally, send a receipt to the buyer to show these details.
*/
function paid() {
global $project;
$orderID = $_POST['ref'];
$order = $order = DataObject::get_by_id("Order", $orderID);
if($order) ....
but it appears I am not successfully retreiving ref which is the Paymate name for the Silverstripe OrderID. When I do an isDev it is the $orderID = $_POST['ref']; line that is highlighted with the errors
* PaymatePayment_Handler->paid(HTTPRequest)
Line 162 of Controller.php
* Controller->handleAction(HTTPRequest)
Line 107 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/PaymatePayment_Handler/paid/72/)
Line 115 of main.php
So am I right in understanding that this means I am not accessing the Paymate info? Any suggestion on what I am doing wrong (any other work I have seen on accessing a Pamate response uses this)?
Thanks
MM