Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function orderLoad(OrderInterface $order)
 {
     $api = new IcepayApi();
     $result = $api->getPaymentDetails($order);
     $order->payment_details = array('ideal_issuer' => $result->ideal_issuer);
 }
Пример #2
0
 /**
  * Get payment details stored within table {uc_payment_icepay} based on given id
  *
  * @param int $orderId
  * @return mixed
  */
 public function getPaymentDetailsByOrderId(int $orderId)
 {
     $order = uc_order_load($orderId);
     if ($order) {
         return IcepayApi::getPaymentDetails($order);
     }
     return false;
 }