Jump to content

prestashop payment module (payge)


Recommended Posts

hello all,

 

I use payge prestashop module that works with version 1.4.X V3 .

i have installed payge module in prestashop 1.5.6 and it works, but When I do the test card payment 

I get results

http://localhost/presta/modules/payge/redirect.php?paygestatus=SUCCESS&

and not doing the redirecting site :=> "This webpage has a redirect loop"

 

I want to work in prestashop 1.5.6, and how can I change ? help pls.. 

 

payge installed an configure

screenshot

MERCHANT NAME: blabla

MERCHANT Key: blablablablablablabla

CALLBACK URL: http://localhost/presta/modules/payge/paycallback.php?

SUCCESS URL:  localhost/presta/modules/payge/redirect.php?paygestatus=SUCCESS&

ERROR URL:      http://localhost/presta/modules/payge/redirect.php?paygestatus=ERROR&

CANCEL URL:    http://localhost/presta/modules/payge/redirect.php?paygestatus=CANCEL&

test mode : enable

 

 

redirect.php

 

$useSSL = true;
 
include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../../header.php');
include(dirname(__FILE__).'/payge.php');
 
$payge = new payge();
$status=$_GET['paygestatus'];
if(sizeof($_GET)>1) $payge->redirect($status);
 
echo "<center>".$payge->return_message($status)."</center>";
 
include_once(dirname(__FILE__).'/../../footer.php');

 

payge.php

 

payge

payge.zip

Edited by gogua (see edit history)
Link to comment
Share on other sites

  • 5 months later...
×
×
  • Create New...