public static function getInfoBySID($gateway_sid)
 {
     $gateway_info = parent::getObjectInfoBySID('payment_gateways', $gateway_sid);
     $gateway = SJB_PaymentGatewayManager::createObjectByID($gateway_info['id'], $gateway_info);
     $gateway_info['template'] = $gateway->getTemplate();
     return $gateway_info;
 }
Example #2
0
 public static function getInvoiceInfoBySID($invoiceSID)
 {
     $invoice_info = parent::getObjectInfoBySID('invoices', $invoiceSID);
     if (!empty($invoice_info['serialized_items_info'])) {
         $serialized_items_info = unserialize($invoice_info['serialized_items_info']);
         $invoice_info = array_merge($invoice_info, $serialized_items_info);
     }
     if (!empty($invoice_info['serialized_tax_info'])) {
         $serialized_tax_info = unserialize($invoice_info['serialized_tax_info']);
         $invoice_info = array_merge($invoice_info, $serialized_tax_info);
     }
     return $invoice_info;
 }
Example #3
0
 public static function getTransactionInfoBySID($trans_sid)
 {
     $trans_info = parent::getObjectInfoBySID('transactions', $trans_sid);
     return $trans_info;
 }
Example #4
0
 public static function getGuestAlertInfoBySID($sid)
 {
     return parent::getObjectInfoBySID(self::DB_TABLE_NAME, $sid);
 }