WPCrazy Posted December 2, 2012 Share Posted December 2, 2012 I'm developing a custom payment gateway module. But facing an issue while writing callback script. To validate payment, I need to retrieve merchant id and merchant key which was configured in gateway setup page. In module main file, I've coded this way "username" => array("FriendlyName" => "Merchant ID", "Type" => "text", "Size" => "20", ), "security" => array("FriendlyName" => "Security Key", "Type" => "text", "Size" => "20", ), which can be get using $gatewayusername = $params['username']; in same file to submit form in gateway. But couldn't understand how can I get those values from callback page. I need hose to verify hash (similar to 2checkout). Need your help. 0 Quote Link to comment Share on other sites More sharing options...
drew13 Posted December 3, 2012 Share Posted December 3, 2012 $gatewaymodule = "blablabla"; $GATEWAY = getGatewayVariables($gatewaymodule); and then use $GATEWAY["username"] and $GATEWAY["security"] variables 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.