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

[eluser]Total Shop UK[/eluser]

I send the Payment gateway domain.com/return/ and I get back:-

The URI you submitted has disallowed characters.


How can I fix this?


[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?


[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?


[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