ndb14 Posted February 27, 2017 Share Posted February 27, 2017 Hello, I'm starting to code a new custom gateway paiement. I success to send paiement to my mechant but he answer me with xml information. how i can process this information ? What do the callback file ? Where i can setup for ask credit card information ? Thanks for answer Nico 0 Quote Link to comment Share on other sites More sharing options...
vbatra Posted February 27, 2017 Share Posted February 27, 2017 Hello, I'm starting to code a new custom gateway paiement. I success to send paiement to my mechant but he answer me with xml information. how i can process this information ? What do the callback file ? Where i can setup for ask credit card information ? Thanks for answer Nico you can convert the XML to json using $xml = simplexml_load_string($xml_string); $json = json_encode($xml); $array = json_decode($json,TRUE); then look for success message in the response and return/ add the transaction ID to the yourgateway_capture function 0 Quote Link to comment Share on other sites More sharing options...
ndb14 Posted February 27, 2017 Author Share Posted February 27, 2017 Thanks for answer Where i write this in the module files or callback files ? Bests regards 0 Quote Link to comment Share on other sites More sharing options...
ndb14 Posted February 28, 2017 Author Share Posted February 28, 2017 Hi, I don't understand how its working My command is well send to the merchand. I set a lot of log command (and write to my own log files). But no log ! I don't understand what function is called when the answer from the merkant Some to explain to me please ? 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.