Broarm\EventTickets\Checkout\PaymentProcessor
Class PaymentProcessor
Synopsis
class PaymentProcessor
{
- // members
- private static string $currency = 'EUR';
- protected Reservation $reservation;
- protected Payment $payment;
- protected array $gatewayData = ;
- // methods
- public void __construct()
- public Payment createPayment()
- public ServiceResponse createServiceFactory()
- public void setGatewayData()
- public array getGateWayData()
- public Reservation getReservation()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Extensible
Members
private
- $currency — string
protected
- $gatewayData — array
- $payment — SilverStripe\Omnipay\Model\Payment
- $reservation — Broarm\EventTickets\Model\Reservation
Methods
public
- __construct() — PaymentProcessor constructor.
- createPayment() — Create a payment trough the given payment gateway
- createServiceFactory() — Create the service factory Catch any exceptions that might occur
- getGateWayData() — Get the gateway data
- getReservation() — Get the reservation
- setGatewayData() — Set and merges the gateway data