AlexT\BTPayment\BraintreePageController
Class BraintreePageController
Custom PageController to include css and script files for Braintree Payment Gateway
Synopsis
class BraintreePageController
extends PageController
{
- // members
- private static array $allowed_actions = ;
- // methods
- protected void init()
- public Braintree BTPaymentForm()
- public HTTPResponse makePayment()
- public HTTPResponse processPayment()
- public Braintree BTEditPaymentForm()
- public HTTPResponse editPayment()
- public Form BTPreviousTransactionsForm()
Hierarchy
Extends
- PageController
Members
private
-
$allowed_actions
{@inheritdoc}
Methods
protected
- init() — Initialize the page
public
- BTEditPaymentForm() — Generate SilverStripe to host a Braintree Drop UI form
- BTPaymentForm() — Generate a SilverStripe form to host the Braintree Dropin UI
- BTPreviousTransactionsForm()
- editPayment() — Handle edit payment methods form
- makePayment() — Hanle payment form when submitted
- processPayment()