Jump to:

113 Posts in 222 Topics by 53 members

Payments and Payment Gateway / APIs

SilverStripe Forums » Payments and Payment Gateway / APIs » Return URL

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

Moderators: martimiz, Sean, Normann, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1898 Views
  • Simmo
    Avatar
    Community Member
    12 Posts

    Return URL Link to this post

    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,

  • Simmo
    Avatar
    Community Member
    12 Posts

    Re: Return URL Link to this post

    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

    1898 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.