Problem With Payment Gateway Return URL - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem With Payment Gateway Return URL (/showthread.php?tid=33266) |
Problem With Payment Gateway Return URL - El Forum - 08-20-2010 [eluser]Total Shop UK[/eluser] Hi, I send the Payment gateway domain.com/return/ and I get back:- The URI you submitted has disallowed characters. domain.com/return/Status=Success&TransID=184362&Amount;=&Crypt=62b222138b68c9feb580746105376b69 How can I fix this? Thanks Problem With Payment Gateway Return URL - El Forum - 08-20-2010 [eluser]Total Shop UK[/eluser] Is it wise to change the below to include & ?? $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-&'; That will fix the problem but I'm not sure what else it will break? Thanks Problem With Payment Gateway Return URL - El Forum - 08-20-2010 [eluser]Total Shop UK[/eluser] I've used uri->segment and got:- $data = Status=Success&TransID=184362&Amount;=&Crypt=62b222138b68c9feb580746105376b69 Whats the easiest way to turn that into an array? Thanks Problem With Payment Gateway Return URL - El Forum - 08-20-2010 [eluser]Total Shop UK[/eluser] Figured it out $rdata = urldecode($this->uri->segment('3')); $rdata_arr = explode('&',$rdata); $return_data = array(); foreach ($rdata_arr as $value) { $arr = explode('=',$value); $return_data[$arr[0]] = $arr[1]; } |