コード例 #1
0
 public function onBeforeWrite()
 {
     parent::onBeforeWrite();
     $this->CallBackSlug = !$this->CallBackSlug ? 'worldpay' : $this->CallBackSlug;
     if (!$this->Summary) {
         $this->Summary = "Pay with credit/debit card securely via WorldPay";
     }
 }
コード例 #2
0
 public function onBeforeWrite()
 {
     parent::onBeforeWrite();
     $this->CallBackSlug = !$this->CallBackSlug ? 'sagepay' : Convert::raw2url($this->CallBackSlug);
     if (!$this->Summary) {
         $this->Summary = "Pay with credit/debit card securely via SagePay";
     }
     if (!$this->GatewayMessage) {
         $this->GatewayMessage = "Thank you for your order from: " . SiteConfig::current_site_config()->Title;
     }
 }