本文整理匯總了PHP中Facture::SendPaymentRequest方法的典型用法代碼示例。如果您正苦於以下問題:PHP Facture::SendPaymentRequest方法的具體用法?PHP Facture::SendPaymentRequest怎麽用?PHP Facture::SendPaymentRequest使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Facture
的用法示例。
在下文中一共展示了Facture::SendPaymentRequest方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: die
$Invoice->setSent($id_new_invoice);
break;
}
// Process direct debit invoices
if ($invoice->payment_method == 'direct_debit') {
$new_invoice = $Invoice->getInfos($id_new_invoice);
$send_mail_direct_debit = true;
$url = "https://webfinance.isvtec.com/prospection/edit_facture.php?id_facture={$new_invoice->id_facture}";
# Set invoice as paid
$Invoice->setPaid($id_new_invoice);
# Plan the invoice to be debited
mysql_query('INSERT INTO direct_debit_row ' . "SET invoice_id = {$id_new_invoice}, " . " state='todo'") or die(mysql_error());
}
// Process paypal invoices
if ($invoice->payment_method == 'paypal') {
$Invoice->SendPaymentRequest($id_new_invoice);
}
// Update deadline
mysql_query('UPDATE webfinance_invoices ' . "SET periodic_next_deadline='{$next_deadline}' " . "WHERE id_facture = {$id_invoice}") or die(mysql_error());
}
$mail = new PHPMailer();
$mail->CharSet = 'UTF-8';
if ($send_mail_print_invoice) {
$mail->From = 'administratif@isvtec.com';
$mail->FromName = 'ISVTEC invoices';
$mail->ClearAddresses();
$mail->AddAddress('invoice-print@isvtec.com');
$mail->Subject = 'Invoices to print and mail';
$mail->Body = 'Print the invoices and send them to clients';
foreach ($attachments as $attachment) {
$mail->AddAttachment($attachment, basename($attachment), 'base64', 'application/pdf');
示例2: Facture
include "../inc/main.php";
include "../inc/Encryption.php";
$roles = 'manager,employee';
include "../top.php";
include "nav.php";
$Invoice = new Facture();
$invoice = $Invoice->getInfos($_GET['id_invoice']);
$client = new Client($invoice->id_client);
$societe = GetCompanyInfo();
if (empty($client->email)) {
echo "<br /><h2>This client has no email... :-(</h2><br />You must add an email for this client before.";
include "../bottom.php";
exit;
}
if (isset($_GET['action']) and $_GET['action'] == 'send') {
$link = $Invoice->SendPaymentRequest($_GET['id_invoice']);
echo "<br /><h2>Invoice and payment link has been sent.</h2><br />FYI Payment link: <a href=\"{$link}\">{$link}</a>";
include "../bottom.php";
exit;
}
?>
<br/>
<h2>Request a PayPal payment</h2>
<br/>
<form action="paypal.php" onsubmit="return confirm('Are you sure you want to process the payment request?')">
<table width="300" border="0" cellspacing="0" cellpadding="2">
<tr><td>Type</td><td><?php
echo $invoice->type_doc;
?>
</td></tr>