Пример #1
0
 function __construct()
 {
     global $CONFIG;
     parent::__construct();
     if (!isset($CONFIG["payment"]["gate2shop"]["merchant_id"])) {
         WdfException::Raise("Gate2Shop: Missing merchant_id");
     }
     if (!isset($CONFIG["payment"]["gate2shop"]["merchant_site_id"])) {
         WdfException::Raise("Gate2Shop: Missing merchant_site_id");
     }
     if (!isset($CONFIG["payment"]["gate2shop"]["secret_key"])) {
         WdfException::Raise("Gate2Shop: Missing secret_key");
     }
     $this->small_image = resFile("payment/gate2shop.png");
 }
Пример #2
0
 function __construct()
 {
     global $CONFIG;
     parent::__construct();
     if (!isset($CONFIG["payment"]["paypal"]["paypal_id"])) {
         WdfException::Raise("PayPal: Missing paypal_id");
     }
     if (!isset($CONFIG["payment"]["paypal"]["notify_handler"])) {
         WdfException::Raise("PayPal: Missing notify_handler");
     }
     if (!isset($CONFIG["payment"]["paypal"]["use_sandbox"])) {
         $CONFIG["payment"]["paypal"]["use_sandbox"] = false;
     }
     if (!isset($CONFIG["payment"]["paypal"]["custom"])) {
         $CONFIG["payment"]["paypal"]["custom"] = "";
     }
     $this->small_image = resFile("payment/paypal.gif");
 }