php - eWay Shared Payment error Currency is not valid or not allowed; -


i adding eway shared payment gateway site , testing sanbox details have set should service response not allowing me pass through :

here response :
http/1.1 200 ok cache-control: private content-length: 127 content-type: text/html; charset=utf-8 server: microsoft-iis/7.5 p3p: cp="noi adm dev psai com nav our otr stp ind dem" set-cookie: asp.net_sessionid=qwfm2j0wpkt35tm0eunu0v2y; path=/; httponly x-aspnet-version: 4.0.30319 x-powered-by: asp.net date: wed, 31 jul 2013 08:14:27 gmt falsecurrency not valid or not allowed;

as can see last line of response saying : currency not valid or not allowed;

here code eway integration :

// eway payment in php   $pathvalue="http://localhost/eway/test_hosted/";   if($_get['action']=="payment")   {         $ewayurl.="?customerid=92539274";         $ewayurl.="&username=ravi.soni@ideavate.com.sand";         $ewayurl.="&amount=".$_post['amount'];         $ewayurl.="&currency=gbp";         $ewayurl.="&pagetitle=".$_post['pagetitle'];         $ewayurl.="&pagedescription=".$_post['pagedescription'];         $ewayurl.="&pagefooter=".$_post['pagefooter'];           $ewayurl.="&language=".$_post['language'];         $ewayurl.="&companyname=".$_post['companyname'];         $ewayurl.="&customerfirstname=john";         $ewayurl.="&customerlastname=doe";               $ewayurl.="&customeraddress=123 abc street";         $ewayurl.="&customercity=london";         $ewayurl.="&customerstate=alabama";         $ewayurl.="&customerpostcode=w1b 3hh";         $ewayurl.="&customercountry=united kingdom";                 $ewayurl.="&customeremail=sample@eway.co.uk";         $ewayurl.="&customerphone=0800 123 4567";                $ewayurl.="&invoicedescription=".$_post['invoicedescription'];         $ewayurl.="&cancelurl=".$pathvalue."ewaysharedpage.php";         $ewayurl.="&returnurl=".$pathvalue."ewayresponse.php";         $ewayurl.="&companylogo=https://www.eway.co.uk/secure/images/ewaylogo1.gif";         $ewayurl.="&pagebanner=https://www.eway.co.uk/join/secure/_images/topbannerv6.gif";         $ewayurl.="&merchantreference=".$_post['refnum'];         $ewayurl.="&merchantinvoice=".$_post['invoice'];         $ewayurl.="&merchantoption1=";          $ewayurl.="&merchantoption2=";         $ewayurl.="&merchantoption3=";         $ewayurl.="&modifiablecustomerdetails=".$_post['moddetails'];          $spacereplace = str_replace(" ", "%20", $ewayurl);           $posturl="https://payment.ewaygateway.com/request/$spacereplace";          $ch = curl_init();         curl_setopt($ch, curlopt_url, $posturl);         curl_setopt($ch, curlopt_returntransfer, 1);         curl_setopt($ch, curlopt_header, 1);         curl_setopt($ch, curlopt_ssl_verifypeer, 0);          if (curl_proxy_required == 'true')          {             $proxy_tunnel_flag = (defined('curl_proxy_tunnel_flag') && strtoupper(curl_proxy_tunnel_flag) == 'false') ? false : true;             curl_setopt ($ch, curlopt_httpproxytunnel, $proxy_tunnel_flag);             curl_setopt ($ch, curlopt_proxytype, curlproxy_http);             curl_setopt ($ch, curlopt_proxy, curl_proxy_server_details);         }          $response = curl_exec($ch);         if($response){             print_r($response);             die('response');         } 

could point me out made wrong?

thanks

i got problem solved self after changing request url :

http://sandbox.uk.ewaypayments.com/  : https://payment.ewaygateway.com/ 

thanks


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -