Source of file PayPal.php
Size: 0,831 Bytes - Last Modified: 2021-12-24T05:16:24+00:00
/var/www/docs.ssmods.com/process/src/code/model/payment/PayPal.php
12345678910111213141516171819202122232425262728293031323334353637383940 | <?php class PayPal extends PaymentMethod { public static $handler = "PayPalHandler"; public $Title = 'PayPal'; public $Icon = 'checkout/images/paypal-small.png'; private static $db = array( 'BusinessID' => 'Varchar(99)' ); public function getCMSFields() { $fields = parent::getCMSFields(); if ($this->ID) { $fields->addFieldToTab( "Root.Main", TextField::create('BusinessID', 'Business ID'), "Summary" ); } return $fields; } public function onBeforeWrite() { parent::onBeforeWrite(); $this->CallBackSlug = (!$this->CallBackSlug) ? 'paypal' : $this->CallBackSlug; $this->Summary = (!$this->Summary) ? "Pay with PayPal" : $this->Summary; } } |