Source of file PayPal.php
Size: 0,873 Bytes - Last Modified: 2021-12-24T05:16:32+00:00
/var/www/docs.ssmods.com/process/src/code/model/payment/PayPal.php
123456789101112131415161718192021222324252627282930313233343536373839 | <?php class PayPal extends CommercePaymentMethod { public static $handler = "PayPalHandler"; public $Title = 'PayPal'; public $Icon = 'commerce/images/paypal-small.png'; private static $db = array( 'BusinessID' => 'Varchar(99)' ); public function getCMSFields() { $fields = parent::getCMSFields(); if($this->ID) { $fields->removeByName("URL"); $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; } } |