SilverStripe\Omnipay\PaymentGatewayController
Payment Gateway Controller
This controller handles redirects from gateway servers, and also behind-the-scenes
requests that gateway servers to notify our application of successful payment.
Synopsis
class PaymentGatewayController
extends Controller
{
- // members
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- // methods
- public static string getEndpointUrl()
- public static string getStaticEndpointUrl()
- public HTTPResponse index()
- public HTTPResponse gateway()
- protected string|null getPaymentIntent()
- protected HTTPResponse createPaymentResponse()
- protected string getPaymentActionFromRequest()
- protected Payment getPaymentFromRequest()
Hierarchy
Extends
- SilverStripe\Control\Controller
Members
private
- $allowed_actions
- $url_handlers
Methods
protected
- createPaymentResponse() — Create the appropriate HTTP response for the given payment.
- getPaymentActionFromRequest() — Get the action/service that should be performed on the payment.
- getPaymentFromRequest() — Get the the payment according to the identifier given in the url
- getPaymentIntent() — Find the intent of the current payment
public
- gateway() — Action used for handling static gateway requests (use this if your payment gateway doesn't handle dynamic callback URLs)
- getEndpointUrl() — Generate an absolute url for gateways to return to, or send requests to.
- getStaticEndpointUrl() — Get the static endpoint url for a gateway.
- index() — The main action for handling all requests.