urlencode not working.
On Mar 12, 3:57 pm, Stig Manning <[email protected]> wrote: > Hi Anru, > > Looks like you might need a urlencode() on the URL before you give it to > DPS. > > Cheers, > Stig > > anru chen wrote: > > Hi All: > > > I have a site been implemented with drupal 6 and ubercart, pxpay module. > > > There is a problem with the site's host provider at where does not > > offer mod_rewite. so all > > drupal urls have a '?q' parameter (http://my.site.com/?q=buy). > > > all worked excepts DPS payment gateway. it does not likes "?q" parameter. > > > I have tested pxpay module on a different site at where mod_rewrite > > turned on and it worked. > > > so looked pxpay source code in uc_dps_pxpay.module. the problem was > > caused by those > > 2 lines: > > > $failure_url = url('uc_dps_pxpay/cancel/'. $order->order_id, > > array('absolute' => TRUE)); > > $success_url = url('uc_dps_pxpay/complete/'. $order->order_id, > > array('absolute' => TRUE)); > > > In normal, > > failure_url = '?q=uc_dps_pxpay/cancel/42' , > > $success_url='?q=uc_dps_pxpay/complete/42' and those 2 line will be > > sent to DPS payment gateway, > > that '?q' causes the DPS payment gateway to show an error message, > > but if i hard code $failure_url = 'my.site.com', $success_url='my.site.com', > > then the DPS will show me a correct page. > > > any one got this kind of problem before? > > > regards, > > > anru -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
