I am suppose to add this code to my woocommerce , but i do not know where to put it and i tried making a plugin but it doesnt work
so please help me its a payment gateway ..
Thank you in Advance
<?php
$url = ‘http://68.169.57.64:8080/transflow_webclient/services/InvoicingService?wsdl’;
$client = new SoapClient($url,array(‘trace’=>1,’cache_wsdl’=>WSDL_CACHE_NONE,’location’=>’http://68.169.57.64:8080/transflow_webclient/services/InvoicingService.InvoicingServiceHttpSoap11Endpoint/’));
//Parameters to be sent and processed
$params = array(
‘name’=>’Frank’,
‘info’ => ‘Topup’,
‘amt’ => ‘amount’,
‘mobile’ => ‘phone number’,
‘mesg’ => ‘Please confirm the payment’,
‘expiry’=>”,
‘billprompt’=>’2’,
‘thirdpartyID’=>’Mazzuma’,
‘username’=>’your username’,
‘password’=>’your password’
);
try{
$result = $client->__call(‘postInvoice’,array($params));
}catch(SoapFault $e){
echo $e->getMessage();
}
print_r($result);
echo “
"; echo $client->__getLastRequestHeaders(); echo htmlentities($client->__getLastRequest()); echo $client->__getLastResponseHeaders(); echo htmlentities($client->__getLastResponse()); echo "<pre/>"; ?>
Hey kimogroup,
Please let us know where did you get this code? Do you have any documentation link about how to add this code in woocommerce ?
Best regards,
Vinay
Attached is the file i received from my Merchants
https://www.dropbox.com/sh/t1hnh5w3vgerwrm/AACRRdVP5h2yxVVgsYShKcC1a?dl=0
Thank You
Hey!
That is a custom work, and we can not help with it.
Please do try to contact and hire a developer for that work, who will for sure help you get the results you want.
Thanks a lot for your time and patienbce
Best regards,
Basilis