public function process($order, $options) { // If available, use PDT as the validator APP_Paypal_PDT::init($options); if (APP_Paypal_PDT::is_enabled()) { $this->handle_pdt($order, $options); return; } // Otherwise, validate regularly if ($this->can_be_handled()) { $this->complete_order($order); } else { $this->display_form($order, $options); } }