I am developing a non merchant gateway.
I followed the demo here: https://github.com/phillipsdata/blesta_sdk/blob/master/components/gateways/nonmerchant/nonmerchant_demo/nonmerchant_demo.php
This function:
public function validate(array $get, array $post) {}
Will handle the gateway callback.
If the blesta received the callback (HTTP Request), how to return a HTTP Response to gateway?
For example, the gateway posted data ($_POST) to callback url, it should return text 'success' to gateway, so the gateway will not post again.
If the blesta can not return anything to gateway, how to check this transaction already recorded? Because the gateway may post many times.
For example, in WHMCS, I can use checkCbTransID($transid) to do it: http://docs.whmcs.com/Gateway_Module_Developer_Docs#Callbacks
Thanks.