View | Details | Raw Unified | Return to bug 6598 | Differences between
and this patch

Collapse All | Expand All

(-)plugins/paymethod/paypal/PayPalPlugin.orig.inc.php (-4 / +12 lines)
 Lines 209-215    Link Here 
209
							if ($ocsPaymentManager->fulfillQueuedPayment($queuedPaymentId, $queuedPayment)) {
210
							if ($ocsPaymentManager->fulfillQueuedPayment($queuedPaymentId, $queuedPayment)) {
210
								// Send the registrant a notification that their payment was received
211
								// Send the registrant a notification that their payment was received
211
								$schedConfSettingsDao =& DAORegistry::getDAO('SchedConfSettingsDAO');
212
								$schedConfSettingsDao =& DAORegistry::getDAO('SchedConfSettingsDAO');
212
		
213
214
								// Get registrant name and email
215
								$userDao =& DAORegistry::getDAO('UserDAO');
216
								$user =& $userDao->getUser($queuedPayment->getuserId());
217
								$registrantName = $user->getFullName();
218
								$registrantEmail = $user->getEmail();
219
								
220
								// Get conference contact details
221
								$schedConfId = $schedConf->getId();
213
								$registrationName = $schedConfSettingsDao->getSetting($schedConfId, 'registrationName');
222
								$registrationName = $schedConfSettingsDao->getSetting($schedConfId, 'registrationName');
214
								$registrationEmail = $schedConfSettingsDao->getSetting($schedConfId, 'registrationEmail');
223
								$registrationEmail = $schedConfSettingsDao->getSetting($schedConfId, 'registrationEmail');
215
								$registrationPhone = $schedConfSettingsDao->getSetting($schedConfId, 'registrationPhone');
224
								$registrationPhone = $schedConfSettingsDao->getSetting($schedConfId, 'registrationPhone');
 Lines 224-231    Link Here 
224
								$registrationContactSignature .= "\n" . Locale::Translate('user.email') . ': ' . $registrationEmail;
233
								$registrationContactSignature .= "\n" . Locale::Translate('user.email') . ': ' . $registrationEmail;
225
234
226
								$paramArray = array(
235
								$paramArray = array(
227
									'registrantName' => $contactName,
236
									'registrantName' => $registrantName,
228
									'schedConfName' => $schedConfName,
237
									'conferenceName' => $schedConf->getFullTitle(),
229
									'registrationContactSignature' => $registrationContactSignature 
238
									'registrationContactSignature' => $registrationContactSignature 
230
								);
239
								);
231
						
240
						
 Lines 233-239    Link Here 
233
								$mail = new MailTemplate('MANUAL_PAYMENT_RECEIVED');
242
								$mail = new MailTemplate('MANUAL_PAYMENT_RECEIVED');
234
								$mail->setFrom($registrationEmail, $registrationName);
243
								$mail->setFrom($registrationEmail, $registrationName);
235
								$mail->assignParams($paramArray);
244
								$mail->assignParams($paramArray);
236
								$mail->addRecipient($contactEmail, $contactName);
245
								$mail->addRecipient($registrantEmail, $registrantName);
237
								$mail->send();
246
								$mail->send();
238
								
247
								
239
								exit();
248
								exit();

Return to bug 6598