Esempio n. 1
0
 function prepareMessage($options = array())
 {
     $options = array_merge($this->getOptions(), $options);
     if (!isset($options['_payment_ID'])) {
         return false;
     }
     //Show other recorded info
     $text_options['skip_prefix'] = "plugin_AMPPayment_";
     $message = $this->udm->output('Text', $text_options);
     //Generate Receipt
     if (!($receipt = new PaymentReceipt($this->dbcon, $options['_payment_ID']))) {
         return false;
     }
     $message .= $receipt->output();
     return $message;
 }