Need help with PayPal URLs |
[eluser]Akinzekeel[/eluser]
Well I actually found a dirty workaround for this problem, however I haven't posted it here because I am still hoping that someone will come up with a better solution. Anyway, here's how I did it: 1. In your .htaccess, add an exception for "paypal" (i.e. any URL starting with paypal will not get rewritten to index.php). Example: Code: RewriteCond $1 !^(index\.php|res|robots\.txt|paypal) Code: // paypal.php Code: // paypal_cancel.php The segment-based URL in the first-line is the URL of your "success" (=paypal.php) or "cancel" (=paypal_cancel.php) page. 3. In your CI script which uses paypal, define the success and cancel URL like http://example.com/paypal.php which would then result in http://example.com/paypal.php?token=ABCD-1234567890 which will ultimately be redirected to http://example.com/order/paypal/ABCD-1234567890 |
Messages In This Thread |
Need help with PayPal URLs - by El Forum - 11-03-2010, 08:49 AM
Need help with PayPal URLs - by El Forum - 11-15-2010, 04:49 AM
Need help with PayPal URLs - by El Forum - 11-15-2010, 05:07 AM
Need help with PayPal URLs - by El Forum - 11-15-2010, 07:09 AM
Need help with PayPal URLs - by El Forum - 11-15-2010, 07:20 AM
Need help with PayPal URLs - by El Forum - 11-15-2010, 10:11 AM
Need help with PayPal URLs - by El Forum - 11-15-2010, 10:16 AM
Need help with PayPal URLs - by El Forum - 11-15-2010, 10:54 AM
Need help with PayPal URLs - by El Forum - 11-15-2010, 10:55 AM
Need help with PayPal URLs - by El Forum - 11-15-2010, 03:42 PM
Need help with PayPal URLs - by El Forum - 11-16-2010, 12:44 AM
Need help with PayPal URLs - by El Forum - 11-17-2010, 05:49 AM
Need help with PayPal URLs - by El Forum - 11-17-2010, 05:52 AM
Need help with PayPal URLs - by El Forum - 11-17-2010, 03:29 PM
Need help with PayPal URLs - by El Forum - 11-19-2010, 03:41 AM
|