Hey Anru, With Drupal and the uc_dps_pxpay module - you could try creating seperate success.php and failure.php files and include bootstrap.inc in those and run the uc_dps_pxpay_complete or uc_dps_pxpay_cancel functions manually. I'm the author of that uc_dps_pxpay code, if you log a bug at http://drupal.org/project/issues/uc_paymentexpress then I'll have a look into some sort of work around and check what the DPS spec says. Cheers, Robbie Mackay
On Mar 12, 4:07 pm, ctx2002 <[email protected]> wrote: > 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]
