コード例 #1
0
 public function validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod = 'Unknown', $message = null, $transaction = array(), $currency_special = null, $dont_touch_amount = false, $secure_key = false)
 {
     if ($this->active) {
         // Set transaction details if pcc is defined in PaymentModule class_exists
         if (isset($this->pcc)) {
             $this->pcc->transaction_id = isset($transaction['transaction_id']) ? $transaction['transaction_id'] : '';
         }
         parent::validateOrder((int) $id_cart, (int) $id_order_state, (double) $amountPaid, $paymentMethod, $message, $transaction, $currency_special, $dont_touch_amount, $secure_key);
         if (count($transaction) > 0) {
             PayPalOrder::saveOrder((int) $this->currentOrder, $transaction);
         }
     }
 }
コード例 #2
0
ファイル: paypal.php プロジェクト: ramsam5/paypal
 public function validateOrder($id_cart, $id_order_state, $amount_paid, $payment_method = 'Unknown', $message = null, $transaction = array(), $currency_special = null, $dont_touch_amount = false, $secure_key = false, Shop $shop = null)
 {
     if ($this->active) {
         // Set transaction details if pcc is defined in PaymentModule class_exists
         if (isset($this->pcc)) {
             $this->pcc->transaction_id = isset($transaction['transaction_id']) ? $transaction['transaction_id'] : '';
         }
         if (version_compare(_PS_VERSION_, '1.5', '<')) {
             parent::validateOrder((int) $id_cart, (int) $id_order_state, (double) $amount_paid, $payment_method, $message, $transaction, $currency_special, $dont_touch_amount, $secure_key);
         } else {
             parent::validateOrder((int) $id_cart, (int) $id_order_state, (double) $amount_paid, $payment_method, $message, $transaction, $currency_special, $dont_touch_amount, $secure_key, $shop);
         }
         if (count($transaction) > 0) {
             PayPalOrder::saveOrder((int) $this->currentOrder, $transaction);
         }
         $this->setPayPalAsConfigured();
     }
 }