Welcome Guest, Not a member yet? Register   Sign In
Problem With Payment Gateway Return URL
#1

[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
#2

[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
#3

[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
#4

[eluser]Total Shop UK[/eluser]
Figured it out Smile

$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];
}




Theme © iAndrew 2016 - Forum software by © MyBB