Hi,
We finished to build new third party gateway module.
(customer leaves my site and make the payment on the gateway providers).
After billing process is finished the gateway calls to the callback page of the module with POST request
and send the token and other transaction data.
I would like to save the token for future recurring billing so I did as you described in the documentation.
I build the function _storeremote() and call it from the callback page.
This is the code:
name of module = pcredirect:
pcredirect.php
function pcredirect_storeremote()
{
$token = $_POST['token'];
return array("status"=>"success","gatewayid"=>$token,"raw data"=>$results);
}
callback/pcredirect.php
pcredirect_storeremote();
This function doesn't work because the data of the token doesn't saved in the database.
any Idea?
Best Regards,
Star Network.
We finished to build new third party gateway module.
(customer leaves my site and make the payment on the gateway providers).
After billing process is finished the gateway calls to the callback page of the module with POST request
and send the token and other transaction data.
I would like to save the token for future recurring billing so I did as you described in the documentation.
I build the function _storeremote() and call it from the callback page.
This is the code:
name of module = pcredirect:
pcredirect.php
function pcredirect_storeremote()
{
$token = $_POST['token'];
return array("status"=>"success","gatewayid"=>$token,"raw data"=>$results);
}
callback/pcredirect.php
pcredirect_storeremote();
This function doesn't work because the data of the token doesn't saved in the database.
any Idea?
Best Regards,
Star Network.