106 Posts in 26 Topics by 49 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, Howard, Sean, Normann, Ryan M., biapar, Willr, Ingo
|
Page:
1
|
Go to End | |
| Author | Topic: | 819 Views |
-
Return URL

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,
-
Re: Return URL

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
| 819 Views | ||
|
Page:
1
|
Go to Top |

