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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   2672 Views

Avatar
Simmo

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 sitename.co.nz/paystation/complete 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 sitename.co.nz/paypal/complete and this works fine?

Any ideas?

thanks,

Avatar
Simmo

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!

cheers