Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Payments and Payment Gateway / APIs /

This is a forum for discussing SilverStripe can-do payments and their APIs / Gateways.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Return URL

Go to End

2 Posts   2608 Views


Community Member, 12 Posts

19 October 2010 at 9:11pm

Hi, I have been working on getting the PayStation gateway running, and am almost there, just having trouble with what the return url should be after a transaction has been processed by the gateway - currently i am trying which is from the class in the PaystationHostedPayment.php file - however when the url gets passed to this with all the transaction string details on the end it gives me 'page not found'?

class PaystationHostedPayment_Handler extends Controller {

static $URLSegment = 'paystation';

static function complete_link() {
return self::$URLSegment . '/complete';

The Paypal payment seems to use the same ie and this works fine?

Any ideas?



Community Member, 12 Posts

20 October 2010 at 9:19pm

Managed to sort this out (thanks to pointer from Bryan at Paystation), was missing the handler from the _config file in the payment folder....

PayStationHostedPayment_Handler::$URLSegment . '/$Action/$ID' => 'PayStationHostedPayment_Handler'

Good news is it all works perfectly now!