Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived Development & Programming
Problem With Payment Gateway Return URL
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
Problem With Payment Gateway Return URL
El Forum
Guest
#1
08-20-2010, 05:39 AM
[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
El Forum
Guest
#2
08-20-2010, 05:49 AM
[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
El Forum
Guest
#3
08-20-2010, 06:03 AM
[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
El Forum
Guest
#4
08-20-2010, 06:17 AM
[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];
}
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB