So I'm in the middle of creating a plugin that allows users to make payments with GoCardless. Once payment has been made on the GoCardless website the user needs to be redirected to a PHP script that will confirm the payment was all hunkie-dorie... but....
Where do I put this script? At the moment I've put it inside a folder that is inside the htdocs folder but I'm having problems calling
craft()->plugin_name->confirmPayment() from this location as
craft() is undefined here.
Help greatly appreciated, thanks!